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]
|
3
|
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
|
|
|
6
|
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?
|
|
|
7
|
Announcements and General Discussion / General Discussion / Re: preloader for the application and puremvc startup
|
on: February 28, 2009, 05:34:16
|
thanks tek,
it was a little tricky though. the DownloadProgressBar class doesn't implements the IUIComponent, so i couldn't add it to the application.
so, after Application.CreationComplete i registred my PreloaderMediator. in the constructor i created a new UIComponent instance and added the Preloader to it. this way i could add it to the application displaylist.
also i made a get function that returns the 1st child of the UIComponent, hence my Preloader instance.
it works local, but i have to test it on a webserver. not that it would not work, but i don't want the change from the application preloader to the resources preloader to be visible.
|
|
|
9
|
Announcements and General Discussion / General Discussion / Re: preloader for the application and puremvc startup
|
on: February 28, 2009, 07:39:10
|
@tek:
yes, but when i want to use the same preloader for the flex app, and after flex fires the creationcomplete event, i want the same preloader to show the loading progress for the ressources.
for the first part, i extend the DownloadProgressBar. but when the preload ends, flex removes DownloadProgressBar.
can i prevent DownloadProgressBar from beeing removed, and pass an instance of it to puremvc, then register a mediator to it?
thanks
|
|
|
11
|
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
|
|
|
13
|
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!!
|
|
|
|
|
|