Jump to content
  • Advertisement
  • entries
  • comments
  • views

What I need!

Sign in to follow this  


What I really want is a Flash reference that documents everything, including all of the quirks.

For a while I'd been using Colin Moock's ActionScript reference, and that was quite nice. I wanted to get something that covered ActionScript 2.0, so I just got the new Macromedia Press ActionScript 2.0 Dictionary (which has the best price/page ratio I've seen in a while at $17.50 for 1080 pages, but I digress). Neither book, however, did a very good job of covering some of the little sneaky bits here and there that JUST DON'T WORK RIGHT!!!

For example, suppose you want to see if a key's pressed. Flash has a nice little callback already set up, so you simply do the following:

onKeyDown = function()
if (Key.isDown(Key.SPACE)) trace('you just pressed the space bar');

Simple, eh? Now, suppose you want to check for a tab key. The Key object has a TAB defined, so you think you could just check for Key.TAB. Right?


All of 'em work except for Key.TAB. Checking out Google and the newsgroups, it appears that Key.TAB doesn't work because Flash's component model has reserved it for tabbing through Flash components. If you press the tab key, It'll automatically highlight the next button on the screen, and that tab gets absorbed. Far as I can tell, there's no way to shut off tabbing through components, so there's no way to check for a tab-press if you've got components on the screen.

O'Reilly used to have a great series of books called 'Annoyances', like Windows 98 Annoyances, that documented all of the little bits of a system that didn't work quite the way you think they should. At best the books documented how to get around the annoyance, and at worst they confirmed that you weren't going crazy and that something that should be blindingly obvious (like above) indeed doesn't work like you think it should.

I need Flash Annoyances, and I need it soon :)
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!