0
votes

In mxml application made in flex if i place a part of actionscript code in separate file and include it in mail application using (fx:Script source) , then do i have to import all the mx and spark components in .as included file even though they are were already imported in main mxml application ? For example if i have mx alert already imported in main mxml file then will i have to import in again in the .as file placed externally although .as file is included in main mxml application ?

Thanks

1

1 Answers

0
votes

The answer is no you don't need to, but you will get compiler warnings if you reference classes inside the include. These warnings will not prevent you from compiling or deploying your app properly.

If you already had a sample set up for this, why did you ask here instead of just trying it?