Posts Tagged ‘AS3’

Flash CS4: Library Item Code Hinting

Tuesday, February 10th, 2009

I seem to always have problems getting the code hinting to appear while developing in the Flash IDE. Until today I miss typed a parenthesis and wham-o now it works.

Example:
I have a Movie Clip in the Library where the “Export for ActionScript” box is checked and the class is called SomeAwesomeClass.

Before, I would reference this clip like this:

var clip:MovieClip = MovieClip(new SomeAwesomeClass());

var clip:MovieClip = MovieClip(new SomeAwesomeClass());

or

var clip:MovieClip = MovieClip(new SomeAwesomeClass());

var clip:MovieClip = MovieClip(new SomeAwesomeClass());

and would never get any sort of code hinting.

Now, I call it like this:

var clip:MovieClip = MovieClip(new (SomeAwesomeClass));

var clip:MovieClip = MovieClip(new (SomeAwesomeClass));

and who’s your uncle, goldenromDOTcom, it works!

Not really sure why it works this way, but it does, Happy coding!

Went to the "From the Ground Up Tour" with Colin Moock

Wednesday, December 5th, 2007

I attended in Chicago and had a really freakin’ good time, learning a bunch about AS 3.0. On a good note it was very class heavy which is something I have been wanting to learn. Now a few days later I’ve been working with the Public Beta of Flex 3, teaching myself how to use classes. Hopefully I will have some examples to post, soon.