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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:06:36+00:00 2026-05-28T01:06:36+00:00

I writing a game in AS3 using flash. The game works, and I’m trying

  • 0

I writing a game in AS3 using flash. The game works, and I’m trying to add music to the game.

I added a mp3 file called Music (linkage Music.mp3)
and I added in the board (which is the whole game ) the following lines

import flash.media.SoundChannel;
public var music:Music;
public var bgmSoundChannel:SoundChannel;

I’m getting error

Type was not found or was not a compile time constant:Music

I had some problems before while trying to use more then one class its seems the my classes doesn’t see other classes defined in my fla.

I will be happy to find a solution, and if you know a good explanation about as3 architecture I will be happy to get a link for that as well

  • 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-28T01:06:37+00:00Added an answer on May 28, 2026 at 1:06 am

    The error is because Music is not found as a compile-time class. This is most likely because you have not correctly set its class in the linkage box.

    You say its linkage is Music.mp3. This must be Music in order for your code to work.

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

Sidebar

Related Questions

I'm writing a game with LibGDX, and I'm trying to save an XML file,
I'm writing a game which uses a border layout with a JPanel using BorderLayout.CENTER.
I'm writing a game for iPhone, and I want an online leaderboard using mySQL,
I'm writing a game in cocos2dx, and i'm trying to refactor a method thats
I'm writing a game using android ndk. I'm using picking to select objects in
I'm writing a game in C++, and I'm trying to get it to recognize
I am writing a game for the iPhone/iPodTouch (using Cocos2d) and I have noticed
I'm writing a game with Flash CS5/AS 3.0 that tries to simulate depth of
While writing a game for J2ME we ran into an issue using java.lang.Integer.parseInt() We
I'm writing a game in html5 and using wordpress for the rest of the

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.