A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Prob With 2 MCs

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    2

    Post

    Hi

    I have created an expand/colapse menu with buttons.
    The menu isnt the problem, my problem is trying to get one of the buttons to play a certain frame of another movie clip. I have tried almost everything i can thing of...

    can anyone help me???
    -thanks

    >-MORE INFO-<
    -the menu is a movie clip on the stage named (expanding menu)
    -the second movie clip is also on the stage, in the same layer and named (Content)

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Posts
    164

    try this

    Try this for the action script on your menu button:

    On (Release) {
    _root.content.GotoandPlay(x);
    }

    Where 'x' is the frame number or frame label within the content MC.

    Good luck!

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    2
    yea i did that before but when i go and preview it, nothing happens

    thanks newaz

  4. #4
    Senior Member
    Join Date
    Oct 2001
    Posts
    164

    double check

    Make sure that your MC actually has the instance name "content" and is not just named that in your library. The previous scripting will only work if your instances are named correctly. Try using the target shortcut on the action panel and see if the instance of your content MC shows up. If not then Flash can't find it for some reason.

    Just a thought, because if you've used this scripting then the problem has to be elsewhere.

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