RE: [flexcoders] Localization in Actionscript file

2012-11-06 Thread Gordon Smith
Not able to achieve this. Why not? One simple solution is just to have a resource in your .properties file that looks like this: ComboList=Item 1,Item 2,Item 3 Use getString() and split() to turn it into the array [ “Item 1”, “Item 2”, “Item 3” ] that you can use as the dataProvider of the

[flexcoders] RE: Syntax - Package

2012-07-23 Thread Gordon Smith
No. The braces are required. Gordon Smith, Adobe compile team From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Davidson, Jerry Sent: Friday, July 20, 2012 6:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Syntax - Package We've all seen

RE: [flexcoders] setStyle, preinitialize and initialize

2012-04-12 Thread Gordon Smith
()will force another layout. Gordon Smith, Adobe From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of flexwdw Sent: Wednesday, April 11, 2012 3:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] setStyle, preinitialize and initialize So, I've run into this before

RE: [flexcoders] Exiting from a Flex app

2012-01-26 Thread Gordon Smith
I think you can call flash.net.navigateToURL() to change the browser page. When you change the page, the instance of the Flash Player playing the old page will get terminated. - Gordon Smith, Adobe From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dan M Sent

RE: [flexcoders] Re: date problem?

2012-01-13 Thread Gordon Smith
ECMAScript did it this way and ActionScript was trying to follow ECMAScript. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of John Fletcher Sent: Friday, January 13, 2012 6:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: date problem?

RE: [flexcoders] You are the product

2011-12-16 Thread Gordon Smith
I don't think there is a JIT inside (maybe I am wrong), so each instruction is decoded and emulated on the native CPU. The ActionScript 3 Virtual Machine in Flash Player does use a JIT. Gordon Smith, Adobe From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf

RE: [flexcoders] help with a repeater

2011-10-07 Thread Gordon Smith
() method to get the item in the dataProvider that created it. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gustavo Duenas Sent: Friday, October 07, 2011 5:28 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] help

RE: [flexcoders] help with a repeater

2011-10-07 Thread Gordon Smith
of them. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gustavo Duenas Sent: Friday, October 07, 2011 9:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] help with a repeater Thank you my friend, you are really good

RE: [flexcoders] Space character in additional compiler arguments

2010-08-26 Thread Gordon Smith
I would expect single/double quotes to work. If they don't, I think you should file a bug. One more thing to try in the meantime is putting a backslash in front of the space. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

RE: [flexcoders] Re: FB4: Looping thru itemrenderers

2010-08-25 Thread Gordon Smith
, because they may not exist yet. Item renderers get created on demand as items scroll into view. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sdl1326 Sent: Wednesday, August 25, 2010 9:48 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Aspects of functional programming in ActionScript

2010-08-20 Thread Gordon Smith
I think using const for local variables that don't change is a good idea. I wish we had done it throughout the framework. In the future, it might allow the ActionScript compiler to do better optimization. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Gordon Smith
I think you're right that you can't find out at runtime that 'bar' was typed as IBitmapDrawable. But using IBitmapDrawable as a type annotation does ensure that it gets compiled in unless you deliberately exclude it. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] Unicode Characters

2010-06-08 Thread Gordon Smith
But you don't HAVE to use embedded fonts. You could just specify some standard Japanese device font. What problem are you having with Japanese text? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Andriy Panas Sent: Tuesday

RE: [flexcoders] Event before preinitialize

2010-06-03 Thread Gordon Smith
I don't think so. How early do you need it? Why isn't preinitialize early enough? - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dorkie dork from dorktown Sent: Thursday, June 03, 2010 12:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] init, creationcomplete and other events

2010-05-19 Thread Gordon Smith
From the ASDoc for these events: preinitialize: Dispatched at the beginning of the component initialization sequence. The component is in a very raw state when this event is dispatched. Many components, such as the Button control, create internal child components to implement functionality;

RE: [flexcoders] textInput - Flex 4 vs. Flex 3

