Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You could try to catch the error in the id3Handler , in case the id3 tags are not defined </p> <pre> function id3Handler(evt:Event):void { try{ songInfo.text = /*song.id3.artist + ": " +*/ song.id3.songName; }catch(e:Error) { trace(e ); //or... songInfo.text = "No name" } } </pre> <p>although , you may well have a security issue , id3 info would be returned in such case. do you use a crossdomain policy file?</p> <p>Extract from the Sound class docs:</p> <pre> Certain operations dealing with sound are restricted. The data in a loaded sound cannot be accessed by a file in a different domain unless you implement a cross-domain policy file. Sound-related APIs that fall under this restriction are Sound.id3 , SoundMixer.computeSpectrum(), SoundMixer.bufferTime, and the SoundTransform class. </pre> <p>Edit:</p> <p>Here's a very permissive policy file, copy it , save it to a file and name the file</p> <pre> crossdomain.xml </pre> <p>then upload it to the root folder of your site, for instance for example.com</p> <pre> http://example.com/crossdomain.xml </pre> <pre><code> &lt;?xml version="1.0"?&gt; &lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt; &lt;cross-domain-policy&gt; &lt;site-control permitted-cross-domain-policies="all"/&gt; &lt;allow- access-from domain="*" secure="false"/&gt; &lt;allow-http-request-headers-from domain="*" headers="*" secure="false"/&gt; &lt;/cross-domain-policy&gt; </code></pre> <p>If this works, read this article</p> <p><a href="http://kb2.adobe.com/cps/142/tn_14213.html" rel="nofollow noreferrer">http://kb2.adobe.com/cps/142/tn_14213.html</a></p> <p>and see how you can secure your site with the crossdomain policy file</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload