Go Back   Flashtory Support Forum > Flash Files Support > Other Flash Files > News Rotator 01

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2009, 10:44 PM
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default How to pass in xml file?

Hi,
I need to pass in the location of my xml file so I can display the proper content for the page I'm on. I see in main.as that the xml file can be specified in _root.xmlFile, and that if it's not set there, then it will load data.xml.

How do I pass in _root.xmlFile ?

thx,
Reply With Quote
  #2 (permalink)  
Old 04-21-2009, 03:57 PM
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default Solution:

I figured it out...
I just updated the AC_FL_RunContent to say:
'movie', 'preview?xmlFile=productData.php%3FID=ProductDataI D',

and wrote the ProductDataID with how I wanted to construct the XML. Then, I just wrote a productData.php to return the XML response...


For noscript, you just do
<param name="movie" value="preview.swf?xmlFile=productData.php%3FID=Pr oductDataID" />
Reply With Quote
  #3 (permalink)  
Old 04-21-2009, 03:59 PM
Junior Member
 
Join Date: Apr 2009
Posts: 3
Default

Actually, noscript also needs:

<embed src="preview.swf?xmlFile=productData.php%3FID=Prod uctDataID" quality="high" bgcolor="#666666" width="590" height="300" name="preview" \
align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia\
.com/go/getflashplayer" />
Reply With Quote
  #4 (permalink)  
Old 04-22-2009, 04:45 PM
Flashtory Staff
 
Join Date: Feb 2009
Posts: 239
Default

Hello, it's nice that you figured it out on your own and shared with the other users of this forum. Thank you

Reply With Quote
Reply

Tags
data.xml

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
based on a modified theme of CompleteGFX