(Sorry for my english)
Hello!
Please help me! :bounce:
I want load a SWF from PHP/XML.
The source:
http://… /xml/… .php
The source-code:
<?xml version=“1.0” encoding=“UTF-8”?><ads><ad targeturl=“http://…” imagesrc=“http://… .swf” width="…" height="…"></ad></ads>
I need two object: the SWF (from XML) and a canvas above this with a transparency button with URL (from XML)…
How can I do this? 
Please send me an email, too: flashforum@freemail.hu
Thanks’!!!
OK, thanks… :3ye:
But I think you can make the code about one minute! :thumb2:
I need from this:
<?xml version=“1.0” encoding=“UTF-8”?><ads><ad targeturl=“http://…” imagesrc=“http://… .swf” width="…" height="…"></ad></ads>
to this:
<flashobjects>
<flashobject>
<object>… .swf</object>
<link>http:// …</link>
</flashobject>
</flashobjects>
:block:
[QUOTE=Pier25;2327270]1) your load your xml with the standard procedure: read the manual
-
you parse your xml by hand (firstChild, array.push, etc) OR automatically with xml Object from sephiroth
-
wether you have some arrays, or a data object you then create a for loop to extract the data and make something with it.[/QUOTE]
using “attribute” helps
<xml intro>
<list>
<item id=“1” object=“http://” link =“http” />
<item id=“2” object=“http://” link =“http” />
</list>
then it would be something like
linkvariable = this.childNode[0].childNode*.attribute/s.link
[QUOTE=flash-forum;2328093]OK, thanks… :3ye:
But I think you can make the code about one minute! :thumb2:
[/QUOTE]
Hey come on, you’ll never learn actionscript if I do it for you 
If you install the xmlObject and read the examples you’ll see it’s really easy…
Loading the xml: read the flash manual and then copy paste
Parse the XML with xmlObject: read the example and copy paste, it’s 2 lines of code.
then you do a “for” loop do whatever you want it to do…