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] 2
1  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: June 02, 2009, 06:50:57
okey! fine! thanks!
now I can go on! :-)
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
7  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: May 19, 2009, 03:16:38
Thanks! It's help a lot! Meanwhile i hacked the files you mentioned, but the sollution you prefer is much more elegant! I would go that way. Thanks for fast reply!
8  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: May 18, 2009, 08:18:54
Hi Folks!
I am making a photo viewer app in pure flash environment with puremvc,
I have a problem loading multiple thumbnail jpegs using assetloader: Type was not found or was not a compile-time constant: UIComponent... this utility in only for flex?

thanks
C
9  PureMVC Manifold / Demos and Utils / Re: AsyncCommand - A PureMVC / AS3 Utility on: May 11, 2009, 01:13:12
thanks! good idea! :-)
10  PureMVC Manifold / Demos and Utils / Re: AsyncCommand - A PureMVC / AS3 Utility on: May 10, 2009, 11:01:18
so the main question is, can I pass different notifications to subcommands?
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!
12  PureMVC Manifold / Standard Version / Re: FlexBuilder and embedded swfAssets in AS3 projects on: March 26, 2009, 01:06:59
And why do you use flash ide for compiling? I think flexbuilder (or flashdevelope) is much more better for this task and for debugging.
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.. :-)

14  PureMVC Manifold / Standard Version / Re: FlexBuilder and embedded swfAssets in AS3 projects on: March 26, 2009, 01:31:31
Thanks Cliff!
And thanks for puremvc, it's a great framework! ;-)

Only one thing is missing for me, a great code-editor for it ! :-) Can you suggest something? Plugin for Flexbuilder?
I have made some automatization in ant..
15  PureMVC Manifold / Standard Version / Re: FlexBuilder and embedded swfAssets in AS3 projects on: March 20, 2009, 06:35:03
Thanks! If I would like to create a "SpaceShip" view, I should create a mediator for it and a SpaceShip.as (view component).

In SpaceShip.as I can use to embed an asset with a library like this ?
http://www.tink.ws/blog/files/as3/LibraryExample/libraryExampleSource/

and after it in SpaceShip.as I should use addchild(mylittlespaceship) :-)
that's all?

Because I have one swf with many assets in it, would it be better to use tink's library in a proxy? from where can I access anytime all the library ellements in one place?

sorry if I am not clear, but my english is not the best ;-)
Pages: [1] 2