Welcome Developers!

in

Welcome!

in

gadgets.flash.embedFlash

Last post 11-05-2008 3:20 PM by Jeremiah. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-29-2008 10:38 AM

    gadgets.flash.embedFlash

    This doesn't seem to work on MySpace. Does anyone know of a way to use JavaScript to embed Flash on a canvas page? I'm passing certain vars from the profile widget to the canvas that need to be dynamically sent to Flash as FlashVars on load.
    Filed under:
  • 10-30-2008 3:42 AM In reply to

    Re: gadgets.flash.embedFlash

    All the useful posts on these forums (especially this Flash forum) seem to be disappearing which is quite annoying as this is the main area of the mdp where Flash is really mentioned or documented - some posts may have been useful to you.

    Rhonda - if you ever read this section can we get the old posts back and switch off archiving of this section as repeating complicated and confusing bits and pieces where a variety have chipped in to help / explain takes forever.

    J - Can you explain how far you've got doing what with your Flash swf so far - do you use tokens and REST or all opensocial bits if you know what I mean.

    I've embeded calls my Flash apps as HTML/JavaScript (where myspace puts it in an iframe) and use ExternalInterface calls to get the os token / surface then use to call REST via an XML.load to get myspace info etc

    It is a little/lot  complicated and not an obvious workflow so would be easier to go outside these forums  so msg me and include an external email address if you want further help.

    I've not yet worked out to pass vars across surfaces so would be interested on how this is done.

    Eddie

     

  • 10-30-2008 9:23 AM In reply to

    Re: gadgets.flash.embedFlash

    Passing the vars is pretty straightforward.

    From the profile widget, I call this function:

    function gotoCanvas() {
    	var params = {};
    	params['varToPass'] = o.getId();
    	var canvas_view = new gadgets.views.View("canvas");
    	gadgets.views.requestNavigateTo(canvas_view, params);
    }
    

    Then on the canvas, I retrieve the vars with:

    var p = opensocial.getEnvironment().getParams();
    // p['varToPass']
    

    What I'm trying to do is pass vars from the profile to the canvas (achieved above) and then write them as FlashVars to the Flash embed. I will use JavaScript to write the object/embed code onto the page after I grab the vars passed. gadgets.flash.embedFlash is the official OpenSocial way to do this, but it doesn't seem to be working on MySpace. I could do an innerHTML or DOM method, but I wanted to confirm embedFlash really is not working and I'm not just doing it wrong.

  • 11-05-2008 3:20 PM In reply to

    Re: gadgets.flash.embedFlash

    Official word from @MySpaceDevTeam (yes, via Twitter): "sorry no, and we don't have any plans for it at this time."

    Thank you MySpace for once again splintering OpenSocial...
Page 1 of 1 (4 items)