Strike Force Heroes 2
The explosive sequel to the hit game Strike Force Heroes!
3.98 / 5.00 8,804 ViewsObsolescence
Defeat the enormous mechanical beasts--and become one of them.
4.02 / 5.00 43,016 ViewsCouldn't fit the full title in T _ T...
Anyway I was just wondering how I show objects in my display list on the actual stage in Flash using AS3? I figured it would be far more efficient to place all my MC's in the display list by using the .addChild(); method - but i'm usually greeted with Syntax errors and have no idea how to show these MC's from the DL, can anyone help me? Thank you very much.
My sig? I have no idea.
I don't get it, what's the code and what error are you getting?
var myTriangle:TriangleShape = new TriangleShape();
addChild(myTriangle);
I understand that I've added the variable to my Display List, but how do I get it to physically show on the Flash output?
Errors:
1046: Type was not found or was not a compile-time constant: TriangleShape.
1180: Call to a possibly undefined method TriangleShape.
Thanks for your help.
My sig? I have no idea.
Did you make sure to export the MovieClip for ActionScript?
I implore you to reconsider.
Yeah, the overhanging error is "TriangleShape" as a Class does not exist, your problem is elsewhere.
At 6/17/12 10:51 PM, Khronosis wrote: Did you make sure to export the MovieClip for ActionScript?
THANKS! I had to link it to the AS (or something :s) and create the Class of TriangleShape so it would show in the .swf. Thank you very much again for all your help NG Flash Forum - I'm learning new stuff errday ;D
My sig? I have no idea.