Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 616931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:22:48+00:00 2026-05-13T18:22:48+00:00

When loading a MP3 to a flash.media.Sound object the id3 property gives an error:

  • 0

When loading a MP3 to a flash.media.Sound object the id3 property gives an error:

SecurityError: Error #2000: No active security context.

Offcourse, like many errors in Flex, the Flex documentation doesn’t mention a thing about this, except that it exists…

The MP3 is valid (i’ve checked it with MediaPlayer and iTunes), the Sound object is in a good state (bytesTotal and bytesLoaded both reflect the correct amount of bytes).

Has anyone had this problem too? Any solutions or suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:22:49+00:00Added an answer on May 13, 2026 at 6:22 pm

    Your MP3 should be fine.

    If you want to access more data about your mp3 file, rather than just play, you will need a policy file that allows it. Similar to loading an image, if you just add it to the display it and don’t access the pixels, it’s all good, but if you want to access the pixels you should have permission(a crossdomain xml).

    For images, when you call the load image, you can pass a LoaderContext in which you explicitly say you want to check for a crossdomain.xml file and get access to the content.

    Similarly you should create a SoundLoaderContext with the second parameter set to true(to check) and use that in the sound load call.

    e.g.

    var snd:Sound = new Sound();
                var req:URLRequest = new URLRequest("yourSound.mp3");
                var context:SoundLoaderContext = new SoundLoaderContext(0, true);
    
                snd.load(req, context);
                snd.play();   
    

    For ID3 data you should listen for the ID3 event:

    sound.addEventListener(Event.ID3, onID3);
    
    function onID3(event:Event) {
        for(var i in sound.id3)
            trace('prop: ' + i + ' value: '  + sound.id3[i]);
    }
    

    For more info, you might find the mp3infoutil library handy.

    HTH,
    George

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm loading several sound files, and want to error check each load. however, instead
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
I'm loading a SQL Server 2000 database into my new SQL Server 2005 instance
In Flash 10/AS3, I added some sound and it seems to be working alright,
I use media player control to play mp3 files in asp.net application. I want
I'm trying to build a streaming .mp3 player to run various sound files on
When loading my page in Google Chrome, I get a vague error in the
In action script i need Loading configuration file /opt/flex/frameworks/flex-config.xml t3.mxml(10): Error: unsupported sampling rate
hey well I have the following code loading an swf <object style=visibility: visible; id=myContent
I have a php-script (it fetches mp3-files from MySQL database) and flash-player for listening.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.