Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

createEmptyMovieClip from dynamic movieclip [code supplied]

Status
Not open for further replies.

QuantumDoja

Programmer
Jun 11, 2004
76
GB
Hi, I have a movieclip that is created dynamically with actionscript. I want to then create a empty movieclip on this movieclip to load some more content...here is my code. How can I get it to work?

Code:
//this doesnt work
this["mc"+myId].createEmptyMovieClip("fu" + myId,this.getNextHighestDepth());

//this does
this.createEmptyMovieClip("fu" + myId,this.getNextHighestDepth());

 
looks like you are attempting to place a clip inside of itself which wont work

this.createEmptyMovieClip("fu" + myId,this.getNextHighestDepth());
this["fu"+myId].createEmptyMovieClip("fu" + myId+1,this.getNextHighestDepth());

will work

however it aint clear from the question if thats what you are looking for
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top