Looks like you need to use the mxmlc compiler argument '-use- 
network=false' when compiling your application.

Flex livedocs entry on this topic: http://livedocs.macromedia.com/ 
flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm? 
context=LiveDocs_Parts&file=00001500.html

You're code also looks a bit odd to me. I don't believe it will  
compile because the URLLoader constructors requires a URLRequest and  
won't accept a string value. I'm guessing you meant

myLoader = new URLLoader(myXMLURL);

HTH

Chafic

On Aug 12, 2006, at 8:45 PM, aaron smith wrote:

> how do I load local XML?
>
> I was doing this:
>
> private function loadXML():void
>         {
>             myXML = new XML();
>             myXMLURL = new URLRequest(XML_URL);
>             myLoader = new URLLoader(" menu.xml");
>             myLoader.addEventListener("complete", xmlLoaded);
>         }
>
>         private function xmlLoaded():void
>         {
>             myXML = XML(myLoader.data);
>             trace("Data loaded.");
>         }
>
>
>
> but it spits out errors. Is there security issues?
>
> here are the errors..
>
> SWF file file:///C|/Documents%20and%20Settings/aaronsh/Desktop/dev/ 
> flash/%5F%20AS3%20TESTING/3waylayout/classes/Main.swf cannot access  
> local resource file:///C|/Documents%20and%20Settings/aaronsh/ 
> Desktop/dev/flash/%5F%20AS3%20TESTING/3waylayout/classes/menu.xml .  
> Only local-with-filesystem and trusted local SWF files may access  
> local resources.
>
> Do i need to do something different for local files? I would think  
> it would be the same as how you load from a URL...
>
> thanks.
>
> 



--
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/
 


Reply via email to