How To Use Advance Frame From Within A Movieclip?
Can someone please help me out with this one?
Here's the situation:
I have 2 movieclips, each on its own layer. From within each MC, at different frames in the timeline, I'm trying to advance thru the main timeline but I can' do it!
This is what I've tried using:
_root.nextFrame(); _root.gotoAndStop(n); nextFrame();
After debugging, I've figured out that having just one MC allows the script to work, however having both MC's prevents the other from working. Does anyone have a clue, cuz I sure don't?
Here's the actionscript for MC1, on Layer 2, Frame 1:
onClipEvent (load) { this._alpha = 100; } onClipEvent (enterFrame) { if (this._alpha>=0) { this._alpha -= _root.fadeRate; } else { _root.gotoAndStop(2); } _root.alphaCurrent = this._alpha; } ------------------------------- Here's the actionscript for MC2, on Layer 1, Frame 2:
onClipEvent (load) { // record the current time startTime = getTimer(); // initiliaze a variable to keep track of how much time has passed elapsed = 0; } onClipEvent (enterFrame) { // check how much time has passed elapsed = getTimer()-startTime; // check to see if the time pass is less than the length of the duration if (elapsed<_root.duration*1000) { _root.counter = _root.duration-Math.floor(elapsed/1000); } else { _root.gotoAndStop(3); } }
TIA,
Tom [Edited by tomta on 02-23-2002 at 06:53 PM]
FlashKit > Flash Help > Flash Newbies
Posted on: 02-23-2002, 06:33 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[as] Play Movieclip On 1 Frame Then Advance
i know there is an easy way to do this, but i've looked around and can't find the answer...
i have a movie clip that has 45 frames and it resides on one frame of the main timeline. i want it to play through all 45 frames in the clip before going on to the next frame on the main timeline.
i don't want to have to relegate 45 frames on the main timeline in order to give the clip enough time to play all the way through. what is the solution?
i am working in flashMX but would like this to be compatible with flash 4 or 5.
thanks in advance.
Using A Button To Advance A Movieclip To An Expression Based Frame Number
Can anyone help, I'm working on a simple thumbnail viewer using flash, and images stored in a movieclip, called "thumbs" and placed on the stage with an instance name of "slideshow1" to make life easier than manually coding the seperate thumbnails as seperate symbols.
e.g.
Movie clip called "thumbs"
image1 on frame1
image2 on frame2
image3 on frame3
ad infinitum
This is then triggered by thumbnails which make the "image" go to the frame that you click on.
for 6 thumbnails - hence the *6 in the code below
on the first thumbnail I have the following actions
on (release) {
var currentthumbnail=int((thumbset-1)*6+1);
tellTarget ("slideshow1") {
gotoAndStop ("currentthumbnail");
var debug="tell target initiated";
}
}
on the second
on (release) {
var currentthumbnail=int((thumbset-1)*6+2);
tellTarget ("slideshow1") {
gotoAndStop ("currentthumbnail");
var debug="tell target initiated";
}
}
etc...
Nothing happens... but if I change the "GotoAndStop" from an expression into a "frame number" such as (1) or (2) it works, but obviously the variable functionality works, and the last thing I want to do is manually set different flash scenes or frames showing diffenet pages of thumbnails, the idea is to use buttons to show sets of thumbnails at a time.
Actionscript - Advance To Next Frame Upon Completion Of Frame 1
Sorry, I may have phrased my last question wrong - In scene1, I have 1 frame with a moving movie clip symbol -it plays fine but I can't get it to advance to the next frame upon completing the first scenes movie clip. I would like to have the movie clip play once or twice before moving to a new frame with a new movie. Can someone tell me how this is accomplished with only two frames. Also if you can tell me how to set the number of loops it would be appreciated.
Thanks
Advance To Next Frame
okay, i'm feeling very foolish here . . . i used to use flash pretty regularly, but haven't in almost 2 years. i'm now working on a project and trying to do the simplest of techniques -- a simple "back and forward one frame" action.
here's my script:
on (release) {
prevFrame();
}
but when i preview, nothing. is there some drastic change that's taken place between flash4 and 2004mx?
even this isn't working:
on (release) {
gotoAndPlay(10);
}
these are actionscripts applied to movieclips. can anyone tell me what i'm doing wrong?
Advance Frame To Frame Using Seconds
Very simple question. I want to advance from frame to frame using seconds.
For example, Frame 1 will advance to Frame 2 after 15 seconds has elapsed.
Is this possible. Also, if this question has already been answered, do you have the link as to where it is on this forum?
Advance Frame With ANY Key Press
Does anyone know how I can have a button that when you press ANY key it will advance to the next frame - I seem to only be able to actually assign one key such as space bar or return/enter etc - I need it that they can hit ANY key - this is REALLY urgent for a project I have to do tonight - please please help if you can!
Thanks everyone
Jonathan
Frame Advance Preloader..
hey flashers, i wanted to ask if anyone knew how to advance a movieclip frame by frame depending on how much of the scene has been loaded?
i'd like to make a preloader that places a new dot for each frame (say 20 frames or dots):
|....................|
Help, I Need A Button To Advance To Next Frame.
I know that this is probably really easy, but I've been trying to figure it out for hours.
I have 2 buttons on the first frame, one is for an input text box that works, but the second button is a simple continue button that should advance to the next frame. I have a seperate layer for my actions, but do i put the second button action on the frame or the button? Please help I'm new to the forum.
Script:
myButton.onRelease=function() {
user=new Array (name.text,age.text,phoneNumber.text,email.text);
myMessage.text="Hello " +user[0]+". Are you ready for the quiz?" ;
}
yes.onRelease=function () {
nextFrame();
}
stop();
Advance Frame After Flv Video?
I have a FLV video imported in a frame of a Flash 8 document. It is a 'full stage' video with no navigation other than a play / mute skin assigned to the video. I am attempting to have Flash automatically advance to frame 3 as soon as the video ends.
Any suggestions?
Timed Frame Advance
I have an swf movie (like a slideshow or photoalbum type) that I would like the user to be able to either step through using the next/back buttons or opt to use an auto button feature- that on release would start advancing thru the swf automatically- each frame at a 10 second intervals. Is there a way to script this using Actionscript 2.0? Thanks for any assistance.
FLV And Frame Advance Problems
I have built a flash sequence (built for kiosk display, too large to upload and make available here), that features ten sections marked by Frame Labels, and uses the stop function to control progression of each.
On each labelled frame is a movie clip. Inside one movie clip is a video.
When progressing from "BeforeVideo" to "Video" frames, the player gets confused and overlays part of the animation from "BeforeVideo", gets halfway through "Video" before ever actually reaching the FLV file in this movie.
Then it skips to the next "AfterVideo" and continues to play through the rest of the animation like normal.
Need any help asap.
Thanks,
3CD
Advance MovieClip Slider
Hello
I am making my portfolio site and I want to achieve this kind if effect when user clicks on portfolio link
http://www.firstbornmultimedia.com/#...folio/preview/
can anyone please tell me who can I a make a scroll bar that will be controlled by the number of pojects?
Thanks in advance
Frame Advance And GoToAndPlay (sorry, Long)
Hello all. I'm pretty much a novice at Flash (using MX version), and even more so with actionscripting. I've learned quite a bit from reading the boards at Flashkit. I've got a slideshow animation problem that I can't seem to solve. As far as I can tell, I haven't seen it addressed on the boards, so I thought I would see if anyone has an answer. I apoligize for the long explanation.
Here's my question: Is it possible for the slideshow to play a specified number of frames from the current frame then GoToAndPlay a specific frame number at another location within the slideshow?
Here are the specifics: I'm working on a slideshow that includes about 50 frames of animation for each picture. In the first 25 frames, the animation begins from a standard size blank picture frame and matte, then resizes into a custom blank frame for the picture. The picture then fades onto the blank frame and matte, and the slideshow stops to allow the user to look at the picture and read the caption. Once the user is ready, he/she clicks the "next" button and the picture fades out leaving the blank frame and matte. The frame then resizes back to the start position where it begins another animation cycle for the next picture. "Stop Action" commands are placed at each spot where the picture appears, which is about 25 frames into the animation cycle.
This works great as a standard slideshow where the user looks at the pictures in a specified order. However, I would also like to include thumbnails so the user can review pictures in advance. Clicking a thumbnail advances the slideshow to the corresponding picture. The problem is how do I tell Flash to play the remaining 25 frames of the current animation cycle before jumping to another picture?.
Here is an example: Let's say the slideshow is stopped at picture #10, which is frame number 25 in the 50-frame animation cycle. After looking at the thumbnails, the user decides to jump to picture #30, so he clicks on the thumbnail for picture #30. In order for the animation to look right, Flash must first play the remaining 25 frames of #10 before jumping to the animation cycle for #30. I don't know how to tell it to do that. I tried inserting "_current frame + 25", but that makes its skip the frames inbetween. How do I make it play those 25 frames before jumping to picture #30?
Thanks in advance for any help.
Moving Mouse To Advance To Next Frame
I feel like an idiot for having to write in for this, but it's been awhile since I've had to write actionscript, and I have forgotten a lot of it. I'm trying to make a file that advances to the next frame with any mouse movement. I understand how to do it, I'm just having trouble writing it.
On clipevent(enterframe)
positionX == _xmouse
positionY == _ymouse
if positionX !== _xmouse
goto (nextframe)
if positionY !== _ymouse
goto (nextframe)
Is this anywhere near right? Thanks,
-A
How Can I Make The Frame Advance After An Flv Is Done Playing?
I've got an flv that we're streaming from a website and I want the swf to advance to the next frame once the video is done playing. I've looked all over for a way to do this, but I can't find anything. Does anyone know of some actionscript code that will work?
Thanks.
Edited: 08/20/2008 at 06:01:54 AM by Webshark2000
Xml Scroller Advance To Frame [flash8]
Trying to make this move to a specific frame. I think I've got the AS straight but not sure about the xml.
Mine looks like this with frame numbers in the url nodes:
Code:
<images>
<image>
<path>images/angel.jpg</path>
<url>1</url>
<caption>nr 1</caption>
</image>
<image>
<path>images/apple.jpg</path>
<url>2m</url>
<caption>nr 2</caption>
</image>
<image>
<path>images/aqua.jpg</path>
<url>3</url>
<caption>nr 3</caption>
</image>
<image>
<path>images/chrome.jpg</path>
<url>4</url>
<caption>nr 4</caption>
</image>
<image>
<path>images/circles.jpg</path>
<url>5</url>
<caption>nr 5</caption>
</image>
</images>
my fla and xml:
Attachment 33475
and the originals:
Attachment 33476
Advance Preloader Stuck On Frame 2
Ok I have been using the Advance preloader while playing around with some files.
Yet for one of the swfs the preloader gets stuck on frame 2 when I simulate download. Now I have made sure there is nothing different about that particular swf. I have double checked everything I can think of and all seams to be the same as the other swf, whose preloaders are working just as they should.
Code:
stop();
loader._visible = false;
var thisRoot:MovieClip = this;
this.onEnterFrame = function() {
var amount:Number = Math.round(thisRoot.getBytesLoaded()/thisRoot.getBytesTotal()*100);
loader._visible = true;
loader._xscale = amount;
loadText.text = amount+"%";
loadText._y = Stage.height/2-10;
loadText._x = loader._x+(loader._width-250);
if (amount == 100) {
thisRoot.gotoAndPlay(3);
delete thisRoot.onEnterFrame;
}
}
Man I been doing a lot of learning today, my head is cooked. I hope some can help me on this one too. Thank you all in advance.
Advance To A Frame-label Of A Load(ed)Movie?
I'm sure this is simple, but I can't seem to get it: after loading a 2-frame MC into a containerMC, I can't seem to advance to the 2nd frame of the just-loaded clip.
PHP Code:
createEmptyMovieClip("clipContainer_initLoadB",5);
clipContainer_initLoadB.loadMovie("About.swf");
clipContainer_initLoadB._x=40;
clipContainer_initLoadB._y=130;
clipContainer_initLoadB.gotoAndPlay("loadFrame");
stop();
How do I get beyond a stop() in the 1st frame and into "loadFrame" (frame 2)??
thx.
[CS3] AS2.0 - Use An Array To Advance Timeline Through Frame Labels
Hey all,
Thanks in advance for any help you might have! I am working on a project and I originally had my forward back buttons just advancing 24 frames, but the client has since decided that they want to move to certain spots in the the animations. There are about 15 animations total with 4-18 frame labels.
I want the forward button to move to the next frame label and the back button to go to the previous frame label. I have heard suggestions of using an array, but having never written one I don't know where to start. Any help would be appreciated. I am using CS3 with AS 2.0.
Thanks!
New Audio Tracks - Flv Won't Advance To Next Frame On Timeline
I've just read all previous posts (I think) on the topic of flvs not playing completely. The solutions haven't worked, and my problem is slightly different.
We have many swfs that play external .flvs using the FLVPlayback component. They've worked just fine. Recently we had the audio translated to other languages and put into our original QT movies. Then we re-encoded them as flvs. Now the videos play all the way through, but when they're done they seem to get stuck on the last frame of the video instead of proceeding along the .fla timeline.
I tried re-encoding in QT at 44.1, per the solutions found on the web and this forum, but it didn't make any difference.
We are using the following ActionScript to control the movies (given to me very kindly last year by someone smart on this forum):
stop();
var vidList:Object = new Object();
vid.contentPath = "0002h03.flv";
vidList.complete = function() {
play();
// this can be anything, it will happen when the movie is finished playing
};
vid.addEventListener("complete", vidList);
Is there anything we can do inside this script to make the movie go forward? If not, does anyone have other ideas?
Thanks,
Mary
.fla Won't Advance Past Frame 2; Used To Work Fine
i have a .fla that was working absolutely flawlessly. i was running usability tests (from the html output) and everything. then i started working on another iteration, published, and suddenly, my main animation would only advance to frame 2 when i tested from the html file. i found out that when i pulled the audio layer out and published again, it works. put the audio back (sync: streaming; repeat: 1) and it stops at the 2nd frame again.
all that said, the quicktime file still works. how is this possible?
environment: working in flash 8 but publishing for flash 5.
other conditions: not using scenes; using loadMovie
thank you for ANY advice - this is driving me crazy...
Arrow Keys To Advance To Next Or Prev Frame
hi all
maybe one you guys could help me with this?
ive tried attaching this script to a movie clip:
onClipEvent (enterFrame){
if (Key.isDown(Key.LEFT)){
_root.gotoAndStop(_root._currentframe-1_);
} else if (Key.isDown(Key.RIGHT)){
_root.gotoAndStop(_root._currentframe+1);
}
}
this does work but if you keep your finger on the key for a microsecond too long it skips several frames which is really annoying.
i would like to use this for a presentation in flash. im trying to convince people at work that flash is far better than powerpoint, being able to use this would mean they dont have to learn new tricks!
id would normally know this (bad day)!!!
cheers guys
dan
Rollover To Make Movieclip Advance To Other Frames...?
Hi everyone,
Having a little trouble. What i want is the script on buttons to make a nearby movieclip advance onto different frames.
There will be be multiple buttons sending the movieclip to different frames when the user rolls over.
Structure (top to bottom):
(All one scene)
Container clip (main_mc), inside which is another container clip (system_mc), inside that there are buttons (graphics_but etc.) and the movieclip (3d_layout.mc) and inside the movieclip are the frames i'd like to advance.
I've tried a couple of things:
on (rollOver) {
_root.main_mc.system_mc.3d_layout_mc.gotoAndStop(2 );
}
on (rollOver) {
_main_mc.system_mc.3d_layout_mc.gotoAndStop(2);
}
on (rollOver){
_system_mc.3d_layout_mc.gotoAndStop(2);
}
but on all i'm getting a syntax error.
I'm not even sure i am using the right commands!
Help please....!
Tell Target ? Telling A Movie Clip To Advance To A Certain Frame
hello
hello
if anyone can help me that would be great - i am looking at actionscript in flash mx - i know i can attach an action script to a button :
on (release) {
_____whitewipe.gotoAndPlay(X);
}
so if i click the button my movie clip called whitewipe will goto frame X
my question is can i achieve the same effect without using a button, so that when the movie reaches a certain frame the actionscript will tell whitewipe to goto frame X
or does anyone know of an alternative to get the same effect
i have looked on google but no luck
thank you anyone
john
Advance/Rewind Playhead To Next/Prev Frame Label
Hi,
I have a main timeline with Frame Labels and actionscript keyframes which triggers external swf files. There are two particular buttons in the main flash interface which I would like to have advance or go back to a previous label. How could a button make the playhead go ahead to a next label or back to a previous label? It would work like a DVD remote with next and previous buttons for chapters. I would think there would be something similar to nextframe or prev scene.
I am using Flash 8.
Thanks!
Get The Maintime Line To Advance When All Movieclips Reach A Certain Frame
I'm using:
Flash CS3 and AS2.0
I've got on my main time line 1 frame which has movieclips which have invisible buttons over them.
When you mouse over them the movieclips play. The movie clips are animations of words filling up with a different colour.
I want the user to be able to go over all the letters and when they all reach a certain frame for them the main time line to advance to frame2.
or
When all the invisible buttons have been moused over for the maintime line to advance to the next frame or a specific frame.
Any help with this would be greatly appreciated.
Advance Load Movie Trouble ... And I Mean Advance
What i need to do is load a movie into another and position it perfectly... big deal huh ! well the problem is that say the main movie is the container which has the dimention of 100 x 100 but it will be changed in the hard coded object tag say might written as 300 x 300 in the html. The need for this cause i want to load a movie with the dimention of 300 x 300 into the container. Ofcourse the loaded movie will distore but that can be fixed with the
fscommand(allowscale,false)
i guess.Anyway .. i manage to positioned the loadded movie in the 0,0 loaction as long as the container movie has the dimention written more than it's original one. ( ie. more than 100 x 100 ) ..
but when i go bellow the original dimention ... everything stop working including that fscommand.
I hav attached the files with this post if any one cares to take a look on this matter. Hope my post/problem was clear to understand.
If you find any solution please let me know ..
Thanks
Wait Till Movieclip Gets To Particular Frame Then Play Another Section Of Movieclip
Hi,
I'm trying to reconstruct http://www.kswissfreerunning.com/AU/ with movies of my own.
Basically I have an array that contains the letters the user enters and I have the movie in a separate moviecilps with labels representing the letters.
I have a (what I think) logical set of code here to run through each letter in the user enters:
Code:
for(var k=0; k < letterArray.length; k++){
movie_mc.gotoAndPlay(letterArray[k]);
}
The problem is that it will only play the last letter the user enters. How am I able to make my flash wait till it gets to the end of a section of the movieclip, then play the next one, without it rushing to go straight to the last letter.
My pseudocode looks like this:
For the length of the array
play the next letter
when that letter movie gets to the end
play the next letter
Thanks in advance.
Play Specific Frame Of Movieclip From Other Movieclip
now this may look like simple stuff but it is not happening.
i ve made two movieclips 'menuball' which is animates the small ball inside the scene (like a bullet for menu item) and 'menumain' where 'menuball' is embedded and small text which is button.
now i want when this button in 'menumain' is pressed. the 'menuball' clip shud be played from 12th frame onwards. this will basically withfraw the ball from the scene.
i ve used simple code
on(release)
{menuball.gotoAndPlay(12);
}
or
this.menuball.gotoAndPlay(12);
or
_root.menumain.menuball.gotoAndPlay(12);
and many more like this
but none is working
i am attaching the small fla file. please help me in this. i am not getting any solution. and my whole work is stuck coz of this.
Go To A Frame And Play A Certain Frame In A Movieclip?
Hi,
This may be a really simple question but I'm trying to go to a frame on the timeline which has a movieClip object in it and then goto a specific frame in that movieClip and I can't figure out how to code it. I thought something like:
gotoAndPlay("movieClipframe");
this.theMovieClip.gotoAndPlay("theFrame");
but I get a null reference error.
Does anybody know what I'm doing wrong or if I'm?
Thanks for any advice
Targeting A Frame In One Movieclip From A Movieclip
I am trying to target a frame in one movie clip from a button in another movie clip....
I used this action on the button but it still does not work...
on (release) {
_root.nameofmc.gotoAndPlay(nameofframe);
}
what am i doing wrong?
UGH
thanks...
Jen
Target Frame From Movieclip To Movieclip
Hi again Sofiebel.
I could appreciate yours or anyones help on the following problem.
On my main time line i have 2 Movie clips one is for all the navigation and 1 is for an orderform.
within The navmc has a button which should link to a certain frame (brotchen) in the orderformmc
orderform movieclip is labeled "orderform"
navigation mc is called "navmc"
my problem is that i read on the above messages that all i have to do is use the root and direct any action to the mc.
I added the code on the button within the navmc so:
on (release)
_root.orderform.gotoAndPlay("brotchen");
this had no effect. so i tried doing a hop from the navmc to the maintimeline and then from the main timeline to the orderform mc like this.
on (release)
_root.gotoAndPlay("hop1");
on the main timeline frame Hop1 i had
on (release)
_root.orderform.gotoAndPlay("brotchen");
this worked only to the extent that it would load the orderform Mc but would not move to the appropriate frame label "brotchen" (visible as (link2 text) when you scroll the form down)
The swf is on the following link.
under faxbestellung try using the link brötchenpallette.
http://www.rasanta.de/XDC/nimmer/index.html
The fla is also there under
www.rasanta.de/xdc/nimmer/feb27.fla
Thanks again for your help Sofiebel
Dave
Targeting An Object/frame In A Symbol MovieClip From Another Symbol MovieClip
I have a base flash file within it are 2 symbol>movieClips I did it this way so that i can coltrol my animations more effectively, but I am trying to have one of these access the other, IE one is a menu the other is a main "page"(set up as a frame. so as I click on something in hte menu I want it to load the correct page/frame from the other movieClip
here is a sample of what I've written:
Zachary Bobo
Attach Code
import flash.display.MovieClip;
fountain_button.addEventListener(MouseEvent.ROLL_OVER,fountain_start);
function fountain_start(event:MouseEvent):void {
gotoAndStop fountain
}
Edited: 03/31/2008 at 05:54:53 PM by boa743
Go To A Particular Frame Of A Movieclip
From the main time line, if I make a button, can I make it direct it to go to a specific frame of a specific clip.
Let's say the movieclip in the library is called orange.
Trying To Tell A Movieclip To Go To A Frame
Hello Good People,
I'm trying to tell a movie clip (instance name = "main") to go to a frame when I roll over a button. I have no idea how to do this any help would be greatly appreciated.
Thanks
Go To Next Frame Of Movieclip
I have a movieclip(2) within another movieclip(1) on frame 4 with a stop action. When movieclip(2) ends I want to continue to frame 5 in movieclip(1).
Normally, I use _root.gotoAndPlay(5) if I had a movieclip on scene1, but im not working on the root level of scene 1 yet, Im working from movieclip inside another movieclip.
any ideas?
Thanks Brian
Use A Movieclip In Another Frame.
Hello everyone,
I'm making a Flash Lite application right now. I need to display some pictures in that application. The URL of those pictures are in a phpMyAdmin database and I read those URL's with a PHP file. I created a square with no fill and converted is as a MovieClip called 'fotoLoader'.
I need to download everything on 1 frame but display the content on different frames. Below this message is the download code I use on the download frame page.
I use this line to load a picture into the movieclip:
fotoLoader.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
Anyway, when I'm edit a new frame and I drag the movieclip from the library and give it the instance name 'fotoLoader' it won't display the photo! Why not?
I tried everything and i'm stuck for about 2 days now but nothing seems to help. I don't use any unload or remove funtions.
I hope someone can help me.
Thanks.
Attach Code
/*Downloaden*/
_focusrect = false;
fscommand2("ResetSoftKeys");
fscommand2 ("SetQuality", "high");
fscommand2 ("FullScreen", true);
// Gegevens ophalen van server
var gegevens = new XML();
gegevens.ignoreWhite = true;
gegevens.load("http://www.eventeffects.nl/Server.php?service_info=1&huiscode=" + huiscode);
gegevens.onLoad = function(success)
{
if(success)
{
adres = gegevens.childNodes[0].childNodes[1].firstChild.nodeValue;
postcode = gegevens.childNodes[0].childNodes[2].firstChild.nodeValue;
plaats = gegevens.childNodes[0].childNodes[3].firstChild.nodeValue;
omschrijving = gegevens.childNodes[0].childNodes[4].firstChild.nodeValue;
koopprijs = gegevens.childNodes[0].childNodes[5].firstChild.nodeValue;
aanvaarding = gegevens.childNodes[0].childNodes[6].firstChild.nodeValue;
ztatus = gegevens.childNodes[0].childNodes[7].firstChild.nodeValue;
soort = gegevens.childNodes[0].childNodes[8].firstChild.nodeValue;
bouwvorm = gegevens.childNodes[0].childNodes[9].firstChild.nodeValue;
bouwjaar = gegevens.childNodes[0].childNodes[10].firstChild.nodeValue;
ligging = gegevens.childNodes[0].childNodes[11].firstChild.nodeValue;
woonoppervlakte = gegevens.childNodes[0].childNodes[12].firstChild.nodeValue;
perceeloppervlakte = gegevens.childNodes[0].childNodes[13].firstChild.nodeValue;
inhoud = gegevens.childNodes[0].childNodes[14].firstChild.nodeValue;
kamers = gegevens.childNodes[0].childNodes[15].firstChild.nodeValue;
verdiepingen = gegevens.childNodes[0].childNodes[16].firstChild.nodeValue;
isolatie = gegevens.childNodes[0].childNodes[17].firstChild.nodeValue;
verwarming = gegevens.childNodes[0].childNodes[18].firstChild.nodeValue;
energielabel = gegevens.childNodes[0].childNodes[19].firstChild.nodeValue;
tuin = gegevens.childNodes[0].childNodes[20].firstChild.nodeValue;
patio_atrium = gegevens.childNodes[0].childNodes[21].firstChild.nodeValue;
schuur_berging = gegevens.childNodes[0].childNodes[22].firstChild.nodeValue;
garage = gegevens.childNodes[0].childNodes[23].firstChild.nodeValue;
eigendomssituatie = gegevens.childNodes[0].childNodes[24].firstChild.nodeValue;
fotoLoader.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
ID_mk = gegevens.childNodes[0].childNodes[26].firstChild.nodeValue;
foto1_huis.loadMovie(gegevens.childNodes[0].childNodes[25].firstChild.nodeValue);
voltooid_text.text = "Het downloaden is voltooid.";
}
else
{
mislukt_text.text = "Het downloaden is mislukt.";
}
}
//Soft-Key afhandeling
Key.removeListener(myListener);
fscommand2 ("SetSoftKeys", "Volgende", "Startscherm");
var myListener:Object = new Object ();
myListener.onKeyDown = function ()
{
if (Key.getCode () == ExtendedKey.SOFT1)
{
gotoAndStop ("Overzicht");
}
else if (Key.getCode () == ExtendedKey.SOFT2)
{
gotoAndStop ("Startscherm");
}
}
Key.addListener (myListener);
stop();
Tell Frame Movieclip
ok, i am making another website, and i have a transition when you first access the site. The blurred site clears up basically. This transition is a movieclip. But, I want to have all the content pop-up after the transition. So, on my main timeline, I have on frame 1, the movieclip, and frame 2, the stuff i need to come on after the transition. How do i tell the script to go to the frame 2 AFTER the movieclip is done. Ok, so make frame 1 on main timeline, go to frame 2 on main timeline, once the movieclip in frame 1 is over. How do i do this
thanks
Movieclip Appear In Only One Frame.
how do i make it so that the movie clip i want to appear in only one frame does so and not appear in the rest of the frames.
what script do you use?
Movieclip Going To Frame Two Of Movieclip
I am not thinking right...
moviea loads and on a page you load movieclipB... on movieclipb
frame 1, there is a button that should take you to movieclipb frame2.
I use the on release goto play frame 2... well it goes to frame 2
of the main movie... how do you say frame 2 of the movieclip?
Going To A Certain Frame Of One Movieclip From Another Movieclip?
Hello everybody!
I'm new to Flash and I stumbled upon a problem with movieclips and gotoAndStop! :S I've got two layers in frame 1 of scene 1. They are put on stop(); so that the timeline doesn't go further. Layer 1 consists of movieclip-1, which, in turn, has got movieclip-1a inside of it. Layer 2 consists of movieclip-2. Movieclip-2 has got instance name "movieclip".
At the end of the movieclip-1a I've got a button. When I click on this button I want to go to frame 2 of movieclip-2 (which is located in the main scene, of course). In my actionscript before gotoAndStop(2); I click on the target option to find the correct path. I get a result that looks like this:
on (release) {
this._parent._parent.movieclip.gotoAndStop(2);
}
And it doesn't work! Flash doesn't give me any errors, but when i click at the button nothing happens. What could be the problem
Thanks a lot!
Kagri.
How Do I Wait For A Movieclip To Get To A Frame, Then Next?
Hello,
Can someone tell me how I could wait for one movieclip to get to a certain frame before I do something else? I'm trying to play an external swf but not until a frame drops down behind it. It is part of a menu system so there are many different movies.
Thanks
Load MovieClip Fm Frame?
Hi,
How to solve the problem if my external movie attached with few heavy movieclip inside. Can we just load the movieclip first?
for example:: load my external movie clip in the 2nd frame of my main movie, means load it from begin, so that the movie will play smooth.
Why my preloader seen like didn't load my movieclip into it. and begin to play my external.swf, when reach to frame there's a heavy movieclip will slowdown the whole movie. Anyone can help me.
Hope U understand what my problem is.
Amiwai
If And Variables In Movieclip Frame
OK, this is what i would like to proceed. I have a variable with the name "count" in the head movie. In a movieclip on the stage I have a keyframe wich contains an if action. If the number of the variable "count" is 7, the movie has to go to frame 10. I even tried it with _root:count, and even if the action is in the first frame of the head movie it still doesn't work. Can somebody help me? I would be really pleased to be helped with this problem.
(by the way, i thought i knew flash a bit, but when I read all the actions here i feel more like a dummie, hehe) TNX, with kind regard, Laurens
|