I'm not sure I have understood but _level0._url should give you the
context root

MovieClip._url
Availability
Flash Player 4.

Usage
my_mc._url:String

Description
Read-only property; retrieves the URL of the SWF or JPEG file from
which the movie clip was downloaded.

> 
> Is there any way within an AS file to find out the current context root?
> 
> 
> I have discovered that if I use the <mx:String> element, that the MXML
> translator will correctly replace @ContextRoot() with the current
> context root, which is fine, but I am wondering if there is a less
> hacky way to obtain this information from just ActionScript?
> 
> [this is all in building a file upload/download pair of components
> that have to do getURLs to talk to JSP pages and servlets, and thus
> need to know the context root to correctly sent out the URLs]
> 
> 
> 
> 
> 
> ________________________________
> 
> 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]
> <mailto:[EMAIL PROTECTED]> 
>         
> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





 
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/
 



Reply via email to