View Full Version : Problem with class paths
IanLiu
07-31-2006, 08:10 PM
Hello there!
I am new to this forum and I wanted to know how do I set a Class Path to my Package folder, so I can import my own classes from anywhere.
Hope you understood, I am brazillian =)
Cya!
Ian Liu.
astgtciv
07-31-2006, 09:07 PM
If you are using the Flash 9 Alpha Preview, you can add the classpath either for the whole IDE, or just for a particular .fla. To change the classpath for the whole IDE, go to Edit>Preferences>ActionScript, then click on ActionScript 3.0 Settings on the bottom, click on the "+" and add the path to your classes. To change the class path for a single .fla, go to File>Publish Settings>Flash Tab, click on "Settings" to the right of ActionScript 3.0, then click on "+" and add the path to your classes.
diogo
07-31-2006, 10:38 PM
off:
vc é do flashmasters, não?
se não me engano vi um tutorial de 3d seu lá.
(o mais falando português aqui o0)
IanLiu
08-01-2006, 10:40 AM
If you are using the Flash 9 Alpha Preview, you can add the classpath either for the whole IDE, or just for a particular .fla. To change the classpath for the whole IDE, go to Edit>Preferences>ActionScript, then click on ActionScript 3.0 Settings on the bottom, click on the "+" and add the path to your classes. To change the class path for a single .fla, go to File>Publish Settings>Flash Tab, click on "Settings" to the right of ActionScript 3.0, then click on "+" and add the path to your classes.
Hi astgtciv. Thanks for your answer, but I am not using the Adobe Flash IDE. Only the Free Compiler. I think I must add something to the flex-config.xml, but I could not get it.
Someone knows?
==
off:
vc é do flashmasters, não?
se não me engano vi um tutorial de 3d seu lá.
Translation:
Are you from Flash masters? I have seen a 3D tutorial from you there.
Eu nao "sou" exatamente da Flash Masters, mas casualmente posto meus tutoriais la sim, como esse do 3D =)
Translation:
I am not from Flash Masters, but sometimes I send some tutorials to there, like the 3D one =)
senocular
08-01-2006, 03:40 PM
Im sure theres a command line argument that specifies this. Probably:
-sp
astgtciv
08-01-2006, 05:29 PM
Yep, source-path or one of its aliases. If you want to use flex-config.xml instead of command-line, judging from the example in flex2_buildanddeploy.pdf, it's something like
<flex-config>
<compiler>
<source-path>
<path-element>mysourcedir1/mysource</path-element>
</source-path>
</compiler>
...
</flex-config>
The mxmlc compiler options are online here (http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001500.html).
IanLiu
08-02-2006, 03:35 PM
Thanks! Worked perfectly with the command argument -sp and the flex-config.xml!
Thak you all!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.