Answered
Semicolon?
Got an error saying there needs to be a semicolon before "boy" ?
var snd:innocent boy = new innocent boy();
Got an error saying there needs to be a semicolon before "boy" ?
var snd:innocent boy = new innocent boy();
innocentboy needs to be a single word. It is the name of the class, the instance name that you are giving to the new instance should be different from the name of the class:
var snd:myInnocentBoy = new innocentboy();
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.