Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Air application with Fabrication?  (Read 9093 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« 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
 
Logged
marks416
Sr. Member
****
Posts: 52


View Profile Email
« Reply #1 on: December 08, 2008, 01:06:04 »

Hi

Would you please post a simple Air application with Fabrication.

Thanks

Mark
Logged
Jason MacDonald
Sr. Member
****
Posts: 243


View Profile Email
« Reply #2 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;
 }
Logged
marks416
Sr. Member
****
Posts: 52


View Profile Email
« Reply #3 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
Logged
Darshan Sawardekar
Sr. Member
****
Posts: 85


View Profile Email
« Reply #4 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
Logged
Pages: [1]
Print