LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-06-2006, 11:20 PM
freshgear freshgear is offline
Registered User
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0
freshgear is on a distinguished road
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>
In the "ProductTemplate.swf" file that is loaded inside the "Master.swf" I've want to use a standard layout for all of the products (thus I want to use just the "ProductTemplate.swf" for all products) changing just the attributes of each of the products from the "images.xml" file.
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");
}
As for the "productImage" attribute I don't know what to do. (All product images are the same size BTW)
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.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 01:24 AM.