Im trying to get my .mxml file to compile with my .as files.
The thing is that I have moved the .as files and mxml files to different folders - Model(contains .as), View(contains .mxml) and Control(contains .as).
When I debug the .mxml get a launch error.
How do I get the .mxml to run with the .as files? I have tried this code with no luck!
In the Flex
MXML language, the <mx:Script> tag lets you specify a source attribute that identifies
an external ActionScript file to be loaded at that point in the application. For example, the
following tag will load an external ActionScript file named Box.as:
Now I have made the suggested changes. However, I am not entirely sure that this is what you ment. Forgive my ignorence. I still get the same launch error, so I would deeply appreciate some help
The first question here is: what is in the as files?
But I would skip that conversation, and just read this. Note in section 4, where it talks about 'package'.
Okay, so that's the reverse of what you ask about, but I expect it'll provide the answer you want i.e. take a look through, make any changes to your as code, and then take a look at what you had at the start - where you where instantiating namespace defined components.