Thursday, April 17, 2008

Rendering Performance

I like to set the props / layout of the component/application by overriding updateDisplayList();

However, I experience a drop of rendering speed in Flex application when the application is developed into a larger size. And I discover that the key issue was using "setStyle" everytime when the updateDisplayList() is executed.

Actually the setStyle just need to apply once after the application is initialized. So the problem can be solved after I added _init flag into the application and run the setStyle procedures only if the _init is true...

Monday, April 14, 2008

wmode on Firefox

when u set wmode in html, and the page is opened in Firefox, it will mess up your special chars input such as Chinese / German or whatever... so lame...

https://bugzilla.mozilla.org/show_bug.cgi?id=347185

https://bugs.adobe.com/jira/browse/SDK-12420

http://www.google.com/search?hl=zh-TW&rls=com.microsoft%3Azh-hk%3AIE-SearchBox&rlz=1I7GZAZ&q=firefox+wmode+bug&lr=

Wednesday, February 27, 2008

Cairngorm + Modules

There are a few notes to take care:

1) For Singleton Class like DragManager which holds data, it is better to put in ApplicationDomain as RSL.

2) While using Modules, the modulesInfo needs a differnet ID even the class is the same, i.e. new another ModuleInfo even the source is the same.

3) The "Modular" Package is adopted.

For now I didn't get ServiceLocator to work as I want. Will think of adopting the Prana framework anyway. We'll see.

Tuesday, February 19, 2008

Modular Programming

Stopped flex programming for like 2 months, I am return finally.

Well... I stopped the latest development of Flex Project: [Bast] becuz I found out the file size and codes will go eventually too large for the applicant to be efficient and fluent. I was thinking about making some component as smaller part application and load it into main application container whenever it is needed. But never figure it out... and finally I get to read part of the Modular Programming notes.

And I plan to try out the following:
1) Program modules <-- can apply framework
2) Link the Progress event against preloader of DisplayObjectContainer or ProgressBar Control

Just a simple concept, let's see if it works or not.

On the other hand, I participated in Adobe FMS3 seminar this week, seems the price of FMS3 is kinda cheap nowadays.