A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Instances within instances

  1. #1
    Member luffmcgruff's Avatar
    Join Date
    May 2002
    Posts
    90

    Instances within instances

    How do I write script for an MC which is in the over state of a button.

    I want the MC to play when the mouse rolls over the button but not before it does. I've tried doing this with:

    _root.abcabc.play

    where abcabc is the instance name of the movie clip. This method, which has worked when the MC is in the root, but I don't know how to identify the instance of abcabc when it's within the button.

    Any help is much appreciated.

  2. #2
    Senior Member suehami's Avatar
    Join Date
    Jun 2003
    Location
    asmania
    Posts
    224
    if you put the MC into the over state frame of the button it will play when the mouse goes over the button. no need for any actionscript.
    Only after the last tree has been cut down, after the last river has been poisoned, after the last fish has been caught, then will you find that money cannot be eaten. Cree Indian Prophecy.

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