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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing 1

Status
Not open for further replies.

mike314

Programmer
Jun 24, 2003
143
US
Got a quick one here, can't seem to find it by searching but how can I import an actionscripts file (AS 2.0, Flash MX2004), to use its class in an fla?

I'm doing this,
#include "Base64-20.as"

but getting these errors

**Error** C:\Documents and Settings\mike\Desktop\Base64-20.as: Line 24: Classes may only be defined in external ActionScript 2.0 class scripts.
class Base64

**Error** C:\Documents and Settings\mike\Desktop\Base64-20.as: Line 25: The class 'Base64' needs to be defined in a file whose relative path is 'Base64.as'.
extends Object


am I missing something?

thanks
 
I see, I changed it to use
import "Base64-20.as"

but it gave me this error
frame=1:Line 1: Identifier expected
import "Base64-20.as
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top