Answered
1046: Type was not found or was not a compile-time constant
I am trying to create a Flash game and am at the point where
I am trying to add blocks to my platform but want to do it by
script so that I could tell it where to place them on the stage
rather than my having to manually do it; however I keep on getting
the following errors along with the associated code on mygame.as:
1046: Type was not found or was not a compile-time constant: rect2020.
var newObject:rect2020 = new rect2020();
1180: Call to a possibly undefined method rect2020.
var newObject:rect2020 = new rect2020();
I have in mygame.fla in the library a movieclip of rect2020 which is essentially a 20x20 image I had created in fireworks and imported into the library. Is there anything special I need to do? attached is my intended code:
1046: Type was not found or was not a compile-time constant: rect2020.
var newObject:rect2020 = new rect2020();
1180: Call to a possibly undefined method rect2020.
var newObject:rect2020 = new rect2020();
I have in mygame.fla in the library a movieclip of rect2020 which is essentially a 20x20 image I had created in fireworks and imported into the library. Is there anything special I need to do? attached is my intended code:
