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

  • Home
  • SEARCH
  • 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 8286835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:53:01+00:00 2026-06-08T11:53:01+00:00

At work I’ve been asked to make a small web based mini-game prototype. I

  • 0

At work I’ve been asked to make a small web based mini-game prototype.

I went down the flash route and am using Flash Develop with Flex SDK.

I’ve also found a graphical framework and I can use that no problem, but I’m trying to make my own code reusable at a later date.

I have written a small class for loading a list of textures, from names supplied to the class before loading. It is here to keep the question concise.

To be honest when it comes to Flash/ActionScript, I have no idea what I’m doing, I only started using it a week ago.

What I want to know is whether my attempt is acceptable from a more experienced AS programmer’s point of view. Is it really bad flash coding practice? Does flash handle garbage collection? Should I be keeping an eye on the new Loader() calls that I just disregard?

  • 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-08T11:53:04+00:00Added an answer on June 8, 2026 at 11:53 am

    First of all make loader as field of your class and reuse it. Then add error listener:

    addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    

    Also you should check input data:

    public function addImage(fname:String):void {
        if(fname && fname != "") array.push(fname);     
    }
    

    When all images were loaded you should “reset” you loader:

    array = [];
    

    And it would be better if you will check the state of your loader to prevent unpredictable cases:

    public function beginLoad():void {
       if(state == ALREADY_LOADING) return;
       count = 0;
       loadImages(count);
    }
    

    ps immutable fields such as loader, map, array mark const. It’s not mistake but other developers will know that these fields are immutable.

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

Sidebar

Related Questions

Work on this small test application to learn threading/locking. I have the following code,
work on asp.net vs05.i want to set mouse event on gridview Then based on
Work on ASP.NET 2.0 C# on the web. In my site, I have three
At work it is requested that I make a program that can broadcast a
I work in a group where we produce many small apps, and use ANT
At work we are being asked to create XML files to pass data to
At work we've been hacking away at a stored procedure and we noticed something.
I work on a web application in which the dev environment loads about 500
Work on C# Desktop project,I have an account on paypal ,From my desktop application
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript

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.