A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Using a nested swf to load another swf into the main swf...!

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    13
    I'm bulding an interface with two screens, one on the left and one on the right. The primary .swf loads an .swf into the left screen, which contains a button list. Each button on the left screen brings up a movie on the right screen.

    My question:

    How do I make the .swf which is loaded into the left screen load another .swf into the right screen? Can an .swf in a subdirectory call files from higher or parallel directories?

    Thank you!

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    705
    you can use two things that i can think of.
    _parent.mc.doSomething();
    and
    _root.mc.doSomething();

    _parent refers to the movie just above the one makeing tha call. You can even use:
    _parent._parent.mc.doSomething();
    if you want to go back 2 directories.
    _root goes all the way back to the main timeline. From there use parth as normal.
    Hope this helps, frank
    http://www.geckoarts.com

  3. #3
    Junior Member
    Join Date
    Sep 2000
    Posts
    19

    more info

    I've been working in such kind of interface

    but need to know if you are working with two separated explorer windows or you only divide the flash movie

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    705
    i was assuming its a divided movie. If your using frames, the code above isn't what you need

  5. #5
    Junior Member
    Join Date
    Dec 2001
    Posts
    13
    fpanko, I apologize for not thanking you sooner. I just saw your reply today, and your suggestion worked perfectly, of course. so thank you very much.

    alex42, i'm loading two swf files into a single swf file. so it would appear in one browser window.

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    705
    sure. no problem

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