
Welcome Guest
|
#1
|
|||
|
|||
|
xml to child level swf file
I have two swf files... #1 "Master.swf" (which controls the switching from one product to the next) & #2 the "ProductTemplate.swf". The Master loads the images.xml file shown below, which tell it which product to display.
Code:
<?xml version="1.0" encoding="UTF-8"?> <gallery> <album> <img src="ProductTemplate.swf" title="Product Name" price="$24.99" productImage="product.jpg" linkDetails="html page link here"/> <img src="ProductTemplate.swf" title="Product Name #2" price="$19.99" productImage="product2.jpg" linkDetails="html page link here"/> </album> </gallery> The "ProductTemplate.swf" file has dynamic text instance names of "title_txt" & "price_txt" for the text based content that is pulled from the "images.xml" file. For the linkDetails it has a button with an instance name of "linkDetails" with AS as follows: Code:
on (release) {
getURL(linkDetails, "_self");
}I can't figure out the AS that needs to be in the "ProductTemplate.swf" in order to get the data from the images.xml file for each of the products and change that information when the "Master.swf" moves to the next product. Can someone help me with this. I am new to Actionscripting thus I am having difficulty making this work as intended. Any help would be greatly appreciated... Thanks for the help. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading SWF file into PHP using XML! | Christam1 | Newbies |
0 | 12-17-2008 02:23 PM |
| Help Wanted!!! A SWF file that Cannot Convert to other Format!!! | sydney1128 | Newbies |
3 | 01-26-2007 09:16 AM |
| Reading from an XML File | Isekream | Server Side | 1 | 11-04-2005 03:44 PM |
| I have a swf that loads info from an XML file..a way to stop the xml file caching? | bunion | Newbies |
1 | 02-25-2005 06:26 PM |
| Cross Domain Policy File | dv8 | Flash MX 2004 |
2 | 09-11-2003 03:16 PM |

Other Programming



