Hey guys. I'm trying to create a common area for our re-usable stuff
that fits within the rest of our CF realm - almost there.
With a test.mxml anywhere in my file structure, I can do a
var x:MyClass = new MyClass();
Where MyClass.as is located at \\fileserver\wwwroot\flex\MyClass.as by
doing the following in the flex-config.xml:
<actionscript-classpath>
..
<path-element>\\fileserver\wwwroot\flex</path-element>
</actionscript-classpath>
<lib-path>
..
..
<path-element>\\fileserver\wwwroot\flex</path-element>
</lib-path>
But I'd like to break it down further by having a
\\fileserver\wwwroot\flex\Util directory and so forth.. So if I move
MyClass.as into that Util dir in test.mxml how do I reference it? I tried
<mx:Script>
import Util.*;
</mx:Script>
That didn't work, and I also added a "package Util;" to the start of
MyClass.as, and that doesn't work either. Tried renaming dirs and adding
an extra layer in case maybe there was a naming clash. Eg:
\\fileserver\wwwroot\flex\kms
\KMSUtil
\MyClass.as
In general I get 2 main errors:
The statement 'package' is incomplete.
The class being compiled, 'MyClass', does not match the class that was
imported, 'kms.KMSUtil.MyClass'.
Any ideas? Thanks!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/