Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error in class declaration extends MovieClip

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
So, I'm trying to get used to OOP flash and I'm getting kicked even before I start.

I have the beginning of the class which is implemented as such
Code:
class AuthorizeClass extends Movieclip
{
	
}

I have saved this in AuthorizeClass.as and include the class in test.swf like this:

#include "AuthorizeClass.as"


and I get this error:

AuthorizeClass.as: Line 1: Syntax error.
class AuthorizeClass extends Movieclip

What gives?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top