A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Simple Actionscript Code Question

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    19

    Simple Actionscript Code Question

    If I have a Movie called movie1, and inside that movie i have another movie clip movie 2.

    Inside Movie Clip 2 I want to have a button that sends the playhead back to movie1 at frame 1.

    I tried :

    button.onRelease = function (){
    _root.movie1.gotoAndPlay(1);
    };


    But this isnt working...

    Can anyone help

    Thanks

  2. #2

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    Quote Originally Posted by wattsup
    have you tried?

    _level0.movie1.gotoandPlay(1)

    hmm just did and its not doing anything except giving me a syntax error.

  4. #4
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    can you post your fla and what version of flash your using?

  5. #5
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    Quote Originally Posted by wattsup
    can you post your fla and what version of flash your using?
    Im using Flash 8 and this is the code i just tried:

    button.onRelease = function (){
    _level0.movie1.gotoAndPlay(1);
    };

  6. #6
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    here is fla
    Attached Files Attached Files
    Last edited by joe97tj; 02-13-2006 at 04:08 PM.

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