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  PureMVC Manifold / Bug Report / Re: [ NOT A BUG ] View.as for() loops on: September 25, 2009, 10:10:12
hi cliff,

That's what I though but ++i doesn't miss first (or last) loop and apprently is slightly more optimal?

:
for (var i:int = 0; i < 10; ++i) {
trace(i)
}

also apprently using int instead of Number in loops has benifical results (perticually for Flash 10):
http://gskinner.com/talks/quick/#10

we're prob only talking about small loops here so this will may not have an effect but wanted to mention it after the talk ;)
2  PureMVC Manifold / Bug Report / [ NOT A BUG ] View.as for() loops on: September 23, 2009, 07:08:00
hi Cliff,

This isn't a bug but after attending Grant Skinners talk at FOTB. There are some small optimisations you could make to the View.as

:
for (var i:Number = 0; i < observers_ref.length; i++) {
observer = observers_ref[ i ] as IObserver;
observers.push( observer );
}

to

:
var len:int = observers_ref.length
for (var i:int = 0; i < len; ++i) {
observer = observers_ref[ i ] as IObserver;
observers.push( observer );
}

i.e using int instead of Number, moving the length calculation out of loop, using ++i instead of ++i

could go a little way to helping with large apps... Hope all's well, thanks paddy ;)


3  Announcements and General Discussion / General Discussion / finding out framework version on: November 07, 2008, 02:47:19
hi Cliff,
hope all's tickerty-boo. I was trying to update a few old flash projects to latest framework. The problem is I've lost track of which versions the projects are using ;( some are using 2.0.1, 2.0.3, 2.0.4 (I think). I can't find anything like 'var PureMVC.VERSION;' any chance of adding one for the future? or adding a comment into the classes by copywrite (auto gen?). best paddy ;)
4  Announcements and General Discussion / General Discussion / Re: PureMVC & State Managment (aka Slide) on: June 22, 2008, 09:46:27
One step at a time it the way to go! ;) Do you know what, I've never got round to creating a FB template for it. I'm sure there is one out there somewhere though. Infact - googled:
http://olegflex.blogspot.com/2008/06/swfobject-2-flex-template.html

At the mo I just keep on editing the default index.template when I create a new project and have never had probs with it... p;)

5  Announcements and General Discussion / General Discussion / Re: PureMVC & State Managment (aka Slide) on: June 22, 2008, 05:06:49
I had a sneaky suspicion u where after you're post on the swfaddress mailing list ;) swfaddress is great. I'm still trying to figure out how to integrate it in a different way though. For complex apps I don't like so much logic having to pass through the swfaddress eventhandling. also the way we develop with 'feature driven' development. I'm not keen that I have to bake in swfadress functionality from the get go. i.e I've tried to find ways to have it as a bolt on so the app will work with or without. We've had some success but we had to edit the swfaddress code so you can 'silently' update the address bar without it broadcasting an event. I don't like editing open source code though and as yet haven't got round to convincing asual to integrate a feature like this... ( btw swfoject is great too ;) ) p;)
6  Announcements and General Discussion / General Discussion / PureMVC & State Managment (aka Slide) on: June 22, 2008, 02:12:56
hi Cliff,

Peter Hall has just released Slide. http://code.google.com/p/flex-slide/ . He's address some really interesting issues to help with state management from a uri. there's a great debuging tool too. Unfortunately he doesn't think it will work with PureMVC as he's taken a differnent MVC approach;( however I'd be interest to hear if you feel some of the concepts can be intergrated. there are a few posts on his blog here:

http://www.peterjoel.com/blog/

I'll let u know when his LFPUG presentation video is put up... At the moment there aren't many docs on the framework so it's prob going to be hard to get to grips with but I'd keep an eye on it...  cheers paddy ;)
7  Announcements and General Discussion / Public Demos, Tools and Applications / Re: LFPUG PureMVC presentation video with examples on: February 19, 2008, 03:51:45
hey Cliff, would be happy to help with this ;)
8  Announcements and General Discussion / Public Demos, Tools and Applications / LFPUG PureMVC presentation video with examples on: February 17, 2008, 08:04:34
For anyone who's interested here's a link to the presentation I gave at London Flash Platform User Group on 31st Jan:

http://www.lfpug.com/puremvc/

There are prob a few things I could claify so feel free to comment. 
Thanks for help cliff ;)
Pages: [1]