
www.myspace.com/ridetherockett is a development myspace profile I created for my work on Rockett Clothing’s Myspace Profile. As most people know, I am a general disliker of the whole Myspace thing, when I say general I mean if you come to my house and use my wifi to surf the net on your spiffy ibook, you’ll find myspace is blocked all together…
But who says I can’t make profiles?
Drink coffee…
24 Comments
Don’t lie… we’ve all seen your profile. hahaha
Well Chris, Cloe actually runs the myspace.
However, I think Joel secretly endorses it.
This makes it twice the sin.
Got this email from a person in need & get asked this question pretty often, so I thought I would post it.
We presume we have a player.swf file located in the same directory as the HTML page it’s embedded in. Note that javascript interaction does NOT work with an embed code; you’ll need to use the SWFObject method for that.
Of these parameters, the most important one is the src. This contains the location of the SWF file to include, here player.swf. If the SWF file resides in another directory, we can point to it with a relative path (eg. ../flash/player.swf or an absolute path (eg. http://www.myserver.com/flash/player.swf).
The width and height parameters comply with the width and height of the SWF in pixels, but they can also be entered as a percentage of the SWF container (eg: width=”100%”).
Hey Joel, i have that part down, now the only issue i have is the java SWFObject deal, myspace blocks all js scripts and for the JW player this is needed or it won’t show up at all. I’m embedding this player with my custom playlist into my personal myspace page.
So i put in the swf embed code, now what do i do for the js file thats needed but is blocked on myspace?
Thanks
sorry brew, here is how you handle that…
A very good, freely available javascript to use for this embed proces, is the SWFObject script by Geoff Stearns. To use it, first upload the swfobject.js to your server and include it in the
section of your website:Second, give the HTML element in which the SWF should be placed a unique id:
Third, instantiate an SWFObject below the named HTML element and put all parameters in there.
The SWFObject instance will create the code needed to embed the player.swf. It sets it’s dimensions to 300 by 250 pixels and also sends the flashvars for the file and autostart variables.
Remember to check your URLs and make sure you are using full paths to your files, eg. http://www.yoursite.com/player.swf, this has to be done I have noticed for the player to function in myspace…
*sigh* can’t seem to get it man. I did the coding and myspace turned it into this:
..
var so = new SWFObject(’http://jmdecals.com/player/player.swf’,'mpl’,'300′,’250′,’9′);
so.addParam(’allowfullscreen’,'true’);
so. addParam(’flashvars’,'file=http://jmdecals.com/player/playlist.xml&autostart=true’);
so.write(’flashbanner’);
..
The JW Player is going to be on my myspace but the files are hosted on my web server, seems you had the rocket clothing one working but for some reason i can’t get it to work on mine.
Im not sure where you need me to insert the
since i can’t on the myspace page cause of it getting blocked but it is on my web server
hmm
stand by, i will get this for you…
oky doky, lets try object, here is my myspace code from rockett’s profile…
delete all the other stuff and try this object code, are you pasting into your “I’d Like to Meet” section? And you have all the files correct?
Joel, that works perfect man! Seems that instead of using the so.variable coding the param name takes it’s place. I’m not 100% sure how this code works without including the js file but it works!
Thanks so much Joel!
you are most welcome, the flashvars load it from the remote server I think, I am glad it worked! sometime, paste the profile ur making, will check it out!
Hey,
I’ve been following the steps and i’ve got to the point where my image rotator is on my myspace. But for some reason my SWF file, doesn’t seem to work!
But it works as a normal java script.
Any help would be awesome!
Thanks!
Jim
hi there jim,
where is your SWF hosted? also, what do you mean when you say “But it works as a normal java script.”
The SWF file is hosted on my site. i mean when i view the imagerotator.html file. My files can be viewed easily
thanks for the reply btw!
Jim
did you look at the code pasted just a few comments above here? copy and replace with your server info. Also, make sure to leave the “www” part of the URL in, it doesn’t seem to always work just with “http://URL”.
If its not working, what are you seeing?
what is the server info sorry i’m abit of a noob! haha
no its ok, when i say server info, i mean the URLs to your XML & SWF files on your server. What happens when you take my code and replace it with yours, of course taking care to insert your details?
yea i did all that,
Take a look yourself heres the link to my myspace
http://www.myspace.com/holynightclothing
and this is my code i used:
object type=”application/x-shockwave-flash” allowScriptAccess=”never”
allowNetworking=”internal” height=”430″ width=”738″ border=”0″ data=”http://www.holynightclothing.com/imagerotator/imagerotator.swf”>
</object
can’t seem to place the code down
from what you pasted it doesn’t look like you specified the XML file with its parameters. Did you try that?
sorry noob question again, what do you mean by parameters?
the part that looks like this..
Yea i did that already, it just didn’t show up when i posted my version
how do i show you the code i can’t seem to post it! argh
Incoming Links
Leave a Comment
feel free to use code tags or html tags.