-
[CS3] movieclip timeline navigation
Hello, can anyone tell me how to go to a certain frame after a movieclip plays within a single frame?
-
You can use the gotoAndPlay(); call.
-
ive been trying to use that at the end of the timeline inside the movieclip using the root. function but its producing a
'1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.displayisplayObject.' error.
Do you know what im doing wrong?
thanks, grebs
-
-
stop();
character_mc.stop();
root.gotoAndStop(3);
-
What version of AS are you using? and its not "root", it should be "_root".
-
im using cs3 so its actionscript 3.0 so i thought it was root? i have tried using _root but that didnt work either
-
Oh well in AS 3.0 you shouldn't be trying to reference the root from what I understand but I am not that familiar with AS 3.0 so I won't confused you anymore.
-
ok mate, thanks for your time anyway
-
did you find the answer? because I'm having the same issue... I'm used to using as2..but I'm converting to as3 and it's frustrating trying to change my ways!
-
-
Last edited by grebs; 05-13-2008 at 05:40 PM.
-
i had to use a code similar to this placed on the main timeline
character_mc.addEventListener(Event.ENTER_FRAME, moveFrame);
var fn:Number = 20;
function moveFrame(e:Event):void {
if (e.target.currentFrame == 20) {
gotoAndStop(3);
e.target.removeEventListener(Event.ENTER_FRAME, moveFrame);
}
}
I hope this is helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|