PureMVC Architects Lounge

Announcements and General Discussion => Fabrication => Topic started by: marks416 on December 08, 2008, 01:04:43



Title: Air application with Fabrication?
Post by: marks416 on December 08, 2008, 01:04:43
Hi,

I try to develop a Air application with Fabrication.

I did the following:

1. copy fabrication-0.5.3-air.swc to libs
2. change main page with

  <fab:AirApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
   xmlns:ns1="view.components.*"
   xmlns:fab="org.puremvc.as3.multicore.utilities.fabrication.components.*">

 </fab:AirApplication>

But I get a error for

     override protected function getStartupCommand():Class {
      return SimpleAirStartupCommand;
   }

The error message is " 1023 Incompatible override".

The same function works with Flex but why I get the error for Air. Please help me.

Thanks

Mark
 


Title: Re: Air application with Fabrication?
Post by: marks416 on December 08, 2008, 01:06:04
Hi

Would you please post a simple Air application with Fabrication.

Thanks

Mark


Title: Re: Air application with Fabrication?
Post by: Jason MacDonald on December 08, 2008, 01:31:45
The getStartupCommand is Public, not Protected. Changing it to the following should fix your problem.

:
override public function getStartupCommand():Class {
      return SimpleAirStartupCommand;
 }


Title: Re: Air application with Fabrication?
Post by: marks416 on December 08, 2008, 09:36:35
This is the differrent for Fabrication used for AIR and Flex?

I check the Flex demo.that is protected.

I will try to flex.

Would you please post a AIR demo.Thanks

Mark


Title: Re: Air application with Fabrication?
Post by: Darshan Sawardekar on December 09, 2008, 07:02:56
Hi Mark,

You are probably using older version of Fabrication. Please use the version on google code and its wiki. The blog articles are dated to the older version. I will try to add a disclamer to that post.

And as Jason mentioned the solution to your issue is to make getStartupCommand public.

Regarding the AIR application. The only difference between the flex and air version is that you have to extend AirApplication instead of FlexApplication. This is a Flex thing because the base class to extend for creating Air applications with Flex is WindowedApplication which is what AirApplication extends.

I will try to create a air demo example soon.

peace,
darshan