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]
|
4
|
PureMVC Manifold / Demos and Utils / Re: Startup as Ordered - A PureMVC AS3 / Flex Demo
|
on: June 05, 2008, 10:28:07
|
Question about the tutorial:
In part 2 you have made the statement:
Lines 33-37: The before mentioned utility commands are registered. It’s important that the commands are registered separately with the “Loaded” and “Failed” notification names for every single startup resource.
Why is it important that there are different notification names for every startup resource?
|
|
|
5
|
PureMVC Manifold / Demos and Utils / Re: Application Skeleton - A PureMVC AS3 / Flex / WebORB Demo
|
on: May 26, 2008, 01:31:40
|
I agree - in the MainScreen.mxml file you have this
<mx:Label text="{ApplicationFacade.getLocaleProxy().getText('How to read config values')}" color="#ffffff" fontSize="14" width="90%" /> <mx:Text id="configValueExample" width="90%" color="#ffffff" /> <mx:Label text="{ApplicationFacade.getLocaleProxy().getText('How to read locale text')}" color="#ffffff" fontSize="14" width="90%" /> <mx:Text id="localeValueExample" width="90%" color="#ffffff" />
Which is a mix of having the mediator give the text (for the mx:Text) controls and having the view component talk to the ApplicaitonFacade directly. Seems it ought to be changed to this
<mx:Label id="configLabel" color="#ffffff" fontSize="14" width="90%" /> <mx:Text id="configValueExample" width="90%" color="#ffffff" /> <mx:Label id="localeLabel" color="#ffffff" fontSize="14" width="90%" /> <mx:Text id="localeValueExample" width="90%" color="#ffffff" /> And then in
MainScreenMediator in the handleCreationComplete function add these two lines.
this.mainScreen.configLabel.text= ApplicationFacade.getLocaleProxy().getText('How to read config values'); this.mainScreen.localeLabel.text = ApplicationFacade.getLocaleProxy().getText('How to read locale text');
|
|
|
|
|
|