AS3 MovieClip in an array problem
Error #1034: Type Coercion failed: cannot convert []@229dff21 to flash.display.MovieClip.
The above is the eror message I get.
var girl:MovieClip = new ShawlGirl() is an example of the variables I created for the elements in the array
What I have is an array full of movie clips.
var myImages:Array = new Array(boy,cat,dog,frog,girl,jumps,runs)
There is a function that adds a number of these to the display list.My problem is sometimes it adds the elements and at other times I get the above error message.
In trying to track the error down I added all the images one at a time and they all displayed without difficulty.Its only when adding multiple images that I get the error and that is not always consistant.
Any help would be just great
thanks
Mango