MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Using Flash and Javascript together.

Last post 05-11-2009 6:41 PM by rondata. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 05-06-2009 8:43 AM

    • Dave
    • Not Ranked
    • Joined on 04-13-2009
    • Posts 4

    Using Flash and Javascript together.

    I am having some issues making javascript calls from flash using getURL("BLOCKED SCRIPTjsFunction();","_self");

     When clicking the button it doesnt do any JS if the flash is inside my myspace app. If its on my own server or local it accesses the js function just fine. Any suggestions? I even tried uploading the swf and using that to see if it was some kinda of access issue but that didn't help either.

     If anyone has any suggestions on what im missing please help me out.

  • 05-06-2009 9:23 AM In reply to

    • Dave
    • Not Ranked
    • Joined on 04-13-2009
    • Posts 4

    Re: Using Flash and Javascript together.

    Here is my Ob/Eb Flash code.

    <div id="flashDiv" style="position: absolute; left:0px; top:0px; z-index: 3">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="290" height="450" title="navigation" ID=Hotties>
       <param name="wmode" value="transparent">  
       <param name="movie" value="http://cache01-widget01.myspacecdn.com/1/l_03e0923f258b64136920680bda9300c8.swf" />
       <param name="quality" value="high" />
          <param name="allownetworking" value="internal" />
          <param name="allowScriptAccess" value="always" />
          <param name="enableJSURL" value="true" />
          <param name="enableHREF" value="true" />
       <embed wmode="transparent" src="http://cache01-widget01.myspacecdn.com/1/l_03e0923f258b64136920680bda9300c8.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="290" height="450" name="Hotties" swLiveConnect="true"></embed>
     </object>
    </div>

     Here is my getURL code.

    on (release) {
     getURL("javascr!pt:pass();","_self"); // Doesnt have the ! in the real code.
    }

     My JS doesnt even get actived so no need to post that.

     

    Thanks in advance. I'm sure im just missing something, just not sure what. I was looking with Firebug to see if they replaced anything in my ob code and it looked fine. So im pretty lost on whats going on.

  • 05-06-2009 10:06 PM In reply to

    • Dave
    • Not Ranked
    • Joined on 04-13-2009
    • Posts 4

    Re: Using Flash and Javascript together.

    Hey is this forum alive at all?

  • 05-09-2009 3:54 AM In reply to

    Re: Using Flash and Javascript together.

    lol, i was wondering the same thing, i dont get much help  on here lol, i might try to develop on facebook, but i think i have to learn php, and i dont feel like learning another programming language lol

  • 05-11-2009 8:20 AM In reply to

    • Dave
    • Not Ranked
    • Joined on 04-13-2009
    • Posts 4

    Re: Using Flash and Javascript together.

    I never seem to have any issues developing FaceBook apps, but always have random little issues that stop development of MySpace ones. It doesn't help that there is absolutly no help from the "Developer Forums". Very strange.

  • 05-11-2009 6:12 PM In reply to

    Re: Using Flash and Javascript together.

    it always takes me 3 or more days to get an answer on here, and its always from the forum moderator, who doesnt seem to know anything about this stuff, so she always give an answer like "look at the documentation" or something like that

  • 05-11-2009 6:41 PM In reply to

    Re: Using Flash and Javascript together.

    Our docs should cover it, we're working on making an SDK, but that's not going to happen right away.

     http://wiki.developer.myspace.com/index.php?title=Create_a_MySpace_Application_Using_Flash_and_ActionScript_3

    Rhonda

     

Page 1 of 1 (7 items)