Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

AS3 nested MovieClip question

  • 27-02-2010 10:50PM
    #1
    Registered Users, Registered Users 2 Posts: 1,784 ✭✭✭


    Hey all,

    I have a movieclip on the stage with an instance name of "dino".

    Inside that I have a movieclip called dino_mc with one frame.

    Inside that I have a movieclip called dinoWalk_mc with one frame.

    Inside dinoWalk_mc I have a 107 frame animation of a Dinosaur walking then stopping.

    I have two markers on the dinoWalk_mc timeline. At frame 1 I have a marker called "walking" and at frame 42 I have a marker called "standing".

    So it looks like this;

    dino
    dino_mc
    dinoWalk_mc

    To access the walking cycle, the code should be the code below right?
    dino.dino_mc.dinoWalk_mc.gotoandPlay("standing");
    

    I'm getting the following error though when I do this that isn't all that helpful.
    TypeError: Error #1010: A term is undefined and has no properties.
    	at Flourish_prototypiong_fla::MainTimeline/frame1()
    

    I've googled but the results were all involving classes and things that I'm not too comfortable with. If anyone knows anything I'd really appreciate it lads.

    Thanks


Advertisement