total execution time: 2381 ms
memory usage: 5924 kb
NOW. Remove the [Bindable] property from the RGB class and launch again the test script. See at the output console and the new results are:
total execution time: 236 ms
memory usage: 2720 kb
[Bindable]
public var prop1:String;
por
[Bindable(event="prop1ChangeEvent")]
public function get prop1():String{}
public function set prop1(value:String):void{}
poderá fazer uma grande diferença.
--
João Fernandes
Adobe Certified Expert
Adobe Community Expert
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)
| Falando em RSL, no Flex 4 os RSL vem assinado digitalmente e se a data estiver errada não carrega a app. |
Eduardo Kraus Desenvolvedor eduard...@gmail.com blog.mxml.com.br www.twitter.com/EduardoKraus |
|
Com Embed faz assim: [Embed(source="images/png/16x16/add.png")] public const addIcon:Class; Lembre-se, constantes não podem ser alteradas. Também não precisam de Bindable.
|
Eduardo Kraus Desenvolvedor eduard...@gmail.com blog.mxml.com.br www.twitter.com/EduardoKraus |