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 7995865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:33:03+00:00 2026-06-04T14:33:03+00:00

I am using AS3 to make a game. I use RequestURL( filename ) to

  • 0

I am using AS3 to make a game. I use RequestURL( filename ) to obtain the music I want to play. However, this means the music file has to be in the same folder as the .fla file. How can I use it to get a music file from a different folder? I don’t really like having to leave my music outside of a Music folder or properly organised somehow….

EDIT: Should have mentioned this earlier. I tried to use simply something such as “whatever/filename”, but I got this security error:

SecurityError: Error #2000: No active security context.

Why?

  • 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-06-04T14:33:04+00:00Added an answer on June 4, 2026 at 2:33 pm

    Have you tried using the flash.media.Sound.load() method yet?

    //Make a new sound object
    var s:Sound = new Sound();
    
    //Load it
    s.load(new URLRequest("someDifferentMusicFolder/loop.mp3"));
    
    //Play it
    s.play()
    

    If you are loading it via another method, such as URLLoader + URLRequest, please post your code and we should be able to help a little better.

    Generally speaking though URLRequests should allow you to specify different folders, so your problem may not be in the methodology you are using but may be in your implementation? Perhaps you are getting a security error? Whatever it may be, if you post your code we can help you narrow it down.

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

Sidebar

Related Questions

I am looking to make a card game in Flash CS4 using AS3 and
How can I make a USB controller control my AS3 game. I'm using the
I have this abstract factory pattern that I use in as3 that I am
I want to make collage, Example : http://www.as3.ro/p1_anim4.swf (1.4 mb); I want to bend
I've been learning about encapsulation in AS3 and using get/set functions to make variables
I am using Flex 4 and AS3 and I am trying to make it
I am using FLVPlayback Component in Flash AS3 to play an F4V video hosted
I'm using Flash Professional cs5/AS3 I'll try and describe this the best I can.
I am developing a game for the Android platform using flash cs5 and AS3.
I'm using AS3.0 and I'm trying to make a function that will generate a

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.