A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Help for a new guy please.

  1. #1
    vidiveni
    Join Date
    Dec 2000
    Posts
    77

    Help for a new guy please.

    http://www.rams-hill.freeserve.co.uk/flash/test.swf

    Please look at the above. I only want to animation to start if your mouse pointer clicks on the menu button at the top right. It seems to loop. The animation is a movie clip symbol. Should it have been a button ?

  2. #2
    A Guy With a Hat HumbuckeR's Avatar
    Join Date
    Apr 2004
    Location
    Portugal
    Posts
    228
    Hi.

    On the first frame of the animation movieclip (i'll call it animMC) put this:

    stop();

    on the menu put this:

    code:
    on (release){
    tellTarget(_root.animMC){
    play();
    }
    }



    Never tested it but should work.

  3. #3
    vidiveni
    Join Date
    Dec 2000
    Posts
    77

    Still can't do it !

    Tried that and no luck. Stops looping but when you click on the button nothing happens.
    Attached Files Attached Files

  4. #4
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    Is this what you wanted? You were trying to call a movieclip that wasn't on the stage. Also, don't use tellTarget; simply use gotoAndPlay();
    Flash is amor; nada more.

  5. #5
    vidiveni
    Join Date
    Dec 2000
    Posts
    77
    That's great just what I wanted, but how did you get it onto the stage ?

  6. #6
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    Get what onto the stage? I didn't really move anything except for the code.
    Flash is amor; nada more.

  7. #7
    vidiveni
    Join Date
    Dec 2000
    Posts
    77
    on (release) {
    _root.Explode.gotoAndPlay(2);
    }

    Oh I see the Explode section above refers to the label I have given the movie clip. Cool thanks

    Regards

    Martin.

  8. #8
    vidiveni
    Join Date
    Dec 2000
    Posts
    77
    on (release) {
    _root.Explode.gotoAndPlay(2);
    }

    Oh I see the Explode section above refers to the label I have given the movie clip. Cool, thanks

    Regards

    Martin.

  9. #9
    Senior Member snorepez's Avatar
    Join Date
    Mar 2004
    Posts
    610
    Well, it's the Instance Name of the movieclip...but same concept

    Take care
    Flash is amor; nada more.

  10. #10
    vidiveni
    Join Date
    Dec 2000
    Posts
    77
    Many thanks mate.

    Take care

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