Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / June 2006



Tip: Looking for answers? Try searching our database.

Load XML URL from embed tag?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mocapoke - 24 Jun 2006 17:37 GMT
Throwing this out there. I would like to know how to have flash grab an XML URL
from the embed tag (i.e. embed src="" flashvars="profile=http://xmlfile.xml".

Reason:
I make http://mocapoke.com/copetutorials/template3 myspace templates for
people to use, but they can only be edited by people who own flash.  If the
user could edit an XML file with all of their content, then they would be able
to use the layouts regardless of whether or not they have flash.

Does anyone here know how to do this? I believe it is something like this on
an actions layer:

_root.profile == undefined ? profile= "mp3player.xml" : profile=_root.profile;

data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(playlist);

If I am able to load the XML, I can parse it. But I need to get it loaded
first.

Thanks,
Dan Hill
P.S. If you are POSITIVE you are able to do this, will you PLEASE email me,
danhill@mocapoke.com.  Thanks
Mocapoke - 24 Jun 2006 17:39 GMT
[q][i]Originally posted by: [b][b]Mocapoke[/b][/b][/i]
Throwing this out there. I would like to know how to have flash grab an XML
URL from the embed tag (i.e. embed src=""
flashvars="profile=http://xmlfile.xml".

Reason:
I make http://mocapoke.com/copetutorials/template3 myspace templates for
people to use, but they can only be edited by people who own flash.  If the
user could edit an XML file with all of their content, then they would be able
to use the layouts regardless of whether or not they have flash.

Does anyone here know how to do this? I believe it is something like this on
an actions layer:

_root.profile == undefined ? profile= "mp3player.xml" : profile=_root.profile;

data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(profile);

If I am able to load the XML, I can parse it. But I need to get it loaded
first.

Thanks,
Dan Hill
P.S. If you are POSITIVE you are able to do this, will you PLEASE email me,
danhill@mocapoke.com.  Thanks[/q]
Motion Maker - 25 Jun 2006 17:14 GMT
Assuming this is an authenticated login app, pass the session id or login
id,  (whatever you use to indentify the user) to Flash with flashvars if you
want and have Flash first load the profile xml, parse it and then move on to
the loading of the other files.

Signature

Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!

> Throwing this out there. I would like to know how to have flash grab an
> XML URL
[quoted text clipped - 29 lines]
> me,
> danhill@mocapoke.com.  Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.