|
|
Show Posts
|
Pages: 1 2 [3] 4
|
31
|
Announcements and General Discussion / Getting Started / Re: Starting from Scratch.
|
on: April 01, 2008, 04:54:15
|
Hi Bigmama in regards to a nested command calls: you may want to check out the MacroCommand which is registered in the ApplicationFacade . initializeController In ApplicationFacade
override function initializeController() : void { super(); registerCommand(APP_STARTUP, ApplicationStartupCommand); } example macro command public class ApplicationStartupCommand extends MacroCommand {
public function ApplicationStartupCommand() { return; } override function initializeMacroCommand() : void { addSubCommand(ModelCommand); addSubCommand(ViewCommand); return; } hope that helps some Curt (Trilec)
|
|
|
32
|
Announcements and General Discussion / General Discussion / Re: How to handle a large amount of data that has dependencies
|
on: April 01, 2008, 04:38:18
|
Hi Grabowski Just a few thoughts I had looking at your post, I hope it's not off-base. It's my understanding that a view is a partial or whole representation of a model/proxy with mediators/commands controlling the flow of information back and forth. If your XML data is located in a single proxy it could contain logic for giving out data chunks in the appropriate VO back to controlling mediators which in turn update the view/UI. This would mean calculating the group table could be done in the proxy as you mentioned in your last comment. Trilec
|
|
|
35
|
Announcements and General Discussion / Architecture / Re: Database blocking Notification?
|
on: March 31, 2008, 09:42:35
|
Hi Shizny, Its my understanding that while in a transaction block statistic (if this is the same problem you are having) information will not be updated instantly. Each server process transmits access counts to the collector before going idle; this means a transaction still in progress does not affect statistic totals. I also think the collector itself only reports intermittently, this can mean displayed information lags behind internal activity. So from within a mysql sometimes statistics will appear not to change as long as you continue the current transaction.
hope that helps T
|
|
|
37
|
PureMVC Manifold / Demos and Utils / Re: StartupManager - A PureMVC AS3 Utility
|
on: March 31, 2008, 08:51:45
|
Thanks Philip, Yes, I like the look of the startupmanager, but converting the example to as3 is a little new for me, Im still looking for a AS3 example of getting the startupmanager running even as code snips (Docs dont seem to give this). The ideal example would be 1 movie clip that the main app uses as assets and 1 xml that is a config, all using the startupmanager in a multicore pureMVC.
Two points I would like to clarify are: Looks like you require a separate proxy for loading an asset ie. movieclip with style information (ie. background gradient clip,logo,some strange flying text thing) as this is not really a database more UI. This could get very confusing as a proxy would be holding UI component assets, perhaps I'm getting this confused after going through so much code examples...lol.
Also what would be the recommended procedure to trigger an introduction splash screen while loading other assets being once an style assets a loaded passing this information to the main application?
If anyone is interested I've started to reassemble with what little FLEX knowledge I have the startupmanager main timeline in AS3. if anyone feels like helping, layout is not currect as i was just tring to get the main code in place.
//maintimeline application.as
package { import flash.display.MovieClip; import fl.controls.ProgressBar; import fl.controls.ProgressBarMode; import fl.controls.Label; import fl.controls.Button; import flash.display.MovieClip; import fl.controls.List; import fl.data.DataProvider; import app.startupasordered.ApplicationFacade; //test directory location public class startupasordered extends MovieClip //main stage Clip { //private var Assets:MovieClip; static public const NAME:String = "Application"; public var facade:ApplicationFacade; public static const RETRY :String = "retry"; public var watchers:Array; public var notifications:Array = new Array(); public var customerStatus :String = ""; public var productStatus :String = ""; public var salesOrderStatus :String = ""; public var debtorAccountStatus :String = ""; public var invoiceStatus :String = ""; public var overallStatus :String = "..."; public var retryIsVisible :Boolean = false; public var retryIsEnabled :Boolean = false;
public var customerStatusLabel :Label; public var productStatusLabel :Label; public var salesOrderStatusLabel :Label; public var debtorAccountStatusLabel :Label; public var invoiceStatusLabel :Label; public var overallStatusLabel :Label; public var retryIsVisibleLabel :Boolean; private var pb:ProgressBar; private var retryBtn:Button; public var notificationsList:List; public function startupasordered() { facade = ApplicationFacade.getInstance(); notifications = new Array(); retryIsVisibleLabel = false; createChildren(); creationComplete();
} private function sendEvent( eventName :String ) :void { dispatchEvent( new Event( eventName )); } public function creationComplete(param1:Event) : void { facade.startup(this); return; }
private function createChildren( ) :void { notificationsList = new List(); notificationsList.dataProvider = new DataProvider(notifications); addChild(notificationsList);
pb = new ProgressBar(); pb.move(10, 10); pb.mode = ProgressBarMode.MANUAL; addChild(pb); retryBtn = new Button(); retryBtn.move(10, 30); retryBtn.setSize(120, 20); retryBtn.label = RETRY; retryBtn.addEventListener(MouseEvent.CLICK, sendEvent); addChild(retryBtn);
customerStatusLabel=new Label(); customerStatusLabel.move(10, 10); customerStatusLabel.text = "Customer Status: "; addChild(customerStatusLabel);
productStatusLabel=new Label(); productStatusLabel.move(10, 10); productStatusLabel.text = "Product Status: "; addChild(productStatusLabel); salesOrderStatusLabel=new Label(); salesOrderStatusLabel.move(10, 10); salesOrderStatusLabel.text = "Sales Order Status: "; addChild(salesOrderStatusLabel); debtorAccountStatusLabel=new Label(); debtorAccountStatusLabel.move(10, 10); debtorAccountStatusLabel.text = "Debtor Account Status: "; addChild(debtorAccountStatusLabel); invoiceStatusLabel=new Label(); invoiceStatusLabel.move(10, 10); invoiceStatusLabel.text = "Invoice Status: "; addChild(invoiceStatusLabel); overallStatusLabel=new Label(); overallStatusLabel.move(10, 10); overallStatusLabel.text = "Overall Status: "; addChild(overallStatusLabel); } }//class }//package
|
|
|
38
|
PureMVC Manifold / Demos and Utils / Re: StartupManager - A PureMVC AS3 Utility
|
on: March 28, 2008, 10:58:02
|
Im also trying to understand a multi preloading aspect for a Pure AS3 site. Im looking at the AppSkeleton PureMVC AS3 / Flex Demo as Im trying to find a pureMVC way of doing this but sometimes converting the flex to pure AS3 is interesting when you dont know flex...lol
im not sure if its the same issue for you but have included what im using so far it case it can help Ive edited it down for readability if there is a better method please let me know. ------------------- Preloader swf loads Preloader loads assets,Background Anim and status Preloader loads pureMVC app passing asset clips in vars -------------------
preloader.as
package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; import flash.system.Capabilities; dynamic public class preloader extends MovieClip { public var ApplicationLoader:Loader; public var AssetLoader:Loader; public var status_clip:MovieClip; public var bg_clip:MovieClip; public var assets:MovieClip; public var application:MovieClip;
public function preloader() { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; bg_clip = new bg_asset();//located in preloaded fla has anim bg_clip.init(Capabilities.screenResolutionX,Capabilities.screenResolutionY, {"animateOut":true, "onCompleteOut":transistionComplete} ); addChild(bg_clip); status_clip = new status_asset(); //located in preloaded fla status_clip.x =(stage.stageWidth/2)-(status_clip.width/2); status_clip.y =(stage.stageHeight/2)-(status_clip.height/2);; addChild(status_clip); }
public function progressHandler(param1:ProgressEvent) : void { var percent:int; percent = Math.round(100 * (param1.bytesLoaded / param1.bytesTotal)); var status_txt:String = "Percent " + percent + "%"; status_clip.drawText(status_txt); } public function transistionComplete() : void { status_clip.drawText("LOADING STYLES"); AssetLoader = new Loader(); AssetLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandlerAsset); AssetLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); AssetLoader.load(new URLRequest("niceassets.swf") ); }
public function completeHandlerAsset(param1:Event) : void { assets = AssetLoader.content as MovieClip; addChildAt(assets ,0); AssetLoader = null; status_clip.drawText("LOADING APPLICATION"); ApplicationLoader = new Loader(); ApplicationLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandlerApp); ApplicationLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); ApplicationLoader.load(new URLRequest("pureMPCapplication.swf") ); }
public function completeHandlerApp(param1:Event) : void { removeChild(status_clip); status_clip=null; application = ApplicationLoader.content as MovieClip; addChildAt(application ,0); ApplicationLoader = null; //at this point pass prams to application including assets //application.init(assets); } }//class }//package
t
|
|
|
42
|
Announcements and General Discussion / Architecture / Social networking framework(singleton, multicore?)
|
on: March 16, 2008, 06:23:20
|
Hi All, just wanted to asked a design question as I'm beginning development of a small social networking based site. It will have features such as: login process User tools- user details(login ID, account information)
- user profile (what I like to wear, favorite food)
- user gallery(images on may or may not share)
- user interests(list of interests)
- user a calendar(events I may or may not share)
- and other i cont think of right now ... :-)
common tools - browser for anyone to search users
- global events
Im trying to make it behave and appear like a single application (ie. full screen style) My question is regarding the best approach to sectioning development. singleton vs multicore? An example might be using multicore - core1:login process (the main controlling app)
- core2:user details/profile/gallery etc.
- core3:any other common tools, browser etc
seems many other ways to split it up, including singleton... I would greatly appreciate it if anyone can shed some light on a possible framework scenario. or if you have done something similar and have found it to work efficiently. As usual, thanks for any help, you guys rock..
|
|
|
43
|
PureMVC Manifold / MultiCore Version / Re: Is there a pure AS3 demo for Multicore
|
on: March 16, 2008, 04:35:36
|
Hi rocknroll, Currently in the demo section there is no pure AS3 demo however, a good starting point would be to review the modularity demo. This contains 85% or so AS3 code and gives you a great overview from a pureMVC Outlook. Where the .FLA would normally be involved (i.e. in creating some of the components) resides in the components folder under the view folder. Exampe :Modularity\src\org\puremvc\as3\multicore\demos\flex\modularity\view\components WidgetCanvas.mxml
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="80%" height="80%" cornerRadius="12" borderStyle="solid" backgroundAlpha="1" backgroundColor="#FFFFFF" horizontalAlign="center" verticalAlign="middle" dropShadowEnabled="true" > </mx:VBox> I am in a similar circumstance as I don't use Flex but find I can still get a good understanding of the structure by reviewing the code, anyway I hope that helps. You also might be unable to get a more information by reviewing some of the flex commands like Vbox.
Cheers
|
|
|
|
|