Posts Tagged ‘Code Hinting’

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!