Hey,
I've been doing AS3 for like less than 24 hours and I have hit a problem.
This is my Main.as file (pretty much as it comes)
Code:
AS3 - Stuff won't display
addChild(popup) in your main class.
Also... put your code in the init function so you know you have access to the stage. Another thing, typecast your popup as "popup" (you don't need the whole "window.popup" either since you have already imported that class.
Also... put your code in the init function so you know you have access to the stage. Another thing, typecast your popup as "popup" (you don't need the whole "window.popup" either since you have already imported that class.
Done, I get this error:
Code:
Code:
Typecast it as the popup like I said, you can only add classes that extend the displayobject (sprite, movieclip, bitmap etc).
Right so I now have
Code:
Code:
"public class popup extends Sprite"
popup needs a capital P
do the same for the name of the .as file too
popup needs a capital P
do the same for the name of the .as file too
Yeah, sorted all that, noob errors haha.
All this sorted now, thanks a lot Willy
Recovered from /showthread.php?p=212895 · captured 2010.