Michael,
I had problems getting the ActionScript project code into the AIR
application.
The original Document Class from OriginalProgram.AS would not run
because it was no longer automatically on the display list and so its
stage variable was null.
I emptied the code from the constructor
FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML)
AIR application.
--- In flexcoders@yahoogroups.com, John McCormack j...@... wrote:
Michael,
I had problems getting the ActionScript project code into the AIR
application.
The original Document Class from
reflexactions wrote:
FYI The Adobe docs do describe how to create a pure AS (i.e. not using MXML)
AIR application.
I haven't found that, although I have found lots of other references.
Unfortunately the Adobe PDF help files overlap and they have no dates,
so things are hard to find.
Some
Developing Adobe AIR 1.5 Applications with Flex:
See section Creating your first AIR application with the Flex SDK
See the para Write the application code
Note: SWF-based AIR applications can use a main class defined either with MXML
or with Adobe® ActionScript® 3.0. This example uses an MXML
Much appreciated!
John
reflexactions wrote:
Developing Adobe AIR 1.5 Applications with Flex:
See section Creating your first AIR application with the Flex SDK
See the para Write the application code
Note: SWF-based AIR applications can use a main class defined either with
MXML or with
Brilliant support!
I did hope to do it like this, by instantiating an instance of my
previous main document class within ![CDATA[ tags but that didn't work
I will try these out in the next couple of days.
I also downloaded the AIR help file you pointed me to.
Thank you.
John
Michael wrote:
John,
Though your code is in ActionScript, you should just be able to use the MXML
WindowedApplication tag just at the very top-level, and initialize your main
ActionScript UI within an mx:Script tag.
Something like:
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
John,
You can convert your Flex project to an AIR application pretty easily. There's
three basic steps involved:
1) Your application should be declared as inheriting from WindowedApplication,
rather than Application in your main myapp.mxml file.
mx:WindowedApplication
8 matches
Mail list logo