This post originated from an RSS feed registered with Web Buzz
by Huw Collingbourne.
Original Post: ActionScript 'Code Behind' in Amethyst
Feed Title: SapphireSteel Software
Feed URL: http://www.sapphiresteel.com/spip.php?page=backend&id_rubrique=1
Feed Description: Discussion of Ruby, Flex and the Ruby In Steel and Amethyst/Flex IDEs for Visual Studio.
The 'mx:Script' tag in MXML has two forms. Often, you will have code like this That is, the ActionScript code is embedded in the MXML code. This is fine for small pieces of code, but it can be unmanageable for large or more complicated ActionScript. The alternative approach is to use a link or reference to an ActionScript file with the code in it: