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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:26:02+00:00 2026-05-22T17:26:02+00:00

I just delved into Actionscript 3 and Flash and was wondering how you would

  • 0

I just delved into Actionscript 3 and Flash and was wondering how you would create a Toolbar for my app’s UI without coding in the Timeline since this is bad Object Oriented practice. For example, my toolbar has a Pointer Tool and a Draw tool. When I click the Pointer Tool button in the toolbar, I want it to be depressed. I understand you’ll probably have to create different keyframes for each “state of the button” but how would I control the state in code without using goToFrame or coding in the Timeline?

  • 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-05-22T17:26:03+00:00Added an answer on May 22, 2026 at 5:26 pm

    I see 2 potential classes here:

    1. Toolbar
    2. Tool

    With your individual classes extending Tool

    1. DrawTool
    2. PointerTool

    Your Toolbar class would create and manage the Tool objects. Tool would contain event listeners for clicks which is where you can change the state to depressed and so on. I’d probably have a property like _currentTool in Toolbar and call a setter for this property when you click a tool. Kinda like..

    public function set currentTool(tool:Tool):void
    {
        // deselect current tool
        _currentTool.gotoAndStop(1);
    
        // select new tool
        _currentTool = tool;
        tool.gotoAndStop(2);
    
        // other code
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm someone who writes code just for fun and haven't really delved into it
So I just delved into the Singleton classes and yes, I find them quite
I've just delved into a bit of NHibernate and I'm having trouble with one
I know this sounds a little ridiculous, but I'm just honestly wondering how I
just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview
Before I delve into it, I'm very new to Android and I have just
In order to gain more experience in Wordpress I delved into its code base
Quick one I hope - I'm just about to delve into a Delphi 5
just a simple link with parameters <a href=http://domainame.com/?bla=ble&bli=blo>hey!</a> would make the w3c validator jump
Just moved my app to a new CentOS server. After fiddling for a long

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.