Hi there …
How would I import a class (such as a tween engine) in to my custom class?
Or How can I allow my custom class to use the imported class which is ‘included’ in the main swf file…?
…//////////////////////////////////
First of all get the AS 2.0 version of that class.
Then simply use the import statement inside your custom class.
ActionScript Code:
[LEFT][COLOR=#0000FF]import[/COLOR] mc_tween_as2
[COLOR=#000000]class[/COLOR] YourCustomClass [COLOR=#0000FF]extends[/COLOR] [COLOR=#0000FF]MovieClip[/COLOR][COLOR=#000000]{ [/COLOR]
[COLOR=#808080]//…[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
.......................>> I was advised.
But if my tween engine, included in the root SWF is ‘MC_tween.as’ - how would I write it?