[COLOR=black]Yes, but you have to modify two XML documents.[/COLOR]
[COLOR=black]Code Hints[/COLOR]
[COLOR=black]First navigate to and open Program Files>Macromedia>Flash 8>|language|>First Run>ActionsPanel>ActionScript_1_2>ActionsPanel.xml.[/COLOR]
[COLOR=black]Once its open, you’ll have to add the information your self - use the existing classes as a template. Here’s my entries for the mx.transitions package:[/COLOR]
[COLOR=black]
<folder name="mx.transitions package" id="mx.transitions package" tiptext="Classes for using transitions with objects on the stage" helpid="" version="7">
<folder name="Tween" sort="false" id="[mx.transitions.Tween]" index="true" tiptext="The Tween class lets you use ActionScript to move, resize, and fade movie clips easily on the Stage" helpid="" version="7">
<string name="new Tween" helpid="" text="new Tween(% obj:MovieClip, prop:String, func:Function, begin:Number, Finish:Number, duration:Number, useSeconds:Boolean %)" tiptext="Creates a new Tween object" object="[mx.transitions.Tween]" version="" type="expression"/>
<folder name="Methods" tiptext="Tween methods" sort="true" id="TweenMethods" index="false" version="">
<string name="continueTo" text=".continueTo(% finish:Number, duration:Number %)" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Instructs the tweened animation to continue tweening from its current animation point to a new finish and duration point"/>
<string name="fforward" text=".fforward()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Forwards the tweened animation directly to the final value of the tweened animation"/>
<string name="nextFrame" text=".nextFrame()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Forwards the tweened animation to the next frame of an animation that was stopped"/>
<string name="prevFrame" text=".prevFrame()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Plays the previous frame of the tweened animation from the current stopping point of an animation that was stopped"/>
<string name="resume" text=".resume()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Resumes the play of a tweened animation that has been stopped"/>
<string name="rewind" text=".rewind()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Moves the play of a tweened animation back to its starting value"/>
<string name="start" text=".start()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Starts the play of a tweened animation from its starting point"/>
<string name="stop" text=".stop()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Stops the play of a tweened animation at its current value"/>
<string name="toString" text=".toString()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Returns the class name, [Tween]"/>
<string name="yoyo" text=".yoyo()" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Instructs the tweened animation to play in reverse from its last direction of tweened property increments"/>
</folder>
<folder name="Properties" tiptext="Tween properties" sort="true" id="TweenProperties" index="false" version="">
<string name="duration" text=".duration" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="A number indicating the duration of the tweened animation in frames or seconds"/>
<string name="finish" text=".finish" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="A number indicating the ending value of the target object property that is to be tweened"/>
<string name="FPS" text=".FPS" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="The number of frames per second calculated into the tweened animation"/>
<string name="position" text=".position" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="The current value of the target object property being tweened"/>
<string name="time" text=".time" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="The current number of frames or seconds that have passed within the duration of the animation"/>
</folder>
<folder name="Event Handlers" id="Event Handlers" tiptext="Event handlers of the Tween object" helpid="" version="">
<string name="onMotionChanged" text=".onMotionChanged" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Invoked with each change in the tweened object property that is being animated" type="event"/>
<string name="onMotionFinished" text=".onMotionFinished" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Invoked when the animation reaches the end of its duration" type="event"/>
<string name="onMotionResumed" text=".onMotionResumed" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Invoked when the Tween.resume method is called" type="event"/>
<string name="onMotionStarted" text=".onMotionStarted" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Invoked when the animation starts again during or after completing its animation" type="event"/>
<string name="onMotionStopped" text=".onMotionStopped" object="[mx.transitions.Tween]" version="7" helpid="" tiptext="Invoked when the tweened animation completes to the end of its animation or when the Tween.stop method is called" type="event"/>
</folder>
</folder>
<folder name="OnEnterFrameBeacon" sort="false" id="[mx.transitions.OnEnterFrameBeacon]" index="true" tiptext="Allows non-MovieClip objects to have an onEnterFrame event" helpid="" version="7">
<folder name="Methods" id="Methods" tiptext="Methods of OnEnterFrameBeacon" helpid="x209C9" version="7">
<string name="init" tiptext="Init beacon to start broadcasating" helpid="" text="OnEnterFrameBeacon.init()" version="7" object="[mx.transitions.OnEnterFrameBeacon]"/>
</folder>
</folder>
</folder>
[/COLOR]
Data Types
To have the data types appear in the list when giving a variable a type, you’ll have to add another line near the bottom of the ActionsPanel.xml document. In a node folder called “types,” you can add as many data types as you like, here is mine for the Tween class:
<string name="Tween" tiptext="Tween type" helpid="" text="Tween" version="7"/>
Variable Naming Conventions
To have hints appear according to the suffix of the variable name, you’ll need to add another line in ActionsPanel.xml. In the second last node (codehints), you can specify suffixes and what type they are for, here is mine for the Tween class:
<typeinfo pattern="*_twn" object="Tween"/>
[COLOR=black]Syntactical Colouring[/COLOR]
[COLOR=black]Open Program Files>Macromedia>Flash 8>|language|>First Run>ActionsPanel>AsColorSyntax.xml.[/COLOR]
[COLOR=black]Again, it’s simply a matter of adding some more identifiers to the list. Here are my additions for the mx.transitions package:[/COLOR]
[COLOR=black]
<!-- mx.transitions -->
<identifier text="mx.transitions"/>
<!-- mx.transitions.Tween -->
<identifier text="Tween"/>
<identifier text=".continueTo"/>
<identifier text=".fforward"/>
<identifier text=".nextFrame"/>
<identifier text=".prevFrame"/>
<identifier text=".resume"/>
<identifier text=".rewind"/>
<identifier text=".start"/>
<identifier text=".stop"/>
<identifier text=".toString"/>
<identifier text=".yoyo"/>
<identifier text=".duration"/>
<identifier text=".finish"/>
<identifier text=".FPS"/>
<identifier text=".position"/>
<identifier text=".time"/>
<identifier text=".onMotionChanged"/>
<identifier text=".onMotionFinished"/>
<identifier text=".onMotionResumed"/>
<identifier text=".onMotionStarted"/>
<identifier text=".onMotionStopped"/>
<!-- mx.transitions.OnEnterFrameBeacon -->
<identifier text="OnEnterFrameBeacon"/>
<identifier text=".init"/>
[/COLOR]
[COLOR=black]Problems[/COLOR]
[COLOR=black]I have no idea if this is a common problem, but it happened to me so you’re going to hear about it. The problem was I had duplicate entries of each class, function, property, etc. in Flash. Apparently Flash, being the intuitive program that it is, will find every copy of the XML files on your hardrive and load them twice. This will cause the duplicate entries. And my Sony, being the intuitive prgram that it is, will recent shortcuts to whatever files I have opened, well, recently. Solution is to find and delete all extra copies of these files after you are finioshed modifying them (Search is useful for this).[/COLOR]
[COLOR=black]Also note that you must restart Flash for any changes to take effect.[/COLOR]
[COLOR=black][quote=]No, its not documented [/quote][/COLOR]
[COLOR=black]Actually it is documented in the component language reference ;)[/COLOR]
[COLOR=black]Hope this helps :hoser:[/COLOR]