--
*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
Behalf Of *cholid cholid
*Sent:* Tuesday, February 02, 2010 10:49 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [SPAM] Re: [flexcoders] Loading XML
can you tell how you call the xml
I am getting a security error when trying to load an xml file into my swf. The
xml and swf are right next to each other in the same directory. What gives?
From what I understand, the swf should have access to the xml file. I have no
problem loading jpg, or png.
can you tell how you call the xml is?
From: ztpi1 zt...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Wed, February 3, 2010 8:53:59 AM
Subject: [flexcoders] Loading XML
I am getting a security error when trying to load an xml file into my swf. The
xml
, development services available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of cholid cholid
Sent: Tuesday, February 02, 2010 10:49 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [flexcoders] Loading XML
can you tell how you call the xml
Hi,
I am creating a flex application that has its UI elements and some basic
data that are dependent upon a config.xml.
Loading the config.xml on application preinitialize/initialize/onComplete
would not be appropriate as my application preloading would be complete and
I still dont see any UI
Extend the DownloadProgressBar Class (name it e.g myPreloader) and
override the preloader:
override public function set preloader(value:Sprite):void
{
value.addEventListener(FlexEvent.INIT_COMPLETE,
FlexInitComplete); // I added my download function to the
INIT_COMPLETE event
}
Wow, that is pretty descriptive... thank you very much Rico...!
umm.. so Extending the downloadprogressbar class is the way...
I will try it out in sometime. Thank you very much for your help..
regards,
Varun Shetty
On Thu, Apr 3, 2008 at 1:26 PM, Rico Leuthold [EMAIL PROTECTED] wrote:
when I run this i get a runtime error about not being able to access
local files. If I comment out the local xml file reference and
uncomment the reference to sephirot's xml file. it works fine.
How can this be used to load local XML? And i think using the compiler
switch to allow local
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_Partsfile=1500.html
You're code also looks a
Aaron,there is a space in the filename " menu.xml" and i also think it might be in the resources directory - try "resources/menu.xml" - when you go and publish this you need to be aware that the relative path is from the root of the webserver - not the path of the flash file.I have a nice
f aaron smith
Sent: Sunday, August 13, 2006 2:45
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] loading xml
how do I load local XML?
I was doing this:
private function loadXML():void
{
myXML = new XML();
myXMLURL = new
URLRequest(XML_URL);
myLoader = new
URLLoa
Ok question about using the -use-network switch.why do you have to use that to access local files. That just seems like a pain. why would you have to switch back and forth depending on you're build type. DEV sv LIVE. What if in some cases you're DEV version needs to access network for remoting
I had the same questions and I did some testing today.
If you are using URLLoader.load you don't have to use the use-network
compiler switch.
Assuming you are using relative URLs, as in URLLoader.load(new
URLRequest(data.file)), you will be able to load from local to local
(when testing your
I'm having troubles figuring out where the functionality to load xml went. What classes do i use to load xml?thanks
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
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 =
15 matches
Mail list logo