are you using "#include" or "import" to pull in your external .AS file?
if you JUST have code in your .AS file, you need to use "#include": #include "init.as" if you have full class code, then you use "import": import init; // which resides in init.as sounds like you're using "import" when you should be using "#include" :-) hth g. On 10/25/05, jleonard <[EMAIL PROTECTED]> wrote: > > I have just separated out my as code into different pages. The init.as > page is now showing this error where before it worked fine. Any help > greatly appreciated... > > > **Error** C:\Documents and Settings\PC2005\My Documents\flash > player\init.as: Line 5: ActionScript 2.0 class scripts may only define > class or interface constructs. > > var cvtvSourceVideo:String = "streams/Demo384K_Stream.flv"; > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.com _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

