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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:42:08+00:00 2026-06-18T12:42:08+00:00

I am new to Flash Builder so this is an easy question for anybody

  • 0

I am new to Flash Builder so this is an easy question for anybody who has some experience with flash builder and actionscript 3.0.

So basically I have a folder with .as files. The directory of it is –

...\src\assets\Stadium\MyClass

Now I want to use it in my Flash Builder Project, but when I import like this –

import assets.Stadium.MyClass.PrefabProject;

There are warnings … look in the image below.
How can I possibly use the contents of the folder in my as3 code.
How can I use the folder as a package?

Click here for the image

EDIT: I went ahead and tried to use the stuff from the package in the code – This is the error I got –

A file found in a source-path must have the same package structure 'assets.Stadium.MyClass', as the definition's package, ''.   MyClass.as  /proj_away_alpha_new/src/assets/Stadium/MyClass Unknown Flex Problem
  • 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-18T12:42:09+00:00Added an answer on June 18, 2026 at 12:42 pm

    The error you have posted in your edit seems to imply that your package statement in MyClass is empty. The package statement should contain the same path that your class is in.

    Since MyClass.as resides at the path (relative to your project): assets/Stadium/MyClass

    The package statement (at the top of MyClass.as) should be the same:

    package assets.Stadium.MyClass

    I may have interpreted that error incorrectly. Just make sure that the package statement in MyClass.as is the same as the location of the class file on disk (relative to the project’s src directory).

    PS: The only time you use an empty package statement is when your class resides in that special “default package” (where your main app is).

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

Sidebar

Related Questions

I am new to Flash and AS3. I have a DataGrid like this Item
Sorry, I'm new to flash I have this line of code: BaseEntry( _entryList[i] ).topTeamName
Flash ActionScript myData = new LoadVars(); myData.onLoad = function() { myText_txt.text = this.myVariable; };
I'm using Flash Builder 4.7. When starting a new Actionscript Project, the first popup
Newbie question here: I'm working with Flash Builder 4.5 on an Actionscript project. I've
I'm very new to ANT and have started using it in a Flash Builder
I am new to flex, actionscript and flash builder (having to do an upgrade
I'm rather new to Flash Builder but I've read some articles on the web
I have this code as a change function on a DropDownList in Flash Builder:
Hi, i have been having some problems using JSON data in flash builder lately

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.