FORUMS: list search recent posts

Re: loading mc into empty mc

COW Forums : Adobe Flash

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Pieter HelsenRe: loading mc into empty mc
by on May 4, 2012 at 9:37:10 pm

well, the movieclip is actually a class now. So what the following lines do is creating a new instance of the movieclip and adding it to your container (it's like dragging a movieclip from the library onto the stage):

var myMC:MovieClip = new MyTestMC();
myContainerMC.addChild(myMC);


So 'MyTestMC' is the name of the class that you gave to your movieclip in the library.

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.


Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]