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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:34:43+00:00 2026-06-10T01:34:43+00:00

I started reading this tutorial: http://active.tutsplus.com/tutorials/actionscript/creating-a-reusable-flash-uploader-with-actionscript-3-0-and-php/ I’m using FlashDevelop, and I pasted the full

  • 0

I started reading this tutorial: http://active.tutsplus.com/tutorials/actionscript/creating-a-reusable-flash-uploader-with-actionscript-3-0-and-php/

I’m using FlashDevelop, and I pasted the full code into an ActionScript file. The errors I’m receiving are like this:

C:\Users\tempus\Documents\uploaderas\Uploader.as(30): col: 4 Error: Access of undefined property select_btn.
select_btn.addEventListener( MouseEvent.CLICK, browse );
^
C:\Users\tempus\Documents\uploaderas\Uploader.as(31): col: 4 Error: Access of undefined property progress_mc.
progress_mc.bar.scaleX = 0;

...

I understand that the errors appear because the objects have not been declared ( and they appear to be instantiated from somewhere ), but I don’t understand how/what should I include to declare them. Could you point me towards a solution?

  • 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-10T01:34:44+00:00Added an answer on June 10, 2026 at 1:34 am

    It’s because the buttons are created in the Flash IDE (as the tutorial was meant to be compiled using the Flash IDE). Since the buttons don’t exist in the code aspect you get that error.

    You can either create the elements yourself via code, or use the Flash IDE and export a swc/swf of the neccessary UI elements and include that in your flashDevelop project. I’m assuming you’ll want to do the latter –

    in the Flash IDE, open the .fla, open the library panel, find the progress asset, right click it and bring up the properties. Check the “Export For ActionScript” option, then in the ‘Class’ field give it a unique name like “SelectBtn”. Do the same for the ‘progress’ asset (only a different class name like ‘ProgressBar’). Go to the flash publish settings, and on the flash tab select ‘export swc’. publish the file and place the published swc in your flash Develop project folder (traditionally the lib folder of your project).

    In Flash Develop, right click your swc and choose ‘Add To Library’. (You may need to right-click again and go to options and choose the include completely option). Now you can access those classes you setup in Flash. Then in your code, declare and initialize the display assets:

    public var select_btn:SelectBtn = new SelectBtn();
    public var progress_mc:ProgressBar = new ProgressBar();
    

    You’ll also need to do that textField too. It would be easiest just to do it in your code though.

    public var label_txt:TextField = new TextField();
    

    Keep in mind you’ll need to manually position and use addChild on all three elements this way. If you want to keep the positioning that’s in flash, just select all the elements on the stage and press F8 to convert them to a MovieClip. Then in the library setup linkage the same as the others and give it a class name of something like “DisplayAssets” and export a new swc. Then your code would look like this:

    public var select_btn:Sprite;
    public var progress_mc:Sprite;
    
    public function Uploader(){
        var displayAssets:DisplayAssets = new DisplayAssets();
        addChild(displayAssets);
    
        select_btn = displayAssets.select_btn;
        progress_mc = displayAssets.progress_mc;
    
        //the rest of the code
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading this tutorial : http://sleekd.com/general/adding-multiple-images-to-a-rails-model-with-paperclip/ because i need Save the product images
I was reading the http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery . And got confused with use of this in
Am just started reading view tutorial i used this link view tutorial in this
I'm reading this nice tutorial about Node.js web servers: http://nodebeginner.org/ In this part of
On this article: http://java.sun.com/developer/technicalArticles/tools/JavaSpaces/ is a tutorial how to run JavaSpaces client. I wrote
Getting interested in learning ATL, I started reading this tutorial and I got confused
I'm getting started in Python programming. I'm reading a basic tutorial, but this point
I'm reading a Backbone tutorial http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting-started/ on building a wine cellar application. The author
Forgive if this question is silly. I just started reading the SugarCRM developer documentation
When I first started reading about Python, all of the tutorials have you use

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.