PDA

View Full Version : Include .as globally



Tyg3r
October 23rd, 2008, 11:02 AM
Hi

I have a .as file (work.as) that I'd like the import into my flash file from a entirely different website.

However, this doesn't seem to work:


#include "http://www.websitename.com/scripts/work.as"

Any ideas how I can import a .as file using this method?

Thanks

glosrfc
October 23rd, 2008, 11:11 AM
AS files are only imported into an SWF when it's compiled. It must be located in the classpath on the host pc. See "About importing class files" in Flash help for more information.