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

Show Posts

| * |

  Show Posts
Pages: 1 [2]
16  Announcements and General Discussion / Fabrication / May I use routeNotification in same file(module)? on: December 09, 2008, 10:28:21
I have the code in same file that is a mediator

static public const SEND_MESSAGE:String = "sendMessage";

routeNotification(SEND_MESSAGE, null, null, "*");

public function respondToSendMessage(note:INotification):void {
    trace("respondToSendMessage");
}

I already add the code in main page

override public function getClassByName(path:String):Class {
   return getDefinitionByName(path) as Class;   
}

But I do not know why I can not handle the notification in respondToSendMessage.
I can not trace message after I call routeNotification.

Please help me

Thanks

Mark
17  Announcements and General Discussion / Fabrication / Fabrication and Adobe Air? on: December 09, 2008, 07:48:17
Hi  darshan,

Have you test Fabrication with Adobe Air?

I get error message for the following statement:

      import org.puremvc.as3.multicore.utilities.fabrication.core.FabricationMediator;
         
      import view.components.Display;
      import view.components.Editor;
     
      public class SimpleAirMediator extends FabricationMediator
   {
      static public const NAME:String = "SimpleAirMediator";
      public function SimpleAirMediator(viewComponent:SimpleAir)
      {
         super(NAME, viewComponent);
      }
      
      override public function onRegister():void {
         registerMediator(new DisplayMediator(display));
         registerMediator(new EditorMediator(editor));
         
      }
         }

The error message are:

1017: The definition of base class FabricationMediator was not found.       
1020: Method marked override must override another method.

Would you please post a simple demo for AIR 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>

I download fabrication-0.5.3-air.swc from wiki site. do you think it is lastest one?

Thank

Mark






18  Announcements and General Discussion / Fabrication / Air application with Fabrication? 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
 
19  Announcements and General Discussion / Fabrication / Fabrication Application Development Enviroment? on: December 04, 2008, 11:36:45
Hi,

I overview some demos, some can run in Flex builder without Ant plug-in,some need build with Ant.

I am not sure when we need Ant and when we do not need Ant.

Thanks

Mark
20  Announcements and General Discussion / Fabrication / What Fabrication is? on: December 02, 2008, 12:09:44
Hi,

I wonder if Fabrication only work with Multicode PV or can work for both (multicore and standard)

Thanks

Mark
21  Announcements and General Discussion / Fabrication / what the common.swc? on: December 02, 2008, 12:02:08
I see the common.swf in libs folder in demo.I guess it include multicore pv and pipe utility.is that right?

Thanks

Mark
22  Announcements and General Discussion / General Discussion / How to pass data to popup page? on: October 31, 2008, 06:45:29
Please give me a idea how to pass data from main page to popup page with puremvc.

Thanks

Mark
23  Announcements and General Discussion / General Discussion / puremvc for popup windows(TitleWindow)? on: October 28, 2008, 01:04:30
I want to make sure if it follows same way with normal component page?

It has special concerns or not?

Thanks

Mark
24  Announcements and General Discussion / General Discussion / why notification called twice? on: October 28, 2008, 11:49:55
Hi ,

I have a difficult to use puremvc now.

I just call notification once but I see notification called twice when I trace in handleNotification.

Do you have the error before?

Thanks

Mark
25  Announcements and General Discussion / General Discussion / May I send two Notifications same time? on: October 23, 2008, 07:03:23
I have a question for puremvc.

I have two notifications and they work fine if I send second after first finished.

Both notifications need use proxies to communicate with database.

But I get "object null" error if I send both notifications in same function.

I do not know why this happen.Please help me.

Thanks

Mark

26  Announcements and General Discussion / General Discussion / when it is the best time to register Mediator? on: October 21, 2008, 11:14:01
I have a question for register a Mediator with facade.registerMediator.

I use facade.registerMediator to register a Mediator,but why I get null when I access viewComponent, it seem I register the Mediator so early,what is the right time to register a Mediator?

Thanks

Mark
27  Announcements and General Discussion / General Discussion / Question for facade class? on: October 13, 2008, 02:43:45
Hi,

I am new for pureMVC, I knwo facade class have the following methods

removeMediator
removeCommand   
removeProxy

I wonder when we need to use the methods and the purpose to use them( for save monory,garbage collection or others).

Thanks for your help.

Mark
28  Announcements and General Discussion / General Discussion / when we need observer? on: October 05, 2008, 09:09:58
I am new to pureMVC

I want to know in which case we need import the observer class.    
org.puremvc.as3.patterns.observer

Thanks

Mark
29  Announcements and General Discussion / General Discussion / what is the purpose for setData? on: October 05, 2008, 08:54:09
I am new to pureMVC.

I do not have a idea for

org.puremvc.as3.patterns.proxy.Proxy.setData

where I can find the class help for pureMVC.

Thanks

mark
Pages: 1 [2]