Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED

2009-10-06 Thread John McCormack
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

[flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED

2009-10-06 Thread reflexactions
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

Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED

2009-10-06 Thread John McCormack
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

[flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED

2009-10-06 Thread reflexactions
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

Re: [flexcoders] Re: AIR from a Flex ActionScript Project? SOLVED

2009-10-06 Thread John McCormack
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

Re: [flexcoders] Re: AIR from a Flex ActionScript Project?

2009-10-01 Thread John McCormack
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:

[flexcoders] Re: AIR from a Flex ActionScript Project?

2009-09-30 Thread Michael
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;

[flexcoders] Re: AIR from a Flex ActionScript Project?

2009-09-29 Thread Michael
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