How to Load external SWF to specific layer in Root?

  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 16, 2004
  • Posts: 6
  • Loc: Silver Spring, MD
  • Status: Offline

Post October 5th, 2004, 10:07 am

I am trying to get a SWF to load behind other layers in the root timeline - right now it loads over everything - that is on the top most layer. Is there a way to make it load to a specifc layer on the root timeline?

The extrernal file is loaded when user clicks on a button in the menu. This is how I am loading the external SWF:

on (press) {
loadMovieNum ("lifestyle.swf", 1);
}

on (release) {
_level1.gotoAndPlay("life1");
}

This has got me stumped! Can anyone offer a suggestion? Thanks!!

javascript:emoticon(':shock:')
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 5th, 2004, 10:07 am

  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 16, 2004
  • Posts: 6
  • Loc: Silver Spring, MD
  • Status: Offline

Post October 5th, 2004, 11:59 am

well I figured this out - I made both elements SWFs and used levels assigning the menu to level 2 and the main body to level 1.

Now it doesn't show the menu when I post to the server but it does show when I test locally - any ideas why?
  • uknightuss
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 198
  • Loc: Los Angeles
  • Status: Offline

Post October 5th, 2004, 12:02 pm

Any external swf that is being loaded into a _root movie is automatically above/higher than anything in _root.

_root IS level 0, you cannot go below 0 you can only go up 1,2,3,etc...

My suggestion is that if you have movies/animations/events happening in your main _root movie, and you want this other external swf to appear behind them, then you need to make what is currently happening in your _root into an external swf of its own. Once you have your new external swf extracted from the main timeline, you can reload it into the _root at a level that is higher than this other swf that you speak of.

You can adjust where each swf gets loaded in the main timeline to suit your needs.
  • uknightuss
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 198
  • Loc: Los Angeles
  • Status: Offline

Post October 5th, 2004, 12:03 pm

Looks like you figured it out right as I was replying!
  • uknightuss
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 198
  • Loc: Los Angeles
  • Status: Offline

Post October 5th, 2004, 12:05 pm

it might be your path to the external swf's.

Are the swf's all in the same directory? Have you uploaded the external swf's along with the main swf to your host?
  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 16, 2004
  • Posts: 6
  • Loc: Silver Spring, MD
  • Status: Offline

Post October 5th, 2004, 12:15 pm

I was just checking that to be sure and they do look like they are where they are supposed to be -
  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 16, 2004
  • Posts: 6
  • Loc: Silver Spring, MD
  • Status: Offline

Post October 5th, 2004, 1:37 pm

I think I got it - I was using relative paths but then tried physical and that seems to have done it. Thanks!

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 53 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.