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]
1  Announcements and General Discussion / General Discussion / Re: another statemachine question... on: March 03, 2009, 04:32:57
hi neil,

yes, it is just to obvious...  ;D

thanks
2  Announcements and General Discussion / General Discussion / Re: [OT] from AS3 to UML on: March 02, 2009, 11:29:01
hi,
for uml i use the enterprise architect from sparx (not open source).
there you can refactor your code into uml diagrams.
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
4  Announcements and General Discussion / General Discussion / Re: event order in StartupManager on: March 02, 2009, 08:56:03
thanks philip, i'll try the 2 notifications solution...
5  Announcements and General Discussion / General Discussion / Re: preloader for the application and puremvc startup on: March 01, 2009, 05:37:53
@tek:
thanks, i will try the proxies.
you know, i wouldn't mind the progressbar going to full until the app initialized, and then start for the ressources from the start.
i mean, this is how every install bar works. i just wouldn't like it if there would be a visible change inbetween.
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.
8  Announcements and General Discussion / General Discussion / Re: question to deferred instantiation on: February 28, 2009, 05:24:25
thanks a lot,
i'm always amazed, how fast i get the answers...  :D
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
10  Announcements and General Discussion / General Discussion / preloader for the application and puremvc startup on: February 28, 2009, 05:59:52
hi,

how can i make a preloader that displays the flex application loading status, and on complete event starts showing the puremvc startup?

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
12  Announcements and General Discussion / General Discussion / Re: command modifies viewComponent?? on: December 25, 2008, 12:28:02
hi cliff,

thanks for the answer...
i'm quite new to patterns, so sometimes i'm not very confident hot to use it... :)

anyway, 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!!
Pages: [1]