2010-05-19 Thread Gordon Smith
It should work. Exactly what problem are you having? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tex_learning_flex Sent: Wednesday, May 19, 2010 7:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] textInput - Flex 4

RE: [flexcoders] Limit to number of states in a Flex application?

2010-05-18 Thread Gordon Smith
Is there a limit to the number of states in a Flex application? Not that I'm aware of. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Joel Sent: Saturday, May 15, 2010 8:52 PM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] init, creationcomplete and other events

2010-05-18 Thread Gordon Smith
preinitialize - before child components are created initialize - after children are created, but before component undergoes layout creationComplete - after layout Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Angelo Anolin

RE: [flexcoders] Re: Flex Events

2010-05-14 Thread Gordon Smith
You can assume that anything not documented as being asynchronous is synchronous. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of itaid1 Sent: Friday, May 14, 2010 9:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re

RE: [flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Gordon Smith
I would just use a RegExp to replace \r and \n with nothing or with a space. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Wednesday, May 12, 2010 11:39 AM To: Google/Yahoo Groups Subject: [flexcoders] Best way

RE: [flexcoders] Updating Static vars

2010-05-11 Thread Gordon Smith
Is is possible to update all the variables that are affected by a change to the affiliate? If you make them static getters rather than static vars, they can return something different every time you access them. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] Implement question

2010-04-28 Thread Gordon Smith
scheduling algorithms. If you had a Car class that implemented both ICarbonEmitter and IVehicle, then either library could work with an instance of Car. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dan Pride Sent: Wednesday, April 28

RE: [flexcoders] Re: Can someone rewrite this...

2010-04-19 Thread Gordon Smith
PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Can someone rewrite this... Gordon: that solution (the age switch) is what i proposed before, in the fisrt reply, :D PD: Adobe Flex SDK Team?, wow!, nice work adobe! :D 2010/4/16 Gordon Smith gosm...@adobe.commailto:gosm

RE: [flexcoders] Question on TextInput

2010-04-19 Thread Gordon Smith
Or use an mx:NumberValidator and specify the minValue and maxValue. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: Monday, April 19, 2010 3:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders

RE: [flexcoders] Re: Can someone rewrite this...

2010-04-16 Thread Gordon Smith
, but it would probably execute slightly slower. Finally, if the age groups were more sensible so that each one contained 3 ages, then you could just do something like int(age/3) + 1. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

RE: [flexcoders] Handler functions convention

2010-04-05 Thread Gordon Smith
); } The attribute value is code that becomes the body of the handler. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mike Chang Sent: Saturday, April 03, 2010 10:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Handler

RE: [flexcoders] what is the method in mx script for declaration....as fx:declarations

2010-04-05 Thread Gordon Smith
Can you please restate your question? I'm not sure what you're asking. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gogineni Sent: Saturday, April 03, 2010 10:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] what

RE: [flexcoders] Can't get properties to compile?

