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
|
Pages: [1]
|
1
|
Announcements and General Discussion / General Discussion / another statemachine question...
|
on: March 02, 2009, 09:01:30
|
is it possible to nest states?
say i have 4 states: state A, state B, state C and state D
when in state B, i'd like to have the possiblity to trigger state C and state D, but only if i'm in state B. when i would try to trigger state C/D while the current state is A, nothing happens...
is that possible? or do i have to make a switch in the handleNotification function?
thanks
|
|
|
2
|
Announcements and General Discussion / General Discussion / event order in StartupManager
|
on: February 28, 2009, 05:43:58
|
hi,
i have an application with 1 proxy (it will be more when the application is finished). i use the StartupManager to load it.
now, when i listen for the notifications, the smLoadingComplete is the first one, and the one stating that the proxy is loaded is second.
shouldn't it be the other way?
|
|
|
4
|
Announcements and General Discussion / General Discussion / question to deferred instantiation
|
on: February 27, 2009, 09:01:26
|
hi,
i would like to know if my approach to deferred instatiation goes along best practice: here my mediator:
public class MyMediator extends Mediator { public static const NAME : String = "MyMediator"; public function MyMediator() { super(NAME); } override public function onRegister() : void { var vc : ViewComponent = new ViewComponent(); DisplayObject(vc).addEventListener(FlexEvent.CREATION_COMPLETE, this.addView); this.sendNotification(AppFacade.ADD_CHILD_TO_STAGE, vc); }
private function addView(e : FlexEvent) : void { this.viewComponent = e.target; } }
so basically, when i need a flex component, i register the mediator, and the mediator knows itself witch component to instantiate.
thanks
|
|
|
5
|
Announcements and General Discussion / General Discussion / command modifies viewComponent??
|
on: December 24, 2008, 02:49:35
|
hi all,
is it allowed to modify a viewComponent directly from a command?
i have a MacroAsyncCommand with three AsyncCommands: FadeOut, Update and FadeIn. each of the subcommands modifies the view directly.
i know i could make it like: call 1st command from mediator, when 1st command sends notification that its finished, mediator modifies the view, then calls the 2nd command... and so on. but with this, i would add lots of constants to the app.
i would like to know, if the first approach is allowed or not.
thanks!!
|
|
|
|
|
|