Welcome Developers!

in

Welcome!

in

New Feature Explained: Running Flash on MySpace Domain

On 06.06.08, we launched a new feature for Flash developers: Allowing script access. A lot of questions have arisen about this lightly documented feature.

In a nutshell, we are now hosting your flash files on the MySpace server. This changes our security model, allowing you script access! Here’s a snapshot of what you should see when you upload a flash file:

 



As you can see, there is now a cached version of your SWF, as well as a place to edit the Flash Markup. Instead of using FlashVars, you can now get an OpenSocial token and the rest of the OS goodness.

Okay devs, start updating that code!

 

  

Comments

 

Brock said:

You need a better screen shot, I can't see much in there.

Is this only for new apps? I just updated the source for one of my apps and I don't see anything new.

June 17, 2008 4:18 PM
 

Behind Blue Eyes said:

He mentioned it was added on the 6th. I think it was a stealth add cause I don't recall hearing about it but there's a new spot to upload flash files. It kinda just slipped in there though and I think people just assumed it was always there heh.

June 17, 2008 5:17 PM
 

Dave said:

I just tried it - I switched to the html app type, and I uploaded a flash file, but I didn't see the "swf url", or the Sample Flash Markup window.  Please can we have a larger screenshot to see what it should look like?

and thank you so much for this!!  It's a great change!! :)

June 17, 2008 6:53 PM
 

Eddie said:

Got the screen via a new test app and there is a link to a bigger pic in this thread where I am now stuck...

<a href="developer.myspace.com/.../12248.aspx

Eddie

June 18, 2008 2:50 AM
 

Genius said:

Keep Up The Good Work!

June 18, 2008 6:27 AM
 

Dave said:

I just posted in the thread Eddie linked to asking for SWFObject.js support to dynamically create the swf object.  It just requires a copy of SWFObject.js being placed on myspace's server and it being approved for use on the home+profile+canvas page.  Then also if you could please explain how to get the token in javascript we can dynamically create an SWFObject and pass the regular opensocial tokens and our current flash swf files will magically work without changing a line of actionscript code.  Then we can work on making changes to actually take advantage of the ExternalInterface access.  But before we make the changes to use ExternalInterface we would still immediately benefit from the new model - by running in an iframe it solves a bunch of styling issues (a hidden myspace music player hides swf objects using the old flash technique).

Thanks again for this! :)

June 18, 2008 10:56 AM
 

beriberikix said:

@Brock, Dave

My flash files get cached whether the app is new or old. Silly question, but did you forget to save?

June 18, 2008 11:29 AM
 

Brock said:

No, I just didn't realize that it was couched in the HTML/Javascript section. Was expecting to see it in the Inline Flash form. I'll give it a try now that I know where to find it.

June 18, 2008 1:08 PM
 

andy said:

I've been programming for about 10 years give or take, and this is the single worst explanation of how to do things I've ever seen.  A little screenshot that you can barely read with no other explanation?  This is so poorly implemented it's almost funny.   It would be hilarious if I wasn't  trying to get my app back up and running.

June 18, 2008 1:48 PM
 

Dave said:

@jonathan it works fine now. Before, when I tried it, I did save, but it did not show the swf url, or extra sample swf codes.  When I tried it this morning it worked fine though.  Maybe it was a page caching problem, who knows. But it works great now.  Thanks.

June 18, 2008 1:56 PM
 

Brock said:

Just went through the basics to get my app to load using HTML/Javascript and the Flash uplaod. Got the app loading but looks like you rewrite the embed tags and change the width to 100%. That seems to be rendering it to the old 800px width instead of the new 960px width (at least the app looks like they all did after you made the size switch).

June 18, 2008 2:51 PM
 

Brock said:

Nevermind, looks like it was just taking a while for the Canvas view of the app to update. Getting an <iframe> version now.

June 18, 2008 3:41 PM
 

Trevor Jordet said:

heres a suggestion:

pass the visitor id and profile id to the swf automatically.(facebook does it)

fb_sig_profile

fb_sig_user

if you do that  it will resolve a vast majority of challenges that flash developers face trying to pass variables to the swf.

you may already do it, but I cannot find any documentation on it.

June 20, 2008 12:42 AM
 

Eddie said:

when trying to use this using code <href="developer.myspace.com/.../15517.aspx it worked in Firefox but threw a Security error in Internet Explorer.

Am I doing something wrong?

Is it working for anyone?

Eddie

July 31, 2008 5:42 AM
 

Shawn C - Yeah You Don't know me! said:

Ok, I have a wmv file Windows Media Video, and I would like to post it on My Myspace Page, how do I go about doing this?  Please Help me on this matter - Thanks for your time and I sure hope you all had a GREAT WEEKEND! - Shawn Cogar

myspace.com/skipslittlespot

March 28, 2009 2:54 PM