View Full Version : gotoAndPlay... maybe not...?
Skitz O'Fuel
08-17-2006, 06:31 AM
okay... got a button... this button is in an external swf loaded into invisible clip#1... this button's "on release" loads another external swf into invisible clip#2 (these two swf are supposed to be cross fading, one in;one out)... how do i give the button another "on release" that tells it to "gotoAndPlay" the frame of the swf where the fade out begins? is it gotoAndPlay i want here or should i direct it to a label in the frame?
DarthJay
08-17-2006, 06:48 AM
I assume you have a fadeout as part of the timeline on external swf #1.
That being the case, you would want to do something like this:
on(release){
//this loads your clip #2 into the main movie on the empty MC#2
_root.loadMovie("clip2.swf", "invisibleClip2");
//this tells your current SWF (#1) to goto the fade frame on
//its timeline
this.gotoAndPlay("fade");
}
Is that what you're asking, or did I oversimplify it?
Skitz O'Fuel
08-17-2006, 07:02 AM
so label the frame?
DarthJay
08-17-2006, 07:12 AM
Yes.
Skitz O'Fuel
08-17-2006, 07:18 AM
i'll give it try... thx my man
DarthJay
08-17-2006, 07:24 AM
no problem - my pleasure.
Skitz O'Fuel
08-17-2006, 07:27 AM
okay, forgive me... this is the first time i've labeled a frame... how exactly do i label it...?
DarthJay
08-17-2006, 07:33 AM
I usually create a layer called "labels", then you chose the place in the timeline you want to label and and create a keyframe there.
In the properties window, there is a box in the lower right labeled "Frame" and inside the input box it says "<Frame Label>". Overwrite "<Frame Label>" with your frame name.
You're all set!
Skitz O'Fuel
08-17-2006, 07:47 AM
thx for the help here... but it's not working... here's my script
on (release) {
_root.dropZone.loadMovie("dinner.swf");
this.gotoAndPlay("fade");
}
it shouldn't matter if the "fade" frame is on another layer in the timeline, should it?
ps. the _root.dropZone.loadMovie("dinner.swf"); works just fine...
Skitz O'Fuel
08-17-2006, 08:09 AM
cracked it!
this.gotoAndPlay("/:fade");
does the trick!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.