Search code examples
flashactionscript-3flash-cs4

Get Flash CS4 Intellisense to recognize Objects on stage?


When I create an object of a movieclip in code I get the flash intelesense to pop up in Flash CS4 Actions panel which is very helpful but if I simply place a moveclip on the stage then give it an object name in the options the Flash intelesense does not pop up in my code.

Anyway to get Flash intellisense to work with objects placed on the stage from the library?


Solution

  • For the "code assist" function to popup in the flash IDE Action Panel you have two options:

    • declare the variable of your object before make any reference to it, example:
    var clip:MovieClip;
    

    then the code assist should popup anytime you write "clip."

    • change you object instance name so it ends with "_mc". This would have the same result as the above but without declaring the variable.

    I rather prefere the first solution, where you declare all your variables prior to writing any code.