How to Load external SWF to specific layer in Root?

  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Posts: 6
  • Loc: Silver Spring, MD

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • imaginus
  • Newbie
  • Newbie
  • User avatar
  • Posts: 6
  • Loc: Silver Spring, MD

Post 3+ Months Ago

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
  • uknightuss
  • Posts: 196
  • Loc: Los Angeles

Post 3+ Months Ago

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
  • uknightuss
  • Posts: 196
  • Loc: Los Angeles

Post 3+ Months Ago

Looks like you figured it out right as I was replying!
  • uknightuss
  • Graduate
  • Graduate
  • uknightuss
  • Posts: 196
  • Loc: Los Angeles

Post 3+ Months Ago

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
  • Posts: 6
  • Loc: Silver Spring, MD

Post 3+ Months Ago

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
  • Posts: 6
  • Loc: Silver Spring, MD

Post 3+ Months Ago

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 20 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.