Congratulations on the release of your book!
At present, we are working on flex with ABAP WedDynpro.
Even though we are not using JAVA to integrate flex UIs, I hope your book will be helpful for general flex concepts.
We were facing issues with large mxml application file due to lot of actionscript code inside script block.
We cant extract classes out of that code also.
And couldnt find much appropriate samples on the net on how we can split the file into multiple actionscript files.
We just know that we can use "include" tag to point to an external actionscript file. But havent understood it well.
Could you please explain the same if possible with an example?
and could you please let me know whether you will be covering this kind of coding practices in your book?
About using include directive, I have covered this in my book in Chapter 3 Page 90. The include directive is an ActionScript directive that copies the content of an
external ActionScript file into your MXML application. You will have to create ActionScript File not ActionScript Class to use in include the ActionScript File is a normal file with .as as its extension, but this file will have no package or class declaration.
Example inside your <script> tag use
Where Util.as is an simple ActionScript file in cars package having some methods and variables.