A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Targeting Loaded SWFs On Different Levels?

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    10
    It took me a while to learn the old telltarget command, but now that's history. I'm building a site that has several loaded SWFs on different levels. I want to be able to click on a button on level 2 to tell the main movie (level 0) to GotoAndPlay scene 1, frame 1. I'm just not getting this. I keep reading the MX book and the help files over and over to no avail.

    Anybody up to speed with targeting levels yet or recommend a tutorial that actually SHOWS you HOW to use this function? Thanks!

    --Alex

  2. #2
    Brian Monnone
    Join Date
    Jul 2000
    Posts
    316
    This should work:

    This code is on the button in level 2 -

    on (release) {
    _level0.gotoAndPlay(FRAME LABEL HERE);
    }


    Try using a frame label instead of the actual frame. For some reason I have had better luck like this. This way you don't have to worry about what the scene name is or anything like that...just have Flash go staight to that frame NAME.

    - Sigma

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