casting variables to movie clip
Posted
by user16458
on Stack Overflow
See other posts from Stack Overflow
or by user16458
Published on 2010-04-27T18:48:04Z
Indexed on
2010/04/27
19:23 UTC
Read the original article
Hit count: 316
flash
|actionscript-3
How i can convert gecko object to a movie clip
function finish(boxname, arrayname:Array):void {
for each (var item:String in arrayname) {
trace(boxname+"_"+item);
var gecko:MovieClip = (boxname+"_"+item) as MovieClip ;
trace(typeof(gecko));
gecko.gotoAndPlay("glow");
}
}
i get the following error
high_hsymbol_1 object TypeError: Error #1009: Cannot access a property or method of a null object reference. at quizz_fla::MainTimeline/finish() at quizz_fla::MainTimeline/dropIt()
© Stack Overflow or respective owner