[flexcoders] Re: Center Vertically Alert control based on html visible area

2012-04-12 Thread kuldeep_antil
Did you get the answer for this... ??? how did you finally achieved this? I am stuck in the same problem. Thanks, Kuldeep --- In flexcoders@yahoogroups.com, ivan reversible_82@... wrote: Hi guys, first thanks for all. Here is the thing... I'm trying to center vertically an Alert control,

RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Gordon Smith
Doing it in the 'initialize' event seems like the right way to do it. The 'initialize' event still occurs before the LayoutManager has sized and positioned the children. But if you wait until creationComplete() the LayoutManager has already laid out the children and calling setStyle()will

Re: [flexcoders] Fonts and localization

2012-04-12 Thread Alex Harui
I’m not an expert in Asian fonts, but my understanding is that the TextLine font rendering, regardless of language, is trying to be more accurate in terms of proportions of character details, and attempts to use anti-aliasing and half-pixels to do it. Some folks think the old way looks better

Re: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Alex Harui
The doc is assuming you are calling setStyle on the component dispatching the event, not its children. Why aren’t you using states for this? On 4/11/12 3:40 PM, flexwdw flex...@yahoo.com wrote: So, I've run into this before but I don't recall it being the headscratcher it has become

[flexcoders] Re: setStyle, preinitialize and initialize

2012-04-12 Thread flexwdw
Thanks Gordon for the explanation, that makes sense. Alex, in general, we have had quite a bit of problems using states in the 3.x stuff. In short, we banned it because of the maintenance problems it caused (and a couple other reasons). That said, this is one of the places it would be more

[flexcoders] Adding stroke to text or bitmap at runtime

2012-04-12 Thread dorkie dork from dorktown
How would you add a stroke to dynamic text at runtime? If that's not possible how would you add a stroke to a bitmap (snapshot of text)?

[flexcoders] Error on actionscript state change using RemoveChild

2012-04-12 Thread DancesWtihElves
I have an actionscript component (a View) with a number of states defined in the following manner: var stateDefault:State = new State(); stateDefault.name = DefaultState; stateDefault.overrides = new Array();// array of IOverride states.push(stateDefault); stateDefault.overrides.push(new

Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-12 Thread Alex Harui
In Spark controls, you can add children to the TextLine like a sprite. On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: How would you add a stroke to dynamic text at runtime? If that's not possible how would you add a stroke to a bitmap

Re: [flexcoders] Error on actionscript state change using RemoveChild

2012-04-12 Thread Alex Harui
I think you can make your own RemoveElement state and push it instead of RemoveChild. On 4/12/12 3:40 PM, DancesWtihElves ka...@hartleys.net wrote: I have an actionscript component (a View) with a number of states defined in the following manner: var stateDefault:State = new State();