eswar.aspire 0 Newbie Poster

hello,
Any guide or suggestion to my problem.Thanks in advance..

I have an Iframe which load the flash Mp3player by mean of JavaScript using Swfobject.

1)But Its not loading properly by loading the XML to play the songs.

2)Also I have to send the Variable to flash to load the xml file path using Swfobject addVariable method.
like this,But i don't know its correct or not..

so.addVariable(“varInFlash”, “<?=$_GET["variableName"]?>”);
mp3player.load(_root.id”.xml”);

My java script code:


<script type="text/javascript" src="swfobject.js">
</script>

<script>
function load_iframe()
{
var so = new SWFObject("pub@lic_profile/@_profile/all_@_all/flashmo_203_modified.swf","flashmo_203_modified", "1000px", "800px", "8", "#FFFFFF");
so.addVariable(user_name);
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "always");
so.write("mp3player");
}
</script>

My html code:

<body onload="javascript:load_iframe();">
<div id="mp3player">
<iframe name="mp3player" id="mp3player" target="_root" style="position:absolute" width="100%" height="100%" marginwidth="0' marginheight="0" frameborder="no">

</iframe>
</body>

(or)


3)Also How to embed the Flash object or embed in Iframe


with regards,
Eswaran Saravanan,
University west,
Sweden.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.