all groups > flash data integration > may 2006 >
You're in the

flash data integration

group:

XML Issue


XML Issue Firelands_Tech
5/31/2006 6:31:54 PM
flash data integration:
I recently created a flash animation that calls the dynamic text from a XML
file. The movie works when I use flash player, however when it is embeded in a
webpage it does not load the XML. Any help would be great.


Adrian Salvador
Director of Information Technology
Firelands Winery, Sandusky Ohio, 44870
Re: XML Issue Nancy *Adobe Community Expert*
6/1/2006 3:14:05 PM
You probably don't have the xml file in the right directory. Make sure it's
not a path problem.


--
Nancy Gill
Adobe Community Expert
BLOG: http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development


[quoted text, click to view]

Re: XML Issue Motion Maker
6/2/2006 2:06:22 PM
If the xml file is in the same folder, you may need to use the full absolute
path to the file. You can get that with
urlBase = _url.substr(0,_url.lastIndexOf("/")+1);
trace (urlBase)

then

send_xml.sendAndLoad(urlBase + "theXMLFileName.xml", theResult_xml);

--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
I recently created a flash animation that calls the dynamic text from a XML
file. The movie works when I use flash player, however when it is embeded
in a
webpage it does not load the XML. Any help would be great.


Adrian Salvador
Director of Information Technology
Firelands Winery, Sandusky Ohio, 44870

Re: XML Issue Flash Dhana
6/8/2006 4:43:49 AM
is there anyway to protect xml file from the user.. i have questions and answer
in the xml file.. its a flash quiz, once i delivered to the client they can
open the xml file and see the answer.. i want to do something.. please suggest.
Re: XML Issue Motion Maker
6/8/2006 9:02:47 AM
1. You could place the XML or raw data in the Flash movie or in external
Flash movies. In the latter case the main Flash movie would then load the
external Flash movie and use the data. Again only a skilled ambitious person
would attempt the decompiling and analysis process. If the external movie is
played they would see nothing since it only has code.

For desktop Flash implemented application you could deliver new quizzes via
updated external Flash movies containing the quiz data.


2. You could use a server side script that gets an XML structure from Flash
that has a unlock value and then the script returns the XML. If the script
does not get the correct lock value it returns a blank web page or a web
page with whatever. You Flash movie XML would then use sendAndLoad to
connect to the script and other than the send XML value(s) your Actionscript
would be the same.

Still a real ambitious person could get the unlock code from decompiling the
Flash movie with third party tools. If that is an issue, then you could
request the unlock code in your Flash movie and change it from time to time
in the server side script.



--
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
[quoted text, click to view]
is there anyway to protect xml file from the user.. i have questions and
answer
in the xml file.. its a flash quiz, once i delivered to the client they can
open the xml file and see the answer.. i want to do something.. please
suggest.

AddThis Social Bookmark Button