Targeting clips on layers

http://www.pyroblue.com/test/marcomm/home.html

Theres the example to work with…anyway…as you can see, im loading in movies externally…each on its OWN different level…what i want to do is make it so that when i click a menu option on the left, the current swf loaded on the stage closes and the new one comes up (to avoid the clutter of 10 differnt windows all scattered)…here are my thoughts:

  1. have variables on the root timeline that are basically “currentLoaded” and “currentLevel” – which basically will store the name of the currently loaded swf and the level that its on.

  2. each swf would have code on frame one that would see if the ‘currentLoaded’ varible is blank, and if not…it will close the current loaded swf …

my dilemma is that i dont know how to change the level dynamically…i know you could do the instance name like this:

_level39[currentLoaded].gotoAndPlay(“crumple”) ;

but how do i dynamically change the level?

would it look like this? [currentLevel][currentLoaded].gotoAndPlay(“crumple”) ;

++++++++++++++++++++++++++++++++++++++++++

AND ONE MORE question…if i load things into all sorts of different levels and each with their own instance name…how do i access those objects? do i even need to worry about targeting the level?

could i use just like “instancename.gotoAndPlay(2)”

or does it have to be “_level93.instancename.gotoAndPlay(2)”

just wondering!

thanks a million!:luigi: