Im confused with loading movies

  • chrisjmcqueen
  • Born
  • Born
  • chrisjmcqueen
  • Posts: 4
  • Loc: Belfast

Post 3+ Months Ago


I'm having problems loading movies with the target thingie.
Does anyone know the code to load the swf into a movie back a layer.

Im using the target location not the level, at the minute im using

but then it dosent work when I have a swf that loads another swf inside my main movie swf.

Confused? me too.

Is there actionscript to do this or will I have to use levels ?
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

_root is the first timeline in the hierarchy.

When you load a movie into another movie, that hiearchy changes and the _root timeline becomes the _root timeline of the movie you loaded into (or if your going more than 2 levels in it becomes the _root timeline of 2 movies back... if you get my drift)

In ActionScript programming you are better off going with relative targeting using this and _parent instead of _root. This allows you to start from the current clips timeline location and go up or down a timeline in the hierarchy as needed and will work when loaded into another movie since you aren't starting from the base timeline in the hierarchy.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 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-2017. Ozzu® is a registered trademark of Unmelted, LLC.