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: what is the different between AIR and Flex with Fabrication?  (Read 12104 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« on: February 19, 2009, 09:45:44 »

Hi,

I need build a AIR application and the function is similar with demo "Simple Routing", I need pass data between modules.

I do a sample test,I just change "Simple Routing" to AIR from Flex.

I did the following.

1. copy air swc lib to lib folder
2. change main shell, from "fab:FlexApplication" to "fab:AirApplication"

I get some error.it seems I have to implement some interface methods(type 1044 errors).I confuse why this happen.

Thanks

Mark

Error message:

Severity and Description   Path   Resource   Location   Creation Time   Id
1044: Interface method acceptRouter in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAware not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149684
1044: Interface method addEventListener in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149676
1044: Interface method dispatchEvent in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149673
1044: Interface method get id in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IFabrication not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149672
1044: Interface method getDefaultRoute in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAwareModule not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149680
1044: Interface method getModuleAddress in namespace org.puremvc.as3.multicore.utilities.fabrication.interfaces:IRouterAwareModule not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149679
1044: Interface method hasEventListener in namespace flash.events:IEventDispatcher not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648140   149675
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149681
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149685
1044: Interface method hasOwnProperty in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149688
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149682
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149686
1044: Interface method isPrototypeOf in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149689
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648156   149683
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149687
1044: Interface method propertyIsEnumerable in namespace http://adobe.com/AS3/2006/builtin not implemented by class FabricationRoutingDemoShell.   FabricationRoutingDemoShell/src   FabricationRoutingDemoShell.mxml   line 5   1235060648171   149690


Logged
marks416
Sr. Member
****
Posts: 52


View Profile Email
« Reply #1 on: February 19, 2009, 11:17:31 »

I use 0.6 library and try this.

It works now.Thanks

Mark
Logged
marcin_klimek
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: April 15, 2009, 02:34:34 »

Hi,

I have a problem with porting application from Flex to AIR. I use 0.6 version of fabrication - web version works fine, but in Air I receive error (it is simple port of simple routing app):

Error: Unable to perform reflection for classpath shell.view.FabricationRoutingDemoShellMediator. Check if getClassByName is defined on the main fabrication class
   at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/listNotificationInterests()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\mediator\FabricationMediator.as:285]

FabricationRoutingDemoShellMediator inherits from FlexMediator and main file inherits AirApplication. Have you ever had that problem?
Logged
marcin_klimek
Newbie
*
Posts: 2


View Profile Email
« Reply #3 on: April 16, 2009, 03:01:29 »

I forgot about adding getClassByName override in main fabrication class.
Logged
Tipz
Full Member
***
Posts: 20


View Profile Email
« Reply #4 on: May 18, 2009, 02:17:31 »

Where can i find  fabrication-0.6-flash.swc   0.6 flash swc please
Logged
Jason MacDonald
Sr. Member
****
Posts: 243


View Profile Email
« Reply #5 on: May 18, 2009, 06:10:07 »

http://code.google.com/p/fabrication/downloads/list

There's no swc for Flash because before CS4 came out you couldn't use swc's with Flash. Just use the src or build your own SWC. All the ant build files are there if you want a swc, including a Flash swc build.
Logged
Pages: [1]
Print