Thursday, 22 August 2013

Any ideas how to get text from flash object with jQuery?

Any ideas how to get text from flash object with jQuery?

I am trying to get Artist and Song from http://musicovery.com/ . The whole
thing is flash app, and I managed to get source with IE(couldn't access it
via firefox, chrome, ctrl+u disabled on this page).
So I need an idea how to approach this. Is it even possible? First I tried
to access object parameter values. This is the flash object I am talking
about:
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="musicovery" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie"
value="musicovery.swf&ctprec=si&idsong=&codeartist=&ccartist=&mood=&energy=&tempo=&dance=&type=&tag=&offre=&code=&link=&userid="
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#f0f0f0" />
<param name="wmode" value="opaque" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<param name="flashvars"
value="&ctprec=si&idsong=&codeartist=&ccartist=&mood=&energy=&tempo=&dance=&type=&tag=&offre=&code=&link=&userid="
/>-->
<embed src="musicovery.swf" quality="high" bgcolor="#f0f0f0"
width="100%" height="50%" name="musicovery" align="middle"
wmode="opaque"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
I tried to use this:
alert($('object#musicovery').find('param[name="movie"]').val());
It says it's undefined, so I can't even access this.
I need some tips :)
Thanks!

No comments:

Post a Comment