ActionScript Code Hints

June 18, 2007

Within the Flash IDE and more specifically, when coding using the Actions panel, there are three methods you can use to access code hints; they allow us to view a drop-down menu of the current objects’ methods and properties. If you are a beginner it will help you remember all your options, if you are at the intermediate level it will help you improve your productivity & speed and the same can be said for advanced users.

Instance Name Suffix

Availability: Flash 5 & ActionScript 1.0

To activate, simply add the suffix at the end of the instance name of your object. For example, the suffix for the MovieClip class is _mc. There are over 20 suffixes supported, they are: LiveDocs

missing: wp-content/images/p39/name_suffix.gif

  • Array _array
  • Button _btn
  • Camera _cam
  • Date _date
  • LoadVars _lv
  • LoadConnection _lc
  • MovieClip _mc
  • MovieClipLoader _mcl
  • NetConnection _nc
  • NetStream _ns
  • Pring Job _pj
  • SharedObject _so
  • Sound _snd
  • String _str
  • TextField _txt
  • TextFormat _fmt
  • Video _video
  • XML _xml

 

Comments

Availability: ActionScript 1.0

To activate, specify the object type and the instance name of your object inside a comment; the comment must end with a semi-colon and cannot container other copy. Additionally, the method only works within the same Actions panel and cannot be defined in a separate layer.

missing: wp-content/images/p39/comments.gifmissing: wp-content/images/p39/comments2.gif
 

Strict Data Typing

Availability: ActionScript 2.0

To activate, simply declare the objects’ type during authoring.

missing: wp-content/images/p39/strict_datatyping.gifmissing: wp-content/images/p39/name_suffix2.gif

Tags: , ,

Leave a Reply

You must be logged in to post a comment.