2010-04-05 Thread Gordon Smith
This step is necessary if you are writing attributes like label={resourceManager.getString('MyApp', 'someResource') But I don't think it is necessary if you use the @Resource() compiler directive: label=@Resource(bundle='MyApp', key='someResource') However, unlike the databinding expression,

RE: [flexcoders] Re: Is it a ValueObject, or is it a String.

2010-03-30 Thread Gordon Smith
The 'is' operator should definitely work. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Laurence Sent: Saturday, March 27, 2010 2:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Is it a ValueObject

RE: [flexcoders] How can i localize and internationalize a flex application

2010-03-24 Thread Gordon Smith
If these folders exist, then I'm not sure what's causing the unable to open errors. Rob, have you heard of this problem before? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Thomas Silvester Sent: Wednesday, March 24, 2010 12

RE: [flexcoders] From your own experience how long does it take to learn AS3?

2010-03-24 Thread Gordon Smith
breakpoints, inspect the loop counter and the sum, etc.? You're likely to succeed if you take baby steps and have patience. And ask questions when you get stuck! Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Clark Stevenson

RE: [flexcoders] WHO IS RESPONSIBLE???

2010-03-22 Thread Gordon Smith
My understanding is that none of Adobe's Creative Suite applications support being installed on a case-sensitive Mac file system. The Flex team was unfortunately unable to get this restriction relaxed when Flash Builder joined the Creative Suite. Gordon Smith Adobe Flex SDK Team From

RE: [flexcoders] How can i localize and internationalize a flex application

2010-03-19 Thread Gordon Smith
You probably just need to create fr_CA and de_CH subdirectories inside of frameworks/locale so that the resource SWCs for these locales can be created there. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Thomas Silvester

RE: [flexcoders] DateField month's name

2010-03-19 Thread Gordon Smith
The month names are pulled from localized resources according to the ResourceManager's localeChain. If you set resourceManager.localeChain = [ fr_FR ] then the month names should be in French. Are you using the ResourceManager to localize your interface for various locales? Gordon Smith Adobe

RE: [flexcoders] Is there an internal build number?

2010-03-16 Thread Gordon Smith
Most Flex framework classes have an mx_internal version string similar to this: mx_internal static const VERSION:String = 4.0.0.13827; Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent: Tuesday, March 16

RE: [flexcoders] Default parameters in function

2010-03-11 Thread Gordon Smith
Yes, this should work. I can't reproduce your problem. Can you post a tiny but complete app that demonstrates the problem? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mike Chang Sent: Wednesday, March 10, 2010 2:42 PM

RE: [flexcoders] String to object reference?

2010-03-09 Thread Gordon Smith
You can access the properties of any object by name, using square-bracket notation. For example, o.p can be written o[p]. In this case, the relevant object is 'this', so you want this[california] this[california + _over] Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] Detecting Events in Flex

2010-02-19 Thread Gordon Smith
function is mx_internal and therefore undocumented and subject to change or removal without warning. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent: Friday, February 19, 2010 10:26 AM To: flexcoders

RE: [flexcoders] Is there a way to enumerate all of the available styles in CSSStyleDeclaration?

2010-02-05 Thread Gordon Smith
. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dmitry Sent: Friday, February 05, 2010 11:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is there a way to enumerate all of the available styles in CSSStyleDeclaration

RE: [flexcoders] Localization problems mainly on Macs - Cannot switch to second input Language

2010-02-01 Thread Gordon Smith
: Follows history from previously (slightly hijacked thread) Thanks Gordon, I will open a new Thread On Fri, Jan 29, 2010 at 2:09 AM, Gordon Smith gosm...@adobe.commailto:gosmith%40adobe.com wrote: I'm not aware of this particular problem, but I'll ask a Player engineer who might know what's

RE: [flexcoders] Re: Pointers

2010-02-01 Thread Gordon Smith
textInput2:TextInput = textInput2; you haven't created two TextInput instances; you have made two variables refer to (point to) the same TextInput instance. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dan Pride Sent

RE: [flexcoders] Sort function does not work with turkish characters

2010-02-01 Thread Gordon Smith
collation routines, as Gregor said. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregor Kiddie Sent: Monday, February 01, 2010 7:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Sort function does not work

RE: [flexcoders] Flex Builder 3 - A little to be desired

2010-02-01 Thread Gordon Smith
Have you tried the beta of FlashBuilder 4? (FlexBuilder was renamed to FlashBuilder.) http://labs.adobe.com/technologies/flashbuilder4/ Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Lee Jenkins Sent: Monday, February 01

RE: [flexcoders] localization

2010-01-28 Thread Gordon Smith
Flex's mx.formatters.CurrencyFormatter has various properties that you can set, such as currencySymbol. By default, the currencySymbol comes from a locale-dependent resource in the ResourceManager (the currencySymbol resource in the SharedResources bundle). Which locale is used depends on the

RE: [flexcoders] localization

2010-01-28 Thread Gordon Smith
I'm not aware of this particular problem, but I'll ask a Player engineer who might know what's going on. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Thursday, January 28, 2010 3:49 PM To: flexcoders

