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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:54:05+00:00 2026-05-14T16:54:05+00:00

Whenever I start a new game, I make a whole bunch of classes that

  • 0

Whenever I start a new game, I make a whole bunch of classes that extend my base classes, so:

com.blah.Game extends com.iainlobb.Game and has some setup code
com.blah.Player extends com.iainlobb.Player, and has some setup code
etc

Now all I need is a way to generate these classes at the start of the project so I don’t have to create each one manually. It will save me at least an hour of faffing around per game. So how do I do it? I normally use FlashDevelop but I also have FlexBuilder 3, or I’m happy to download whatever other software I need (PC). Thanks.

  • 1 1 Answer
  • 1 View
  • 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-14T16:54:05+00:00Added an answer on May 14, 2026 at 4:54 pm

    If you’re using FlashDevelop you can create your own project template based off of one of the defaults. The templates are in:

    Your FlashDevelop Install dir\Projects\
    

    A typical template file looks like this, and it shouldn’t be very hard to change them up to extend your basic framework instead. You can add multiple files to a project template.
    Not super sure about adding the import though, that might have to be a manual step, unless you feel comfortable adding a copy of it to each project.

    package $(PackageName)$(CSLB){
        import flash.display.Sprite;
        import flash.events.Event;
    
        /**
        $(CBI)* ...
        $(CBI)* @author $(DefaultUser)
        $(CBI)*/
        public class Main extends Sprite $(CSLB){
    
            public function Main():void $(CSLB){
                if (stage) init();
                else addEventListener(Event.ADDED_TO_STAGE, init);
            }
    
            private function init(e:Event = null):void $(CSLB){
                removeEventListener(Event.ADDED_TO_STAGE, init);
                // entry point
            }
    
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a gemset the default whenever I start a new terminal
Whenever I start a new project, I have to go through setting up the
I am relatively new to Vim. Whenever I start Vim using vim LearnRuby.rb ,
I used ShellExecuteEx to call iexplore.exe , Whenever I start the application a new
Whenever I start a new software project I spend a good amount of time
Whenever I start learning a new technology or language I tend to look at
I am trying to make a game that implements high scores into a .txt
My Flash Builder 4.5 code formatting behaves strangely. Whenever I start the new line
Whenever I start a new project in Flex builder I always have to go
I'm trying to make a game with bunch of sound effects added. A lot

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.