[flexcoders] Re: Flex: getting the current directory
Hi :) you can accsess the url like this var url:String = Application.application.url; take a look at About exchanging data with Flex applications in Flex Help. --- In flexcoders@yahoogroups.com, renzeullo [EMAIL PROTECTED] wrote: Hi guys, Quick question: Is there a way to get the current directory that a Flex application is currently running in? For example, if I'm running an app in C:\Documents and Settings\Administrator\Desktop\FlexApp\app.html, is there a way to retrieve C:\Documents and Settings\Administrator\Desktop\FlexApp ? Thanks in advance. Regards, Renz
[flexcoders] Re: Flex: getting the current directory
--- In flexcoders@yahoogroups.com, renzeullo [EMAIL PROTECTED] wrote: Hi guys, Quick question: Is there a way to get the current directory that a Flex application is currently running in? For example, if I'm running an app in C:\Documents and Settings\Administrator\Desktop\FlexApp\app.html, is there a way to retrieve C:\Documents and Settings\Administrator\Desktop\FlexApp ? Thanks in advance. Regards, Renz You are probably looking for Application.loaderinfo.url? loaderinfo is inherited from DisplayObject. Marc
[flexcoders] Re: Flex: getting the current directory
Thanks Cato and Marc! I will try it out. :) --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi :) you can accsess the url like this var url:String = Application.application.url; take a look at About exchanging data with Flex applications in Flex Help. --- In flexcoders@yahoogroups.com, renzeullo renzeullo@ wrote: Hi guys, Quick question: Is there a way to get the current directory that a Flex application is currently running in? For example, if I'm running an app in C:\Documents and Settings\Administrator\Desktop\FlexApp\app.html, is there a way to retrieve C:\Documents and Settings\Administrator\Desktop\FlexApp ? Thanks in advance. Regards, Renz