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] 2
|
2
|
PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo
|
on: June 02, 2009, 03:31:26
|
Thanks for your fast reply, my english is bad.. ;-)
No I have only one ThumbnailsMediator, I want to use this to display all of the categorys, (maybe this is the problem..). It has a viewComponent: popupThumbnails.
If I change category first I use my method to remove all thumbnails > popupThumbnails.removeAll();
After it I am listening to NEW_ASSET_AVAILABLE notification, and if a new asset is available > popupThumbnails.addItem(..
but if I change back to the previous category, i can't use this notification because this notification will not fire again, because this assets are already loaded somewhere
|
|
|
3
|
PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo
|
on: June 01, 2009, 04:14:11
|
Just one more.. ;-)
I have a mediator (ThumbnailsMediator.as) that is for viewing small thumbnails of photos from the current category. So if you change category, there will be showed another thumbnails. In this mediator I use StartupManager.NEW_ASSET_AVAILABLE - notification and a command popupThumbnails.addItem( ((note.getBody() as IAsset).data) as DisplayObject ); to add new items to the view. It's okey..
if i change category new thumbnails will be loaded and new_asset_available notification willl fire.. but if I change back to the previous category, i can't use this notification because they are already loaded. what do you think? what can I do in this situation?
thanks!
|
|
|
4
|
PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo
|
on: May 22, 2009, 09:55:19
|
THANKS! I make a copy of the original LoadAssetGroupCommand, now I called it LoadAssetGroupAsyncCommand
and looks like: var prevProxy:StartupResourceProxy; for ( var i:int=0; i < groupOfUrls.length; i++ ) { var url :String = groupOfUrls; if ( facade.hasProxy( url )) { sendNotification( StartupManager.URL_REFUSED_PROXY_NAME_ALREADY_EXISTS, url, groupId ); } else { var asset :IAsset = assetFactory.getAsset( url ); var px :IStartupProxy = new AssetProxy( groupPx, url, asset ); facade.registerProxy( px ); var rAssetProxy:StartupResourceProxy = makeAndRegisterStartupResource( url , px ); if(prevProxy!=null)rAssetProxy.requires = [ prevProxy ]; prevProxy = rAssetProxy; } }
|
|
|
5
|
PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo
|
on: May 20, 2009, 07:30:23
|
just one more question :-)
i am loading small thumbnails LoadAssetGroupInstructions, In groupOfUrls:Array i defined thumnails url's, but the loading sequence is different from groupOfUrls. Is there any sollution for this? To sequence the loading?
I use this command when new asset is available: case StartupManager.NEW_ASSET_AVAILABLE: popupThumbnails.addItem( ((note.getBody() as IAsset).data) as DisplayObject );
That's ok, but I need more information about thumbnails not just pure bitmap data. How can i send and receive other paramaters about assets? Like id, name, url, comment... ?
thanks!! crypt
|
|
|
6
|
PureMVC Manifold / Standard Version / How to make a SLIDESHOW?
|
on: May 20, 2009, 02:27:35
|
Please help, here are my ideas and problems :-) so far
MEDIATORS: ThumbnailsMediator > display thumbnails for current album PictureMediator > display current image
PROXY: EntityProxy > gets one albums data from AMFPHP, no bitmap data, just an array of urls, names, ids..
SlideShowProxy > store albums data, slideshow timeing, play, pause.. and sends notification to ThumbnailsMediator if new thumbnails reference are avaiable, and to PictureMediator to show a new picture.
but where to use StartupManager's assetloader? Currently i use it in mediators, for ex. ThumbnailsMediator get notification from SlideShowProxy, if new thumbnails reference are avaiable mediator send a notification to LoadAssetGroupCommand, with thumbnails url's addresses. But i think it's not a good sollution because bitmap datas should be in SlideShowProxy?
But there are timeing isues too, if I change to a new album, first i should load thumbnails and after it first, second...n pictures, or if someone clicks meanwhile on a thumb, I should stop loading pictures and load the requested one.
Thanks! crypt
|
|
|
11
|
PureMVC Manifold / Demos and Utils / Subcommands with different Inote
|
on: May 10, 2009, 03:12:02
|
Hi!
I have created a PageChangeCommand (AsyncMacroCommand) with 2subcommand:
addSubCommand( PageHideCommand ); addSubCommand( PageShowCommand );
I would like to hide the current page, and if it is finished, show the next page.
PageShowCommand on execute command: var page:Page = facade.retrieveMediator(note.getBody() as String).getViewComponent() as Page; page.showEffect();
PageHideCommand on execute command: var page:Page = facade.retrieveMediator(note.getBody() as String).getViewComponent() as Page; page.hideEffect();
But the notification is the same in the 2subcommand...
I use this 2 command (pagehide, pageshow), as standalon command elsewhere in application too.
how can i do this? thanks!
|
|
|
13
|
PureMVC Manifold / Standard Version / Re: FlexBuilder and embedded swfAssets in AS3 projects
|
on: March 26, 2009, 05:16:44
|
Yes, I read that too, but David Daeredt wrote there are better sollutions with Ant. I have found one, that is not completed yet. You should only edit one config file, and after it rubby on rails gem and Ant together will generate your main project files (directories, main.as, facade, startupcommand, events) and after it you can add mediators, proxys etc. I have added some extra functions to it: now it can generate:
- index.html + swfobject, expressinstall, swfaddress - generated flexbuilder config files, - setup your build directory, etc.. - some ftp feature will be good to, from a config file you can add your server ip/login/pass and you can publish it out with just one click, after it a automated email is sent to a client.. :-)
|
|
|
|
|
|