variables - Actionscript : 1087: Syntax error: extra characters found after end of program -


i tried importing .as referring variable name/value

import "net.chars."+adc; 

you can't dynamically import path via string, because as3 imports occur compile-time. they're directives tell compiler classes/packages you're using, nothing more.

you might able use getdefinitionbyname function if need functionality, described in this answer. however, should note still have reference class somewhere in code, otherwise won't compiled swf. flash has no way of loading classes externally @ runtime, have ensure compiler knows include it.

for more information, see this article.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -