-
Hi guys,
Shortly, I have some variables place holders in my movie and they are linked to xml file.
Like...
NewsXML = new XML();
NewsXML.load("news.xml");...and so on..
So it all works fine but when this movie is loaded on _level 1, xml data is not loaded.
I am 100% sure about xml script.
So xml object works only with _level0?...No.
Could anyone clarify it to me, please.
Thanks!
Trump
-
Uhh...
You want to make sure that the onLoad callback handler is referenced absolutely - and not relatively.
Targeting is the biggest mistake made with stuff like this.
-
vaykent, just wanted to let you know: THANK YOU!!! had the same problem, and looks like a very simple advice like this one just made everything happen the way it should be.. thx!
-
Uhh...
No problem - Flash has some funky routing....
-
Re: Uhh...
I am having the same problem. Can you elaborate on what you mean by "make sure that the onLoad callback handler is referenced absolutely - and not relatively"?
Should he have done:
NewsXML.onload = _level1.handleXMLloaded
I tried this and it didn't work. Thanks.
-
Uhh...
A lot of people reference things 'relatively'... this will lead to problems if you're not sure where things are...
... and when you're dealing with XML - a lot of people get lsot about where things are.
If you wanted to reference a function called 'myFunc' then you might do it this way:
nameOfYourXMLObject.onLoad = myFunc;
BUT - if you're havnig problems triggering the function then you should try referencing it absolutely, like htis:
nameOfYourXMLObject.onLoad = _root.pathToTheFrameOrClip.myFunc;
That will eliminate the worry of having to know where things are...
I hope that made more sense.
-
I think I discovered the problem. There seems to be a bug in the Stand-alone player that screws up the path of the onLoad callback function. I tried using the browser flash player by way of opening the swf embeded in an html and it worked fine.
-
Uhh...
Like I said - it's too much of a pain to figure out the paths.. and you can avoid that if you use absolute references.
-
Senior Member
In regard to your flash player version, you probably find that the player that shipped with Flash is V5.0.31 while the browser has been updated along the way and is at 5.0.41+ there are a number of things that work better in .41 in regards to XML.
Thanks
Luke
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|