If you share classes between two apps (particularly if they are different "heights" (depths?) in the tree) you should move the shared classes off to a separate root under user_classes (which is just a default directory, you can add additional roots to your actionscript classpath by editing your config).
 
-Roger

Roger Gonzalez
[EMAIL PROTECTED]

 


From: Jeff Krueger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 11:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Package names have to be off the root of your web app??

All,

 

            I have a question about package name.  I have a directory structure something like.

 

 

/net/client/etc                            Customer components

/com/iterationtwo/etc                  Cairngorm

/dam/config                               This is where application stuff is

/dam/user

Dam.mxml                                The main page of the app

 

 

All of these are in the root of my web app.  To me that is not very clean.  So I wanted to move them under one folder called flex.  So now I would have

 

/flex/net/client/etc                                  Customer components

/flex/com/iterationtwo/etc                        Cairngorm

/flex/dam/config                                     This is where application stuff is

/flex/dam/user

/flex/Dam.mxml                                     The main page of the app.

 

Interesting thing happened when I did this.  The main page works find and finds all that components references as net.client.etc.  But I load pages dynamically from example /flex/dam/user/userAdmin.mxml in a load control.  This page does not like the reference to net.client.etc, but instead wants flex.net.client.etc.  So is this telling me that my classes have to start in the root of my application?  Also I load that page as dam/user/userAdmin.mxml.swf inside of the Dam.mxml which I am assuming should work since it is relative path??

 

Thanks

 

 

Jeff

 



Yahoo! Groups Links

Reply via email to