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 / Public Demos, Tools and Applications / Re: Moonlighting - My first PureMVC website: AS3, Papervision, and a lil SWFAddr on: May 09, 2008, 07:03:49
Thanks for the replies fellas.

Not wanting to have a go at your work, but to rather to have the discussion ...

The way I see it is that the state of the application is something else and the URL/Title merely another representation of that state.

I have not got too far in what I am doing but I now have a decent structure working injecting values from the page into swf, and translating it back to the browser as a URL. 

I used your suggestion but just had my ExternalInterfaceMediator observe for the ApplicationFacade.REQUEST_URI notification and then run requestURI() which I made private so that the only way this can happen is through the notification.

I have just spent the last 5 min clicking back and forward in my browser to proving it works!!!  What a little kid I am!!! AS3 and  PureMVC have made me addicted to programming again.. :)

2  Announcements and General Discussion / Public Demos, Tools and Applications / Re: Moonlighting - My first PureMVC website: AS3, Papervision, and a lil SWFAddr on: May 09, 2008, 02:43:12
First of all thanks for posting this shauno, this is helping get up to speed with SWF Address from inside PureMVC sharpish.  It is always nice to have the benefit of somebody else's hindsight!!

I had a command called RequestURICommand, and anything that wanted to navigate or change the state of the app had to send off a notification called REQUEST_URI (which would fire off RequestURICommand) passing an array of URI Segments. The command invoked a method called requestURI() on my URIProxy (again, passing the requested URI segments through).

I am down with all of this except I have a ExternalInterfaceMediator as I am treating the HTML as another View Component.  At the moment this is handling which screen (item on the view stack) should be the first one based on a value from within the Javascript on the page.  I have everything working fine, deferred instantiation etc (a result).  SWF Address is the next step and it would make sense to put requestURI() inside the same Mediator.  You have yours in a Proxy though. 

Any insight as to the decision to put it in a Proxy and not a Mediator?  Am I making too much of a fuss about it?  I am trying to build up a set of classes that I can reuse so want to get it right, but I am new to patterns.

Thanks

Gags
3  Announcements and General Discussion / Architecture / Re: ViewStacks, Mediators and Deferred Instantiation on: April 29, 2008, 10:33:24
Quick note to say thank you very much Cliff.  I have been working through a lot of the examples on here and have learnt about all I need, to be productive, and hopefully profitable, with Flex and PureMVC.

All thanks to posts like these. 

Thanks once again.

Pages: [1]