Groups | Blog | Home
all groups > flash data integration > may 2005 >

flash data integration : Grabing XML files


MTroutSki
5/12/2005 4:22:36 PM
I am creating an XML ticker, the problem I am running into is this. Some of the
XML files I need to load in have names that continualy change every time the
XML is updated. Moreover they change in no organized way. Example the first XML
file may be named: 093108d9-0a0a94d9-076751b8.XML the second will be named
093108d9-0a0a946d-02e7505a.XML.

Can I have flash just pull in any XML documents in a specified folder? or do I
need to know the exact name of each file.
perry
5/13/2005 12:00:00 AM
you´ll need serverside programming like php to pull any file from a folder

perry


"MTroutSki" <webforumsuser@macromedia.com> schrieb im Newsbeitrag
news:d5vvsc$8in$1@forums.macromedia.com...
[quoted text, click to view]

Ashish123
5/14/2005 12:00:00 AM
Hi,

Yes there is a way you can grab the xml files having different names in Flash.

Just need to follow the steps below:

in flash on ur first key frame code this :

vat myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = loadTesting;
myXML.load(filename); //filename is the variable name which you would be using
it for assigning ur dyanamic xml file name

-------------------------------------------------

in ur html/jsp/php/asp page where ever ur having flash object

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,0,0" width="865" height="865" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Labels.swf?filename=yourXmlFileName.xml" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Labels.swf?filename=yourXmlFileName.xml" quality="high"
bgcolor="#ffffff" width="865" height="865" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

----------------------------------------

Just assign the dyanmic xml filename to the variable to filename.

I think this is what u needed ...

-------------
aShIsH


AddThis Social Bookmark Button