Hi guys,
googled it and hardly found any answer(seriously)
need a quick solution for this:
- How to create object from class that extends MovieClip
Say i have a class name MC
package {
import flash.display.MovieClip;
public class MC extends MovieClip {
public function MC() {
}
}
}
and in main timeline, i create variable from MC Class, and make an object id:
var mc = new MC();
mc.id = 1;
trace(mc.id);
strangely enough, it gave me this error:
Error #1056: Cannot create property id on MC.
how do i fix this issue? why it can’t make any object since it is a MovieClip?
Thanks ya people