Groups | Blog | Home
all groups > flash data integration > february 2006 >

flash data integration : XML Preview Bug?


cory_clarke
2/11/2006 3:17:26 PM
Has anyone run across this problem, and hopefully a fix? I'm working on PC with
Flash 8 and recently have had a problem crop up. I do a lot of development with
XML and typically have no problem. However, recently all of my files that have
been working fine suddenly stopped working when I test them, they are no longer
able to load XML. Everything works fine if I preview them through a browser (so
it is not an issue with bad code or the data source), but not if I test them
in Flash (cntrl+enter). Testing them in Flash just gives 'Error opening URL ...'

Does anyone know if there is somewhere the Flash development environment
caches XML internally? I wondering if that cache file is corrupt and screwing
things up. Any suggestions would be great - its really killing my development
flow..
Motion Maker
2/12/2006 1:58:52 AM
Sounds like a server script is involved.

Display the url fed to the XML sendAndLoad or load method and if it is
showing file:///// you may need http:// hard coded in for testing when you
are using the authoring environment if the server script is relatively
referenced to the swf.

Relative might be this: myXMLScript.php or asp or cfm or whatever.

Hard coded this: http://theserverurl/myXMLScript.php

You can use System.capabilities.playerType to choose between the hard coded
url and the relative.

http://livedocs.macromedia.com/flash/8/main/00002879.html
--

Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Has anyone run across this problem, and hopefully a fix? I'm working on PC
with
Flash 8 and recently have had a problem crop up. I do a lot of development
with
XML and typically have no problem. However, recently all of my files that
have
been working fine suddenly stopped working when I test them, they are no
longer
able to load XML. Everything works fine if I preview them through a browser
(so
it is not an issue with bad code or the data source), but not if I test
them
in Flash (cntrl+enter). Testing them in Flash just gives 'Error opening URL
....'

Does anyone know if there is somewhere the Flash development environment
caches XML internally? I wondering if that cache file is corrupt and
screwing
things up. Any suggestions would be great - its really killing my
development
flow..

cory_clarke
2/12/2006 4:15:43 PM
Thanks for the feedback, but I'm pretty sure that relative/absoluting linking
is the not the problem. I have http:// hard coded before the urls and it was
working fine for months, all the sudden ANY flash file I have with XML refuses
to preview in the development environment. I know it isn't the code because if
I move it to another machine (PC or Mac) it runs fine, it seems to be specific
to my computer. Do you know if there is some sort of cache file Flash uses
locally that might be corrupted?

Motion Maker
2/12/2006 6:04:32 PM
Perhaps if a cache is suspected, changing the file name on a test basis
would eliminate that possibility.

But here is another though. Use the example in help which connects to
MM/Adobe cfm file.
http://livedocs.macromedia.com/flash/8/main/00002879.html

Add a
trace(success)
trace (myLoginReply_xml)
to the top of the myOnLoad function

and you would see this in the output window.

true
<packet success="true" date="2006-02-12" time="17:01:16"
sessionid="607F1B8E-B0D0-2052-2D77A71465739D30" />

If you do not see that but do on other machines, then you might want not
only to start a new thread to that specific issue but take it up with
Macromedia support.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Thanks for the feedback, but I'm pretty sure that relative/absoluting
linking
is the not the problem. I have http:// hard coded before the urls and it was
working fine for months, all the sudden ANY flash file I have with XML
refuses
to preview in the development environment. I know it isn't the code because
if
I move it to another machine (PC or Mac) it runs fine, it seems to be
specific
to my computer. Do you know if there is some sort of cache file Flash uses
locally that might be corrupted?

AddThis Social Bookmark Button