Flash Qu.
- Started
- Last post
- 8 Responses
- Beech
Hoping someone can help me out with a bit of flash know how.
I want to set the depth level of an external .swf using the loadClip method.
Ultimately i want to use the getNextDepth thingy but i can't set the depth yet :(
Thanks in advance.
- System-Idle0
you can use loadMovieNum()
to load into levelsbut might be better to use loadMovie('url',target)
target being an empty movie clip instance
- Beech0
Thanks, loadMovie would work but i still don't know how to set the depth levels.
Is there a method for me to set a mc's depth level before I place an swf? or am I going around in circles?
- System-Idle0
depends.
you can manually place empty mc's on the stage on separate layers (this will give you yr depth), name them and then target them with yr code.
or you can attach them dynamically from yr lib (making sure you set up the linkage properties) like this: attachMovie(mc_linkage_name,'new...
if you still want to load swf's into levels use: loadMovieNum('url',level_num);
;)
- Beech0
Ah ... i'll create the mc in AS rather than having it already on the stage.
Thanks mate.
- System-Idle0
depth=this.getNextHighestDepth()
this.attachMovie(mc_linkageName...
this['newName'+depth].loadMovie...
- Anarchitect0
or:
this.createEmptyMovieClip("holde... this.getNextHighestDepth());
holder.loadMovie("movie.swf");
- System-Idle0
yes, sorry forgot that one
- Beech0
cool thanks for your help guys