It all depends on how you use the .as files. You can either INCLUDE
them or IMPORT them. You import classes and include external code. The
error you're getting like is a result of importing your script instead
of including it.
Try using include:
#include "yourscript.as"
Notice no semicolon at the end of the line.
JOR
___________________________________
=== James O'Reilly
===
=== SynergyMedia, Inc.
=== www.synergymedia.net
Kent Humphrey wrote:
Strangely enough, I've been getting the same errors (I'm new to this
external .as thing), but when publishing from PrimalScript, everything
works fine...
On 25 Oct 2005, at 14:21, Hans Wichman wrote:
Hi,
an as file may only define a class as in:
class MyClass {
}
or an interface as in:
interface MyInterface {
}
Just copying your timeline code into separate files and having a file
with for example:
var myVar:String = "ffsdfsfs";
is not gonna work.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders