View Full Version : Embedding a Flashplayer in DIV frame

12-06-2006, 08:34 PM
Hi there people, really in need of some help, I am a newbie to everything web but am trying to learn.

At the moment im creating a myspace layout using DIV's, and wish to put a flash player i built using a tutorial in one of the DIV boxes. The thing is when i do embed it, it appears on the myspace page but you cant click any of the buttons and it doesnt play the music.

I therefore tried a different prebuilt flash player and downloaded the code and once again attempted to embed it into my DIV box. This time the music did stream, but once again u couldnt press any of the "play" "stop" "forward" buttons.

my myspace page is: Myspace (http://www.myspace.com/ojayofudrecords)

The flash player is hosted here:
Flash Player (http://www.geocities.com/a_j_oggie/mp3player-Demo2.swf)

.div0 {

background-position:center center;

background-color:000000; color:FFFFFF ;
border:2px solid; border-color:006699;
width:250px; height:230px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-125px; margin-top:420px; text-align:center;

<div class="div0">
<embed enableJSURL="false" allowScriptAccess="never" allownetworking="internal" enableJavascript="false" allowScriptAccess="never" allownetworking="internal" src="http://www.geocities.com/a_j_oggie/mp3player-Demo2.swf" menu="false" quality="best" scale="noscale" wmode="transparent" bgcolor="..cccccc" width="218" height="155" align="middle" allowScriptAccess="never" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

And that is most of the code relevant to the issue i think? If not i will post more.

Please any help would be grateful. Cheers, Adam.

12-07-2006, 04:54 AM
You can try SWFObject : http://www.adobe.com/devnet/flash/articles/swfobject.html

12-07-2006, 05:56 AM
Hmm looks like an mp3 player. No you can't use swfobject because myspace doesn't allow javascript. Personally I think the player found here


is a lot better than the one you linked to.

Here is a tutorial on how to get it to your myspace page


12-08-2006, 12:25 PM
Thanks people :thumbsup: