A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: targeting MC's on the correct level

  1. #1

    targeting MC's on the correct level

    Ok - I have 2 movies main.swf and dom.swf. I have a movie clip on main.swf called ‘bashment’ that I control using a button with the following code:

    on (rollOver) {
    bashment.gotoAndPlay(2);
    }
    on (rollOut) {
    bashment.gotoAndPlay(16);
    }

    however I want to be able to control the movie clip when I am on the dom.swf which is on level 2 (main.swf is on level1)

    so I basically some extra code adding that tells the button to not just action the MC, but where that MC is located, ie level2.

    Any help would be more than appreciated

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    on (rollOver) {
    _level#.bashment.gotoAndPlay(2);
    }
    on (rollOut) {
    _level#.bashment.gotoAndPlay(16);
    }
    where # is your target level number.

    hth

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