RE: [flexcoders] Re: Quick Question?

2010-01-21 Thread Gordon Smith
There is no way for these properties to be correct until the image has been loaded. So to get the correct values, you probably need to wait for a 'complete' event from the Image. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

RE: [flexcoders] flash player 10 problem for Flex textinput in Chinese

2010-01-14 Thread Gordon Smith
What control are you using? mx:TextInput? s:TextInput? - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bsyyu Sent: Tuesday, January 12, 2010 9:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flash player 10 problem for Flex textinput in

RE: [flexcoders] flex 4 text styling

2010-01-14 Thread Gordon Smith
Flash Player 10 introduced a new text system known as FTE (the flash.text.engine classes). It also continues to have the old TextField class. So there are basically two text systems, with their own ways of doing text formatting. They have some formats in common, but each also has formats of

RE: [flexcoders] Flex4: getChildById or getElementById

2010-01-14 Thread Gordon Smith
You can write code like if (mycomponent in this) { this[mycomponent].doSomething() } to avoid an FTE with mycomponent does not exist. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ondina F Sent: Thursday, January 14, 2010 3

RE: [flexcoders] Question about 'copyLocale'

2010-01-12 Thread Gordon Smith
I don't beleve there is any requirement for dstLocale to be related to srcLocale. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tungchau81 Sent: Monday, January 11, 2010 5:09 PM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] how to use stage in mxml

2010-01-06 Thread Gordon Smith
dispatches an applicationComplete event. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Wednesday, January 06, 2010 7:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to use stage in mxml I try

RE: [flexcoders] Testing for XML equality

2010-01-06 Thread Gordon Smith
This is likely to be rather slow, but if you really need to do a recursive comparison of XML objects, it's probably reasonable. I don't know of any built-in operator or method that does deep equality. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] Testing my understanding of Flex

2010-01-06 Thread Gordon Smith
compile without using Flex Builder, such as with the mxmlc Ant task or the mxmlc command line tool. You're correct that if you don't use MXML then [Event] and [Style] metadata is irrelevant. But other metadata like [Embed], [ResourceBundle], and [AccessibilityImplementation] is. Gordon Smith

RE: [flexcoders] Question about flex source

