Go Back   Flashtory Support Forum > Flash Files Support > Flash Audio/Video Players > Mini MP3 Player Sound Controller AS3

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2011, 03:59 AM
Junior Member
 
Join Date: Mar 2011
Posts: 5
Default Custome xml

Hi i am using your mini player inside a php script and the XML file needs to be generated from a database... How can i specify a "data.php?id=1" instead of "data.xml"?
Reply With Quote
  #2 (permalink)  
Old 03-29-2011, 01:00 AM
Junior Member
 
Join Date: Mar 2011
Posts: 5
Default

After spending a few $ on 3 diffrent flash and always strogling on the same very anoying detail ... i decided to learn how to get this solved my self...

in the .as file locate the line that loads the data.xml and change the line to:

loader.load(new URLRequest(loaderInfo.parameters.myFlashVar));

Then load the myFlashVar as a normal FlashVar like this

PHP Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="200" height="50" id="miniMp3Player" align="middle">
    <
param name="allowScriptAccess" value="sameDomain" />
    <
param name="allowFullScreen" value="false" />
    <
param name="flashvars" value="myFlashVar=data.php" />
    <
param name="movie" value="miniMp3Player.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />    <embed src="miniMp3Player.swf" quality="high" bgcolor="#000000" width="200" height="50" name="miniMp3Player" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    </
object
Change the data.php to what ever you need the XML to be ...

compile the .fla to swf and voila ;-)

You can use this with any flash applications
Reply With Quote
Reply

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