In the example below an action script file with .as extension has been imported in the main Operations.mxml file. This .as file instance is brought through the source attribute in <mx:Script> tags.
Syntax for using 'source' attribute:-
<mx:Script source = ' '> ...... </mx:Script>
In the imported action script file four functions are defined and they are called through the click attribute property of buttons in the main mxml file.
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Action Script 'source' attribute example
Post your Comment