2010-01-04 Thread Gordon Smith
with /**, and does special processing on attributes like @eventType, @param, and @result inside these comments. We adopted this convention from how JavaDoc works. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Aaron Hardy Sent: Monday

RE: [flexcoders] mx.controls.Text

2009-12-22 Thread Gordon Smith
the text, they won't be correct because the LayoutManager hasn't run a validation pass (i.e., commitProperties(), measure(), and updateDisplayList() haven't executed). But if you wait for an updateComplete event, they will be correct. Gordon Smith Adobe Flex SDK Team From: flexcoders

RE: [Spam] [flexcoders] Re: getters before setters

2009-12-17 Thread Gordon Smith
As far as I know, the setter never auomatically calls the getter. It certainly shouldn't, since the getter could have some undesirable side-effect that you wouldn't want happening in the setter. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] getters before setters

2009-12-16 Thread Gordon Smith
I'm pretty sure that this ordering is just a convention. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent: Wednesday, December 16, 2009 8:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] getters

RE: [flexcoders] using system fonts in Flex

2009-12-09 Thread Gordon Smith
Given a use-case involving Flash running in IE7 on a Windows OS, is it safe to assume that device fonts in the context of this thread refers to any font installed on the Windows client machine? That's right. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] Question about getting the type of item / component with drag and drop

2009-12-09 Thread Gordon Smith
1. if (dragEvent.currentTarget is Panel) 2. currentTarget is generically typed as Object, which doesn't have an addChild() method. But if you have already checked that the dropTarget is a Panel, it's safe to do a cast: Panel(dragEvent.currentTarget).addChild(...); Gordon Smith Adobe Flex SDK

RE: [flexcoders] using system fonts in Flex

2009-12-08 Thread Gordon Smith
doing, as opposed to c = a + b. For another thing, I think with device fonts the Player doesn't just grab glyphs and render them... I think it uses the OS to render them. So if the OS doesn't have rotation APIs, it can't rotate them. Gordon Smith Adobe Flex SDK Team From: flexcoders

RE: [flexcoders] am a newbie , can somebody explains to me this simple For loop statement?

2009-12-04 Thread Gordon Smith
an expression like i++ to increment the loop variable for the next pass. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ballai Tibi Sent: Friday, December 04, 2009 10:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] am a newbie

RE: [flexcoders] Inline functions and Anonymous

2009-12-03 Thread Gordon Smith
I've heard that anonymous functions are significantly slower because the runtime has to create an activation frame for them. We use very few anonymous functions in the Flex framework. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com

RE: [flexcoders] Re: Change the caret in TextArea

2009-11-30 Thread Gordon Smith
If you are talking about the old MX TextInput and TextArea, they are based on the TextField class in the Flash Player. It is blinking the insertion point and you can't change what it looks like. If you are talking about the new Spark TextInput and TextArea in Flex 4, they are based on the Text

RE: [flexcoders] Re: When does 0.2 and 0.1 not equal 0.3?

2009-11-30 Thread Gordon Smith
Unfortuantely, floating-point arithmetic in most CPUs and computer languages today is based on binary fractions (1/2, 1/4, 1/8, 1/16, ...) not decimal fractions (1/10, 1/100, 1/1000, 1/1000,...). There is no ActionScript Number (or C++ double) that is EXACTLY equal to 0.1, 0.2, or 0.3 because

RE: [flexcoders] Special characters (eg. Cyrillic) TextArea

2009-11-30 Thread Gordon Smith
BTW, are you are talking about the old MX TextArea or the or new Spark TextArea? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Andriy Panas Sent: Monday, November 30, 2009 10:49 AM To: flexcoders@yahoogroups.com Subject: Re

RE: [flexcoders] Re: Is there any way to update Resource bundle dynamically?

2009-11-30 Thread Gordon Smith
The resources in a ResourceBundle CAN be modified at runtime. A ResourceBundle's 'content' property is just an Object where you can store name/value pairs for resources such as myBundle.content[foo] = bar; Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] UnicodeFFFE not working in web

2009-11-13 Thread Gordon Smith
Please file a bug against Flash Player. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of tom.pijsel Sent: Friday, November 13, 2009 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] UnicodeFFFE not working in web

RE: [flexcoders] How to test if an object contains a certain property?

2009-11-12 Thread Gordon Smith
if (item in objADGLD) Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Thursday, November 12, 2009 5:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to test if an object contains a certain

RE: [flexcoders] how can I parse this Srting in Flex

2009-10-30 Thread Gordon Smith
. But if the six elements in the string are grouped into three pairs of two, then it would obviously be less work if it were stored as Label1|url1||label2Explorer|url2||label3|url3 You could then simply split it on ||. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] Re: Performance of associative array or dictionary lookup

2009-10-21 Thread Gordon Smith
per operation.[2]http://en.wikipedia.org/wiki/Hash_table#cite_note-knuth-1[3]http://en.wikipedia.org/wiki/Hash_table#cite_note-cormen-2 Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of d9_tech Sent: Wednesday, October 21, 2009 11:46

RE: [flexcoders] cast/convert to a child class?

2009-10-19 Thread Gordon Smith
is required. You're probably thinking of Vector.Pet vs Vector.Dog. There are indeed different types, and one cannot be cast to the other. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of coder3 Sent: Thursday, October 15, 2009 3:54 PM

RE: [flexcoders] Performance of associative array or dictionary lookup

2009-10-19 Thread Gordon Smith
No, they aren't sorted. They use a storage technique called a hash table. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of d9_tech Sent: Thursday, October 15, 2009 2:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders

RE: [flexcoders] double underline on text

2009-10-19 Thread Gordon Smith
Neither TextField nor TLF support double-underlining, so you'll have to draw it yourself. In TLF (and in the new s:Label control in Flex 4) the single-underlining is drawn with ActionScript code, so you can see how they do it. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] 2 strange issues for begginer in action script ref

2009-10-19 Thread Gordon Smith
like your problem is that you're expecting Flex controls to work inside of pure ActionScript apps. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Friday, October 09, 2009 12:09 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Resources for compiling with asc.jar

2009-10-09 Thread Gordon Smith
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Resources for compiling with asc.jar Oh. Why would someone use it instead of mxmlc? Can I use mxmlc in it's place? One more question, is there any advantage to using mxmlc over asc? Thanks On Thu, Oct 8, 2009 at 4:18 PM, Gordon Smith gosm

RE: [flexcoders] Resources for compiling with asc.jar

2009-10-08 Thread Gordon Smith
asc.jar doesn't just decompile ActionScript... it also compiles it. But one normally uses mxmlc to compile ActionScript or MXML. I'm not sure whether we even document how to use asc.jar by itself. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] Re: Hot news! Adobe Opens iPhone to Flash Developers

2009-10-05 Thread Gordon Smith
There will be a MAX session on the Flex SDK and mobile devices. I don't think we're supposed to say more before that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of oneworld95 Sent: Monday, October 05, 2009 1:38 PM

RE: [flexcoders] Re: Hot news! Adobe Opens iPhone to Flash Developers

2009-10-05 Thread Gordon Smith
Hmm... it looks like it's safe to say this: http://labs.adobe.com/technologies/flex/mobile/ Gordon Smith Adobe Flex SDK Team From: Gordon Smith Sent: Monday, October 05, 2009 1:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Hot news! Adobe Opens iPhone to Flash Developers

RE: [flexcoders] ToolTipManager problem

2009-09-24 Thread Gordon Smith
Is there any other way I can get the tooltip to die after 2 seconds regardless of what mouse movements take place...? Use a Timer to call destroyToolTip(). I believe that hideDelay only affects tooltips that are automatically shown, not ones that you show with createToolTip(). - Gordon

RE: [flexcoders] truncateToFit() and concatenated Strings

2009-09-16 Thread Gordon Smith
I don't think it has a problem with concatenated Strings... that would be very surprising if it did. But I don't think it works properly with htmlText. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matthew Sent: Wednesday, September 16, 2009 3:52 PM

RE: [flexcoders] Hover Event over Text

2009-09-14 Thread Gordon Smith
With TextField-based text in MX components, I don't think this is easy. You'd probably have to use mouseMove to track the mouse within a TextField and low-level TextFIeld APIs to discover what range of characters the mouse is over. With TLF in Spark components, I think it is easier because a

RE: [flexcoders] HTML in text control

2009-09-14 Thread Gordon Smith
When you inspect dreamText.htmlText and dreamText.text, are they what you expect or are they empty Strings? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of janjohannes...@rocketmail.com Sent: Monday, September 14, 2009 10:02 AM

RE: [flexcoders] How to display bullet insted asterisk in textinput controll

2009-09-10 Thread Gordon Smith
If you are talking about mx:TextInput, you can't change the password character... mx:TextInput uses the TextField class in Flash Player, which only is capable of displaying asterisks. The new s:TextInput in Flex 4, which is based on TLF, has an mx_internal var for the password character. -

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread Gordon Smith
Yes, the Player has multiple threads. But the ActionScript Virtual Machine executes in only one of them. And the AVM executes one event handler before starting another event handler. You're not actually claiming to have proof to the contrary, are you? Gordon Smith Adobe Flex SDK Team From

RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Gordon Smith
Are there any resources that describe the internals of the Flash player? Is there a spec like there is for the Java runtime? Unfortunately, no. About the closest thing is a spec for the SWF file format. But that spec doesn't really explain how the Player loads and executes a SWF file. -

RE: [flexcoders] Race conditions when event handlers triggered from different targets

2009-08-27 Thread Gordon Smith
Yes, that is what Alex is saying. Handler B will not begin before handler A finishes. Event handlers don't get paused. Furthermore, when you (or the Player) calls dispatchEvent(), all the event handlers listening for that event execute before dispatchEvent() returns. Gordon Smith Adobe Flex

RE: [flexcoders] An Array of Class Objects???

2009-08-26 Thread Gordon Smith
Array and ArrayCollection do not enforce any kind of type checking on their elements… each element can be anything. If you need strongly-typed elements, use Vector: macList:Vector.deviceClass BTW, the convention is to start class names with a capital letter. Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] Re: Event Best Practices

2009-08-17 Thread Gordon Smith
, then the hierarchy you show isn't correct. A popped-up titlewindow is a child of the SystemManager, not a child of the TabContainer or a grandchild of the Application, and neither the TabContainer nor the Application should get a bubbled-up event from a popup. Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] Re: Event Best Practices

2009-08-17 Thread Gordon Smith
Sorry... I didn't see that Valdhor had already explained this. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Monday, August 17, 2009 2:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Event Best Practices

RE: [flexcoders] Flex Sprite Double click not working

2009-08-13 Thread Gordon Smith
You have to opt in to doubleclicks. An InteractiveObject doesn't dispatch a DOUBLE_CLICK event when it is double-clicked unless its doubleClickEnabled property is true. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sajid

RE: [flexcoders] Re: *** So you think you know ActionScript? (Read original post first) ***

2009-08-13 Thread Gordon Smith
Does anybody want to try to figure out what the E4X spec says it should do? It's certainly possible that the Player implementation of E4X is doing it wrong. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent

RE: [flexcoders] Re: *** So you think you know ActionScript? (Read original post first) ***

2009-08-13 Thread Gordon Smith
Well, the == operator produces a lot of interesting behavior. That's why there's a === operator. ☺ Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dave Glasser Sent: Thursday, August 13, 2009 4:39 PM To: flexcoders

RE: [flexcoders] Re: How to make variables persist across application

2009-08-07 Thread Gordon Smith
, but that's another lesson. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of spuy...@ymail.com Sent: Friday, August 07, 2009 11:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to make variables persist across

RE: [flexcoders] Re: How to make variables persist across application

2009-08-07 Thread Gordon Smith
LoginInfo.username = usernameTextInput.text; when the popup is closed. Static vars simply live in the class itself, not in an instance of the class. You can reference them from anywhere. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of spuy

RE: [flexcoders] how to find a dynamic object in a function?

2009-08-06 Thread Gordon Smith
property of the RadioButton that you're processing. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of coder3 Sent: Wednesday, August 05, 2009 5:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to find a dynamic

RE: [flexcoders] Instantiation of State Objects

2009-08-06 Thread Gordon Smith
, the default behavior is the same, but you can use destructon policies to say that the child should not only be removed from the display list but also freed for garbage collection. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

RE: [flexcoders] How to make variables persist across application

2009-08-05 Thread Gordon Smith
access LoginInfo.userid) or a LoginInfo instance attached to your application (so that any code can reference Application.application.loginInfo.userid). Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of spuy...@ymail.com Sent

RE: [flexcoders] Re: Question about a flex component

2009-08-04 Thread Gordon Smith
UIComponents have a visible:Boolean property which you can set to true or false. You can tell whether a Container is scrollable by checking whether its maxHorizontalScrollPosition is greater than 0. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod

RE: [flexcoders] Re: How to customize ThousandSeparator to display price in INR format

2009-07-28 Thread Gordon Smith
That's correct. Improved locale-aware formatting capabilities that will handle this case are being built for a future version of the Flash Player. But the current Flex formatters only know how to insert a thousandsSeparator every three digits. Gordon Smith Adobe Flex SDK Team From: flexcoders

RE: [flexcoders] Re: Question about a flex component

2009-07-28 Thread Gordon Smith
Use any program that can produce a GIF or PNG and draw a left-pointing and a right-pointing triangle. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of veena_kris2003 Sent: Tuesday, July 28, 2009 5:43 AM To: flexcoders

  1   2   3   4   5   6   7   8   9   10   >