Forum Moderators: open

Message Too Old, No Replies

Embed Flash Code Not Working.MySpace

         

mark4man

7:39 pm on Nov 4, 2007 (gmt 0)

10+ Year Member



OK...

Attempting to stream a Flash movie on my myspace page.

I've inserted neko's code:

<embed src="somefilename.swf" width="420" height="315">
</embed>

& my own...as created in Dreamweaver for another of my sites:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="420" height="315">
<param name="movie" value=http://www.myserver.com/somefilename.swf">
<param name="quality" value="high">
<embed src="http://www.myserver.com/somefilename.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="420" height="315"></embed>
</object>

...which is very similar to what myspace creates for the user when neko's code is inserted & submitted...

...but so far...not only do the not work...ALL of my regular tables disappear...they're gone.
Any ideas as to why this is happening?

Thanks,

mark4man

Baron Higbee

4:20 pm on Nov 5, 2007 (gmt 0)

10+ Year Member



Not sure why all of your tables are disappearing, but I can tell you that you are missing a double-quote at the beginning of the 1st param value of your DW created code.

Neko's code has a local src, which won't ever work unless you have the FLA in the same folder as your page. So you would need to change Neko's src to "http://www.somewebsite.com/yourfile.swf". Additionally, flash should be double-embedded the way DW spits it out in order to be compatible with all browsers.

Lastly, I'm not sure where you're putting the info in your MySpace profile, but I suggest you enclose it in a <DIV>. It will give you more control of the clip's placement on the page anyway :)

mark4man

5:46 pm on Nov 5, 2007 (gmt 0)

10+ Year Member



Not sure why all of your tables are disappearing, but I can tell you that you are missing a double-quote at the beginning of the 1st param value of your DW created code.

Specifically what (could have sworn I just copied that right out of the code window in DW.)

Neko's code has a local src, which won't ever work unless you have the FLA in the same folder as your page. So you would need to change Neko's src to "http://www.somewebsite.com/yourfile.swf".

Did that actually...forgot to place it in my post...thanks.

Lastly, I'm not sure where you're putting the info in your MySpace profile, but I suggest you enclose it in a <DIV>. It will give you more control of the clip's placement on the page anyway :)

That's the way they have the user do it...goes into the 'Bio' section, which is all table based. I'll gladly place it in a layer, if a layer can be placed into a table. In the past...when I used a .wmv...the myspace (Neko) code always worked. If the movie were too large in file size, the window would appear white for a moment while the file buffered...but it always popped up & played correctly.

Spinnin' my heels, here.

Thanks,

mark4man

Baron Higbee

6:28 pm on Nov 5, 2007 (gmt 0)

10+ Year Member



Here's the line that is a problem in your DW code:

<param name="movie" value=http://www.myserver.com/somefilename.swf">

Should be:

<param name="movie" value="http://www.myserver.com/somefilename.swf">

In regards to the <DIV>, this is not a requirement. What you're doing is just fine, it was merely a suggestion. Since you're putting this part in the BIO section... if you have any other CSS created for the page layout, make sure that your embedded clip comes first. I know that may seem bizarre, but that's how the BIO section works on MySpace; i.e.

<Random text>
<Embedded Clip>
<Random text>

<CSS>

Dunno why it works this way, but MySpace has trouble displaying anything placed after the CSS.

mark4man

9:19 pm on Nov 5, 2007 (gmt 0)

10+ Year Member



Should be:
<param name="movie" value="http://www.myserver.com/somefilename.swf">

I'll just bet that's the entire problem in a nut shell, right there...will implement as soon as I get home to the studio tonite. Thanks very much, Baron.

mark4man

BTW - Are you a real Baron? just kiddin'

Baron Higbee

12:57 am on Nov 6, 2007 (gmt 0)

10+ Year Member



My pleasure :D lol and sadly no...just a Baron of my own mind :P Keep me posted!

mark4man

2:09 am on Nov 6, 2007 (gmt 0)

10+ Year Member



Well, Baron...

That wasn't it.

1st, I used the Dreamweaver code...with your correction:

[these are the actual codes, now...no more random entries...I need to get this resolved...later, I'll send you to my page so you can see for yourself]:

<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="420" height="316">
<param name="movie" value="http://www.example.com/P1_MySpace.swf">
<param name="quality" value="high">
<embed src="http://www.example.com/P1_MySpace.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="420" height="316">
</embed>
</object>
</center>

MySpace rewote it as this:

<center>
<object enableJSURL="false" enableHREF="false" saveEmbedTags="true" allowScriptAccess="never" allownetworking="internal" type="application/x-shockwave-flash" allowScriptAccess="never" allownetworking="internal" height="316" width="420" data="http://www.example.com/P1_MySpace.swf">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="http://www.example.com/P1_MySpace.swf" />
</object>
</center>

but again...everything is gone...all the tables, my MySpace music player & my SnoCap store...the complete Bio...everything.

So I used Neko's code (again, w/ my actual embed link):

<center>
<embed src="http://www.example.com/P1_MySpace.swf" width="420" height="316">
</embed>
</center>

Nice & simple & straightforward, right?

MySpace turned that into this:

<center>
<object enableJSURL="false" enableHREF="false" saveEmbedTags="true" allowScriptAccess="never" allownetworking="internal" type="application/x-shockwave-flash" allowScriptAccess="never" allownetworking="internal" height="316" width="420" data="http://www.example.com/P1_MySpace.swf">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="http://www.example.com/P1_MySpace.swf" />
</object>
</center>

...but everything is still gone.

Man...this is sorta maddening.

Thanks,

mark4man

[edited by: jatar_k at 3:59 pm (utc) on Nov. 7, 2007]
[edit reason] examplified [/edit]

mark4man

2:32 am on Nov 6, 2007 (gmt 0)

10+ Year Member



UPDATE:

wait a minute...wait a minute...

In the time it took me to formulate the above reply (10 minutes, give-or-take)...I went back to myspace...

AND THERE IT WAS!

This could only mean one thing, Baron: in the time it takes for my PC, at my connection speed (Verizon DSL, downloading @ 2850 kbps) to BUFFER the movie...it blanks everything out...everything!

So...we're halfway there, now...now I need to figure out why THAT is happening (which shouldn't be happening.) Everything else should be there, up & in place...& the movie should drop into the slot when the buffering is complete, correct?

Thanks,

mark4man

Baron Higbee

4:02 am on Nov 6, 2007 (gmt 0)

10+ Year Member



Well I just checked the link and everything looked just fine :) I'm guessing the SWF you were trying to insert was the one that allows you to buy your music. No problems at all :)

As far as the buffering issue for your comp goes...hard to say...could have Ad bots, could be low on RAM, could be just your internet pipe being wonky. Mine's being a little punk tonight heh I will also say that MySpace certainly has its own issues from time to time.

Try rebooting your router and your computer ;) If that doesn't work I would call your ISP. Good luck!

mark4man

3:00 pm on Nov 6, 2007 (gmt 0)

10+ Year Member



I'm guessing the SWF you were trying to insert was the one that allows you to buy your music. No problems at all :)

No...it's just a transitional photo montage of the band. It appears in the Bio, which is below both the default myspace music player & my SnoCap store. It's a 420 X 315 px Flash movie that is placed just prior to the last info paragraph in the Bio.

I just checked it at work (Comcast Cable connection...7160 kbps download); & it took 4 minutes for anything to appear on the page.

Really not sure what's going on now.

Thanks,

mark4man