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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:45:23+00:00 2026-06-05T19:45:23+00:00

I wrote a nice little game which works well in its .fla form. Because

  • 0

I wrote a nice little game which works well in its .fla form. Because I wanted to include some menus with options, saves, etc, I followed the advice from http://www.actionscript.org/resources/articles/965/3/Better-Flash-Navigation-using-AS3-Classes/Page3.html I managed to get navigation from the menus right, but I really don’t know what to do with the contents of my fla.
Ideally, I think that it should sit in a class on its own (called Game.as) which if you looked at the link above would be linked from the Main.as (which is the linked class [that navigates the menus] from the main .fla file which holds all the assets). Am I right to think that the constructor class in Game.as would be very similar to an init() function in my .fla file ? In which case, the rest of the code for the game would be separate functions (called methods for classes, right?) stored outside the constructor. Or am I completely wrong and the game should not be in class on its own but instead sitting inside the Main.as because this very class is linked to the original .fla where all the assets are? All I need is a little nudge in the right direction because I can’t find this info in any of my books and I don’t know how to phrase it for google. Thanks in advance. Nik

  • 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-05T19:45:26+00:00Added an answer on June 5, 2026 at 7:45 pm

    You need to Export all the MovieClips and assets you want to access from classes in your FLA file. Open the properties of your MC or Bitmap and mark the export and write the package name into it.

    http://www.flashandmath.com/howtos/as3link/

    To the rest:

    Every object is another class. This is object oriented programming. Your Menu is a class, your menu items are different classes. Your game is a class, your game items are different classes and so on.

    With this you can create a class hierarchy and can “load” items you need at the specific situation.

    http://www.adobe.com/devnet/actionscript/articles/oop_as3.html

    Am I right to think that the constructor class in Game.as would be
    very similar to an init() function in my .fla file ? In which case,
    the rest of the code for the game would be separate functions (called
    methods for classes, right?) stored outside the constructor.

    Yeah, you’re right.

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

Sidebar

Related Questions

I wrote a nice little program. At some point, it is required to load
I have wrote this little script which generates a nice random password. The problem
I wrote a nice little script to do some lightweight work. I set it
I wrote a nice little array class in C++ that uses void* to save
I've coded a little game, but now I realized that I should include all
I wrote a nice little app that gets Yahoo weather info and posts it
I wrote some script in a site. The script makes a new spreadsheet and
Well, the caption of the question might be a little off, but I didn't
It's often the case that I can write a nice tight little VB.NET function,
I have a little sample application I was working on trying to get some

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.