dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Movie clip control help

  1. #1
    zephyr Olly K's Avatar
    Join Date
    May 2002
    Location
    The Univerity of Wales, Newport
    Posts
    1,357

    (still need help!) Movie clip control help

    Ok I'm not really a newbie but I've gone a little while without using actionscript and my minds blank.

    I've got a movieclip called "anim" on the second frame inside another movie clip called "ship". I need it so that on the last frame of "anim" it tells "ship" (the movie clip that it is inside) to go to and stop at the first frame. But I can't think how to do it >_<

    I know it's simple but can't think how to do it, any help is really appreciated thanks
    -Olly
    Last edited by Olly K; 09-15-2006 at 07:25 AM.
    - I made this!
    http://www.okkle.co.uk - creatures, art, animation and toys!
    Toilet Trumps

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    where ship is the instance name, on the last frame of anim -

    ship.gotoAndStop(1);

  3. #3
    zephyr Olly K's Avatar
    Join Date
    May 2002
    Location
    The Univerity of Wales, Newport
    Posts
    1,357
    Doesn't work
    - I made this!
    http://www.okkle.co.uk - creatures, art, animation and toys!
    Toilet Trumps

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    try my test file
    let me know how our files differ
    or send a simple test file of your problem

  5. #5
    zephyr Olly K's Avatar
    Join Date
    May 2002
    Location
    The Univerity of Wales, Newport
    Posts
    1,357
    Ok I've attached a file to show how they are different,
    Thanks for helping
    Attached Files Attached Files
    - I made this!
    http://www.okkle.co.uk - creatures, art, animation and toys!
    Toilet Trumps

  6. #6
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    now i can see the movie heirachy, the answer changes to -
    last frame of anim -

    _parent.gotoAndStop(1);

  7. #7
    zephyr Olly K's Avatar
    Join Date
    May 2002
    Location
    The Univerity of Wales, Newport
    Posts
    1,357
    Thank you!!! Works perfectly1
    - I made this!
    http://www.okkle.co.uk - creatures, art, animation and toys!
    Toilet Trumps

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