A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: [CS3] movieclip timeline navigation

  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    71

    [CS3] movieclip timeline navigation

    Hello, can anyone tell me how to go to a certain frame after a movieclip plays within a single frame?

  2. #2

  3. #3
    Member
    Join Date
    Apr 2008
    Posts
    71
    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

  4. #4

  5. #5
    Member
    Join Date
    Apr 2008
    Posts
    71
    stop();
    character_mc.stop();
    root.gotoAndStop(3);

  6. #6

  7. #7
    Member
    Join Date
    Apr 2008
    Posts
    71
    im using cs3 so its actionscript 3.0 so i thought it was root? i have tried using _root but that didnt work either

  8. #8
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    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.

  9. #9
    Member
    Join Date
    Apr 2008
    Posts
    71
    ok mate, thanks for your time anyway

  10. #10
    Member
    Join Date
    Jun 2005
    Posts
    60
    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!

  11. #11
    Member
    Join Date
    Jun 2005
    Posts
    60
    MovieClip(root).play();

  12. #12
    Member
    Join Date
    Apr 2008
    Posts
    71
    ``
    Last edited by grebs; 05-13-2008 at 05:40 PM.

  13. #13
    Member
    Join Date
    Apr 2008
    Posts
    71
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center