flexcursion

Explore the world of Flex 2.

Hey guys quick question for the performance freaks out there.

In our current application, we have a bunch of translations coming from an xml (chinese, french etc), and we load the translations at the start of the application and then set the appropriate mx:labels text property through the ID names. ie

<mx:application preinitialize="init()">

<mx:label id="titlefield" />

private function init():void
{
code="welcome"
translator.getDeferedTranslation(code,titlefield,"text");
}

getDeferedTranslation is esentially a calllater method for when the translation file is ready

Now this code is obviously binding the code directly to the view, is this a good or bad thing??
I was playing around with possiblity of of having a [Binding] var to the textfield property but i was worrying about the resources the binding tag took up, since we don't change translations on the fly.

Its breaking convention, but in your opinon is the performance gain worth it???

keep on flexing...

Share 

Add a Comment

You need to be a member of flexcursion to add comments!

Join this Ning Network

About

Juan Sanchez Juan Sanchez created this Ning Network.

Badge

Loading…

© 2009   Created by Juan Sanchez on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service