1 person found this helpful
I think they write about including multiple fx:Script tags in mxml file. They are state the same rules as outlined in Flex SKD docs:
if your <fx:Script declare "source" property to external file - it cannot contain actionscript code within that tag
you could have as many fx:Script declarations within single mxml file as you want - on condition that rules from linked docs are preserved (e.g. about what can be declared within such tags, there cannot be duplicates, etc
you could use "include" directive within fx:Script tag to inject additional external code at compilation time into your script block
Although multiple script tags are allowed, I'd guess that they're not commonly used.
Adobe Flex SDK Team
Okay, Great. Thanks for clearing up some issues for me.
Well, I was experimenting today after I asked my question and I finally noodled together something that works for me. Probably not strict programming practice, but I'm new to all this.
I had 5 SQLStatements and corresponding functions in one *.as file and it was starting to get really crowded. Then I literally stumbled upon the multiple <fx:script> blocs in a single mxml file (per Adobe docs and the FB/Flex Bible). Had not seen any examples anywhere using this approach.
It seemed to help me organize my code quite a bit. I don't really understand classes and all that stuff yet. And there is a derth of info out there on SQLite projects that implement something more extensive than a CRUD database. Now I have a dedicated *.as file for each sqlstatement. Makes me happy.