Declare a property in your mxml like this: <mx:String id="strContextRoot">@ContextRoot()</mx:String>
Now, in AS code you can use "strContextRoot" in your path. Tracy -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Friday, November 25, 2005 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to specify root application folder Hello Flex Coders, I have next problem: I have images folder in the root of the application folder. And I have mxml file deeply inside other folders, that has Loader component and I want to load image there. But I don't know how to specify path to the image i.e. I don't know how to point to the root of the application folder. So the question is, how it should look like: source="/images/phone1.jpg" or source="./images/phone1.jpg" or source="../images/phone1.jpg" Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/