A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Controling mc from another mc

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    Nashville Tennessee
    Posts
    37

    Controling mc from another mc

    I'm using actionscript 1.
    I want the "home" menu button to also control a second mc. It's instance name is pl7_main. It's a secondary menu that needs to reset to frame one when home is pressed. The home button is inside another mc. What's the best way to do this?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    on frame#1 of second mc add a trace - trace(this);
    this will output the path that you must use from home button

    hth

  3. #3
    Member
    Join Date
    Jan 2003
    Location
    Nashville Tennessee
    Posts
    37
    Can you give me an example of the script. I'm quite dumb with actionscript even though I've been working in Flash since flash 5. Learning slowly
    Last edited by garretthes; 08-16-2007 at 11:47 AM. Reason: spelling

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    what is the output when you add the trace ?

  5. #5
    Member
    Join Date
    Jan 2003
    Location
    Nashville Tennessee
    Posts
    37
    _level0.instance7

  6. #6
    Member
    Join Date
    Jan 2003
    Location
    Nashville Tennessee
    Posts
    37
    I uploaded a scaled down version for you to see.
    Attached Files Attached Files

  7. #7
    Member
    Join Date
    Jan 2003
    Location
    Nashville Tennessee
    Posts
    37
    Hey! I got it! I used the following script;

    onClipEvent (load) {
    _level0.instance7.gotoAndStop(1);
    }

    Thanks for the help!

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