[flexcoders] What's up with the open-source Flex SDK project?

2008-02-24 Thread Gordon Smith
I've blogged about it here: http://blogs.adobe.com/gosmith/ <http://blogs.adobe.com/gosmith/> Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] array.length

2008-02-24 Thread Gordon Smith
ngth is now 3 When you use Object or Array to store name/value pairs, there is no way to count how entries you've stored, other than looping over all of them with a for-in or for-in-each loop. (Of course, you could keep track of the count yourself in another variable.) Gordon

RE: [flexcoders] Flex Open Source

2008-02-24 Thread Gordon Smith
#x27;s not a decompiler -- it can't produce AS3 or MXML source code. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Sunday, February 24, 2008 9:54 AM To: flexcoders@yahoogroups.

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-24 Thread Gordon Smith
> Of course, modifying an array would become more expensive operation, but it's still O(1) operation The overhead when modifying each element is O(1), so the total overhead you've incurred is O(n). Gordon Smith Adobe Flex SDK Team Fro

RE: [flexcoders] Re: What is the best way to compare two arrays element by element ignoring the o

2008-02-23 Thread Gordon Smith
Can you give more detail? I don't believe there is any O(1) algorithm for this. O(1) means that comparing two 100,000-element arrays would take the same time as comparing two 100-element arrays. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroup

RE: [flexcoders] Bug on IF..ELSE Condition Or What ?

2008-02-22 Thread Gordon Smith
appen as you step line by line through this code? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harry Saputra Sent: Friday, February 22, 2008 8:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] B

RE: [flexcoders] What is the best way to compare two arrayselement by element ignoring the order?

2008-02-22 Thread Gordon Smith
Yes, private methods are supposedly faster. But I haven't done timing tests myself to prove that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Friday, February 22, 2008 3:00

RE: [flexcoders] What is the best way to compare two arrayselement by element ignoring the order?

2008-02-22 Thread Gordon Smith
anonymous functions. My understanding is that they don't perform as well as class methods because they require an activation frame. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: F

[flexcoders] RE: Problem while plotting Repeater in Flex

2008-02-21 Thread Gordon Smith
From: Rajeshwar Mothe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 11:25 PM To: Gordon Smith; flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: RE: Problem while plotting Repeater in Flex Hi Gordon, I tried the piece of code driven By you, but in my case I am using VBox

RE: [flexcoders] Re: getCharBounds not working on AIR?

2008-02-21 Thread Gordon Smith
x27;ve had nothing but frustration with Flex, and I apologize for that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of b_alen Sent: Thursday, February 21, 2008 2:26 AM To: flexcoders@yahoogroups.com Subjec

RE: [flexcoders] Re: Foreign Languages?

2008-02-21 Thread Gordon Smith
The Flash Player and Flex work with Unicode text (although characters outside the Basic Multilingual Plane may not be properly supported). I suggest using UTF-8 encoding for your XML. The only modification you might need to make to your app is to use a font which has Chinese glyphs. Gordon Smith

RE: [flexcoders] Circle Canvas

2008-02-20 Thread Gordon Smith
Can you explain more what you mean by the Circle Shape Canvas? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Swamy Nathan Sent: Wednesday, February 20, 2008 11:01 PM To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com Subject: [f

RE: [flexcoders] Re: getCharBounds not working on AIR?

2008-02-20 Thread Gordon Smith
at you can let us know what we're doing wrong in a way that gets tracked. Complaints on flexcoders don't always get tracked. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of b_alen Sent: Wednesd

RE: [flexcoders] dynamic function Names

2008-02-20 Thread Gordon Smith
l> " initialize="initApp()"> This does work. Of course this is so ancient, it is really irrelevant. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of Gordon Smith Sent: Wednesday,

RE: [flexcoders] finding all textareas

2008-02-20 Thread Gordon Smith
No, you can't. This can only be used for looping over dynamic properties of dynamic classes. To loop over the children of a DisplayObjectContainer, you have to do var n:int = numChildren; for (var i:int = 0; i < n; i++) { var child:DisplayObject = getChildAt(i); ... } Gordon Smi

RE: [flexcoders] dynamic function Names

2008-02-20 Thread Gordon Smith
You can look up properties and methods by name with o[p] syntax even if o isn't an instance of a dynamic class. And I'm pretty sure that wasn't a dynamic class in 1.x. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[

RE: [flexcoders] Re: getCharBounds not working on AIR?

2008-02-20 Thread Gordon Smith
o the display list. 3. If you find yourself having to use callLater(), you're probably doing something the wrong way. In general, you should use events rather than just waiting awhile. If the framework doesn't provide the event you need, please file an enhancement request. Gordon Smith

RE: [flexcoders] Re: Example of Object.isPrototypeOf ()

2008-02-19 Thread Gordon Smith
Very clever! I didn't know that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alan Shaw Sent: Monday, February 18, 2008 7:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Examp

RE: [flexcoders] Localized library

2008-02-19 Thread Gordon Smith
Are you getting a compilation error or a runtime error? What exactly does it say? Did you use the copylocale script to create ar_SA framework resources? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] mouse api -> displayobject

2008-02-18 Thread Gordon Smith
DisplayObjectContainer has a getObjectsUnderPoint() method. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Monday, February 18, 2008 9:46 PM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] Finding objects in flex

2008-02-16 Thread Gordon Smith
Use the 'is' operator: if (field is ValidatedTextInput) Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Friday, February 15, 2008 11:31 PM To: flexcoders@yahoogroups.c

RE: [flexcoders] Re: Example of Object.isPrototypeOf ()

2008-02-15 Thread Gordon Smith
t either. (That said, we do use prototype chains to implement fast CSS style lookup with getStyle().) If you're curious about prototype-based inheritance, see http://en.wikipedia.org/wiki/Prototype-based_programming. Gordon Smith Adobe Flex SDK Team __

RE: [flexcoders] Re: Rich Text Editor

2008-02-15 Thread Gordon Smith
No, the player team hasn't disclosed either target date yet. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harald Dehn Sent: Friday, February 15, 2008 9:01 AM To: flexcoders@yahoogroups.com Subjec

RE: [flexcoders] Re: Rich Text Editor

2008-02-15 Thread Gordon Smith
x27;s compatible with the rest of the browser world. Again, no full HTML implementation is needed, just something along an HTML editor like FCKEditor. Jurgen On Feb 15, 2008, at 10:27 AM, cmalartre wrote: Hi Gordon Smith & all, I thought that the Buzzword

RE: [flexcoders] Re: Rich Text Editor

2008-02-15 Thread Gordon Smith
Astro. These libraries will give developers all kinds of abilities that TextField doesn't offer. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cmalartre Sent: Friday, February 15, 2008 8:28 AM To:

RE: [flexcoders] Re: Broadcasting event to all objects on display list

2008-02-14 Thread Gordon Smith
With that few nodes, efficiency probably isn't an important consideration. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Thursday, February 14, 2008 2:56 PM To: flexc

RE: [flexcoders] Re: Rich Text Editor

2008-02-14 Thread Gordon Smith
ay to do it since the logical word order is "word1 word2 word5 word6" in one cell and "word3 word4 word7 word8" in another cell. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Fa

RE: [flexcoders] Rich Text Editor

2008-02-14 Thread Gordon Smith
ent form (either free or for money). I suspect that there are business reasons to keep it as an Adobe-only application for awhile, but I'm just an engineer and not involved in such decisions. BTW, what does your CRM app need in a texteditor beyond what RichTextEditor currently provides? RTL supp

RE: [flexcoders] Re: Broadcasting event to all objects on display list

2008-02-14 Thread Gordon Smith
It would be unnatural to try to use the event mechanism to propogate an event to all descendants of a tree node. Use a recursive method call to accomplish this. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] problem in applying CSS programitcally

2008-02-14 Thread Gordon Smith
In MXML's CSS, foo-bar and fooBar are equivalent style names. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Duncan Sent: Thursday, February 14, 2008 9:39 AM To: flexcoders@yahoogroups.com Su

RE: [flexcoders] Example of Object.isPrototypeOf ()

2008-02-14 Thread Gordon Smith
Flex makes almost no use of AS3's old-style prototype-based inheritance; it uses the new class-based inheritance. If by "descendant" you mean "instance of", use the 'is' operator: var b:Button = new Button(); trace(b is UIComponent); // --> t

RE: [flexcoders] Re: Is the TextArea / TextField TEXT_INPUT event firing correctly?

2008-02-14 Thread Gordon Smith
Unfortunately, 'textInput' doesn't get dispatched before a deletion occurs. But 'change' gets dispatched after a deletion has occurred. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Rich Text Editor

2008-02-13 Thread Gordon Smith
> Why Adobe does not make something decent about this issue? We're working on it! Flash Player 10 ("Astro") and Flex 4 are likely to have a new text engine that will support right-to-left text and other text improvements. Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] addEventListener question

2008-02-13 Thread Gordon Smith
You should generally avoid using anonymous functions, as they're more expensive than methods. In AS3, every method is a closure. If an event handler is a method, it can access everything in the class. Gordon Smith Adobe Flex SDK Team From: flexc

RE: [flexcoders] Splitting Array Content , keyword by field content

2008-02-12 Thread Gordon Smith
You shouldn't assume that a for-in or for-each-in loop will iterate over the items in any particular order. To ensure this, use a plain 'for' loop. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID (resolved)

2008-02-12 Thread Gordon Smith
or instances of classes? Are you changing fields inside an item? Or replacing entire items? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mr_j_harris Sent: Tuesday, February 12, 2008 11:03 AM To: fl

RE: [flexcoders] DataGrid limit on amount of records or data?

2008-02-11 Thread Gordon Smith
ders] DataGrid limit on amount of records or data? Hi. I really appreciate everyones response (-: Gordon Smith wrote: > You need to determine whether you're having a problem fetching the data > from the server, or displaying the data in the DataGrid. The problem is in the renderin

RE: [flexcoders] DataGrid limit on amount of records or data?

2008-02-11 Thread Gordon Smith
You need to determine whether you're having a problem fetching the data from the server, or displaying the data in the DataGrid. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luke Vanderfluit

RE: [flexcoders] formatting text

2008-02-11 Thread Gordon Smith
Look at the substitute() method of mx.utils.StringUtil. And, in Flex 3, look at the getString() method of mx.resources.ResourceManager. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulbohnenkamp

RE: [flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID

2008-02-11 Thread Gordon Smith
mpany Adobe. Do you mean that Flex Builder's MXML editor should offer class selector names when you type styleName=" on an MXML tag? That sounds like a good idea. If you can find this as an already-filed enhancement request at http://bugs.adobe.com/flex, you should vote for it. If

RE: [flexcoders] && in binding error

2008-02-08 Thread Gordon Smith
"&" is a special character in XML and must be written as "&". Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adolfo Ruiz Sent: Friday, February 08, 2008 2:40 PM To: flexco

RE: [flexcoders] Re: is this how to use commitProperties

2008-02-08 Thread Gordon Smith
needs measure() to get called once right before the next render. Call invalidateDisplayList() in a setter if it needs updateDisplayList() to get called once right before the next render. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[

RE: [flexcoders] Array function error?

2008-02-08 Thread Gordon Smith
een created, so fileNames -- being an instance var -- is null at that time. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Shen Sent: Wednesday, February 06, 2008 1:22 PM To: flexcoders@yahoogroups.

RE: [flexcoders] ClassReference and Resource bundles

2008-02-08 Thread Gordon Smith
It looks like you don't have source-path set correctly when compiling the resource bundle. The directory containing your com directory needs to be on the source-path so that the com.pricklythiste.i18n.CountryListEN class can be found. Gordon Smith Adobe Flex SDK

RE: [flexcoders] FIXED: Problems with Components

2008-02-08 Thread Gordon Smith
BTW by convention, ids should start with a lower-case letter: gridView, not Gridview. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cobb Sent: Friday, February 08, 2008 1:15 PM To: flexcoders

RE: [flexcoders] Re: is this how to use commitProperties

2008-02-08 Thread Gordon Smith
Avoid calling invalidateXXX() inside commitProperties(), measure(), or updateDisplayList(), as this can cause a second pass through the LayoutManager to revalidate; invalidateXXX() is typically called by property setters. Gordon Smith Adobe Flex SDK Team From

RE: [flexcoders] Re: Event Propigation

2008-02-04 Thread Gordon Smith
ou do use the capture or bubble phases, you have to listen on an ancestor of the object which is dispatching the event. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brett.hitzel Sent: Monday, Februa

RE: [flexcoders] Re: The limit of [ResourceBundle] and @Embed

2008-01-31 Thread Gordon Smith
You might want to try it in Flex 3. All our energy is currently going into getting Flex 3 out the door, and I don't think we're likely to be releasing further hotfixes to Flex 2. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mai

RE: [flexcoders] Getting events from non-visual components created in actionscript?

2008-01-30 Thread Gordon Smith
Event capturing/bubbling is something that happens only to events dispatched from a DisplayObject. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Wednesday, January 30, 2008 10:08 PM

RE: [flexcoders] Getting events from non-visual components created in actionscript?

2008-01-30 Thread Gordon Smith
What do you mean by "disappears into fat air"? Did you register a listener on your object that is dispatching the event? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent:

RE: [flexcoders] Bitmap: Please, please help.

2008-01-30 Thread Gordon Smith
First, trying arranging s inside an to overlap and set their 'alpha' to something like 0.5 to make them semitransparent. Then look at drag-drop examples. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] The limit of [ResourceBundle] and @Embed

2008-01-30 Thread Gordon Smith
Are you seeing this problem in Flex 2 or Flex 3? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luke_lee1124 Sent: Tuesday, January 29, 2008 5:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders

RE: [flexcoders] Re: How to check if value exists in a return API call?

2008-01-24 Thread Gordon Smith
AS3 has an 'in' operator. I think hasOwnProperty() is really only necessary when dealing with prototype inheritance, which Flex doesn't use (except in the style prototype chain). Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Seriously, what is the 'right' way to do default styles?

2008-01-23 Thread Gordon Smith
might not... we haven't made any effort to guarantee that kind of compatibility. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, January 23, 2008 3:40 PM To: flexcoder

RE: [flexcoders] Re: Seriously, what is the 'right' way to do default styles?

2008-01-23 Thread Gordon Smith
ource bundle SWCs in Flex 3 apps. I'm afraid that I don't have any advice on how to do what you want to do. My recommendation is to produce a Flex 2 SWC and a Flex 3 SWC if you have to support Flex 2. Gordon Smith Adobe Flex SDK Team From: flexcoders@

RE: [flexcoders] Array Item Counting

2008-01-23 Thread Gordon Smith
> The array is then sorted to group identical values together. If all you're doing is counting how many times each number appears, and then determining which one appears most frequently, why are you bothering to sort the Array? Gordon Smith Adobe Flex

RE: [flexcoders] Seriously, what is the 'right' way to do default styles?

2008-01-23 Thread Gordon Smith
n view. I'm going to go slink under my desk and let others opine on how to do styles correctly in a way that will make Flex Builder happy. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smi

RE: [flexcoders] Seriously, what is the 'right' way to do default styles?

2008-01-23 Thread Gordon Smith
> the lack of definitive info on this topic is pretty amazing to me Ben, what could be more definitive than the approach that the Flex SDK team takes for its own components? You don't have to follow our lead, but I still think it counts as best practice. Flex framework SWCs, such as framework.s

RE: [flexcoders] Re: Intialize nested accordion children components on load

2008-01-23 Thread Gordon Smith
+1 Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, January 23, 2008 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Intialize nested accordion children

RE: [flexcoders] working with an array collection

2008-01-22 Thread Gordon Smith
I think you're confusing the ArrayCollection itself with the data items that it contains. An ArrayCollection has N items. It sounds like each item has a fkstate_id field. But which item in the ArrayCollection do you want to look at? You can get the ith item with _getNews.getItemAt(i). G

RE: [flexcoders] Re: text does not appear bold in mx:Text

2008-01-22 Thread Gordon Smith
I can't reproduce the problem. The following app renders properly for me. - Gordon http://www.adobe.com/2006/mxml";> [Bindable] private var foo:String = "Foo"; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On B

RE: [flexcoders] Re: addchild

2008-01-21 Thread Gordon Smith
e so! But I can't say for sure as I'm on the development team, not the documentation team, and I haven't personally looked through an entire documentation set, which is huge. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [

RE: [flexcoders] Re: addchild

2008-01-21 Thread Gordon Smith
asier to make balls move around the stage. The focus of Flex is not Flash-style animations and games, although some developers use it to create just that. Flex is really focused on building Rich Internet Applications, and we provide the most common components that are necessary to do that... things l

RE: [flexcoders] Re: addchild

2008-01-17 Thread Gordon Smith
that aren't properly covered, or intermediate-level examples that would be useful? If so, I'll pass them on to the doc team. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTE

RE: [flexcoders] Re: using an array

2008-01-17 Thread Gordon Smith
rray(); incorrects[0] = "a"; incorrects[1] = "b"; incorrects[2] = "c"; Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Thursday, January 17, 2008 11:04 PM To

RE: [flexcoders] errors in livedocs

2008-01-17 Thread Gordon Smith
> Is it just me ? No, it isn't working for me either. I'm cc'ing some folks on the documentation team. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday

RE: [flexcoders] using an array

2008-01-17 Thread Gordon Smith
You've declared an Array var which is automatically initialized to 'null' -- it isn't yet a reference to an actual Array object. You need to write var incorrects:Array = []; to initialize it to an empty (i.e., 0-element) Array instance. Gordon Smith

RE: [flexcoders] Re: addchild

2008-01-17 Thread Gordon Smith
poning trying to use Sprites-based classes. You'll make more progress, gain confidence, and then be in a better position to understand how to take advantage of Sprites later. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PR

RE: [flexcoders] Error: Call to a possibly undefined method setTextFormat

2008-01-17 Thread Gordon Smith
> I checked it and double checked it. very frustrating. . Can you please explain exactly what you saw that made you believe that setTextFormat() is a method of TextArea? If there is a documentation problem, I would like to get it fixed so that others aren't similarly confused. Gord

RE: [flexcoders] detect when a child has been added

2008-01-17 Thread Gordon Smith
r() to true. So I think your choices are either to listen on Stage, SystemManager, or Application for any of these four events on their way down to the target during the capture phase, or for Event.ADDED on these objects as it -- the only one that bubbles -- bubbles up. Go

RE: [flexcoders] inline styles

2008-01-16 Thread Gordon Smith
e.g., the low-level DisplayObject which display the label) and use TextField APIs like setTextFormat() on a range of characters. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Wednesday, Jan

RE: [flexcoders] fcsh - can it compile a batch list of files

2008-01-16 Thread Gordon Smith
Instead of typing commands at the (fcsh) prompt, you can let fcsh read commands from a file: fcsh < commands.txt Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of reflexactions Sent: Wednes

RE: [flexcoders] Re: localToGlobal X position

2008-01-16 Thread Gordon Smith
(0, 0). Its x and y coordinates give its upper-left corner in its parent's coordinate system. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Corey Smaller Sent: Wednesday, January 16, 2008 2:58

RE: [flexcoders] Dash symbol on xml tag

2008-01-14 Thread Gordon Smith
styles.style["font-family"] Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ruidsoares Sent: Monday, January 14, 2008 12:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dash symbol

RE: [flexcoders] How to use air to read Excel file?

2008-01-14 Thread Gordon Smith
ormat" and found http://sc.openoffice.org/excelfileformat.pdf Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dormousecheck Sent: Sunday, January 13, 2008 8:05 PM To: flexcoders@yahoogroups.com Subject: [

RE: [flexcoders] about flex component!

2008-01-11 Thread Gordon Smith
I'm not sure exactly what you're asking, but XML namespaces in any MXML component work exactly like XML namespaces in . For example, you could define AddressForm.mxml as ... Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] More control over datagrid? Put headings on the LHS instead of the top?

2008-01-10 Thread Gordon Smith
> of defining > columns, you define rows, and your data appears as columns instead of rows? What do you mean by "appears as columns"? A DataGrid appears as a rectangular matrix of cells. The columns can have headers. Row headers are not supported. Go

RE: [flexcoders] The 'right' way to do custom styles

2008-01-10 Thread Gordon Smith
tation of styleChanged() in UIComponent to see what you get without overriding. It has logic about when to call invalidateSize() and invalidateDisplayList() on itself and its parent. Gordon Smith Adobe Flex SDK Team -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] The 'right' way to do custom styles

2008-01-09 Thread Gordon Smith
red. You just call getStyle() to get, for exmaple, a color to pass to a drawing API. Gordon Smith Adobe Flex SDK Team -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, January 07, 2008 1:40 AM To: flexcoders@yahoogroups.c

RE: [flexcoders] Re: Non en_US locale's number/date format strings

2008-01-08 Thread Gordon Smith
artup by specifying resourceModuleURLs in the FlashVars of the HTML wrapper. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rmarples Sent: Tuesday, January 08, 2008 5:24 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] Non en_US locale's number/date format strings

2008-01-08 Thread Gordon Smith
Due to time and resource constraints, Flex 3 will localize the framework classes only for English and Japanese. I hope that we can support more locales in the next release, and that the community will help us with this task once the SDK is open-source. Gordon Smith Adobe Flex SDK Team

RE: [flexcoders] Re: Generic Sort Function for date column containing null value

2008-01-08 Thread Gordon Smith
It should help some to compute var a:Object = itemA[dataField]; var b:Object = itemB[dataField]; to start with and then work with the local variables a and b. BTW, why are you writing a function that returns a compare function, rather than simply writing a compare function? - Gordon

RE: [flexcoders] how to make numbers look digital?

2008-01-07 Thread Gordon Smith
You could draw the segments using drawing commands in the Graphics class. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coder3 Sent: Monday, January 07, 2008 3:51 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] use runtime image more than once

2008-01-07 Thread Gordon Smith
Doesn't the browser cache handle this? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joshua gatcke Sent: Monday, January 07, 2008 2:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] use runtime image more than once

RE: [flexcoders] Restarting Flex 2.01 application

2008-01-07 Thread Gordon Smith
I think you need to use navigateToURL() to reload the web page with the SWF. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Monday, January 07, 2008 10:14 AM To: flexcoders

RE: [flexcoders] FW: How can I tell length or size of object ( not array ) but object ..

2008-01-04 Thread Gordon Smith
It is probably MUCH faster to use a for-in loop to count the fields. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Friday, January 04, 2008 1:10 PM To: flexcoders

RE: [flexcoders] How can I tell length or size of object ( not array ) but object ..

2008-01-04 Thread Gordon Smith
As far as I know, you have to loop. By the way, using Object-literal syntax var o:Object = { a: "aa", b: "bb" }; produces more efficient code than what you wrote. And instead of doing var o:Object = new Object(); you should just write var o:Object = {};

RE: [flexcoders] The 'right' way to do custom styles

2008-01-04 Thread Gordon Smith
e var, a getter, and a setter. Each style only requires a little metadata. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Friday, January 04, 2008 2:54 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Setter question

2008-01-03 Thread Gordon Smith
What do you mean by defining a "set function" for the ComboBox? Can you show some code? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, January 03, 2008

RE: [flexcoders] Send event to all objects?

2008-01-03 Thread Gordon Smith
> I assume I'm going to capture a MouseEvent.CLICK on the stage You would do that only if you want to be able to click anywhere on the stage. If you are only clicking a Button, just put a click handler on the Button and have it loop over an array containing the balls you've created and call a m

RE: [flexcoders] Re: Custom Tooltips in UIComponent

2008-01-03 Thread Gordon Smith
Yes. If you're writing your custom component in AS, just set up your event handler in your constructor with addEventListener(ToolTipEvent.TOOL_TIP_CREATE, toolTipCreateHandler); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [m

RE: [flexcoders] Dynamically changing component positions

2008-01-03 Thread Gordon Smith
Assuming that the children you want to move down come after (in child index order) the one you're hiding, you could do var n:int = numChildren; for (var i:int = indexOfInvisibleControl; i < n; i++) { var child:UIComponent = UIComponent(getChildAt(i)); child.y += deltaY; } Gord

RE: [flexcoders] Re: Custom Tooltips in UIComponent

2008-01-02 Thread Gordon Smith
Handle the toolTipCreate event and create whatever kind of tool tip you want. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Wednesday, January 02, 2008 1:47 PM To: flexcoders

RE: [flexcoders] Custom Tooltips in UIComponent

2008-01-02 Thread Gordon Smith
I don't understand. UIComponents already have a toolTip property. When it is set, a tool tip automatically appears when the mouse moves over that component and stays there for a little while. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroup

RE: [flexcoders] Help with an error message

2008-01-02 Thread Gordon Smith
You haven't made otherfilenumber bindable, so {modelGeneral.otherfilenumber} is causing this warning. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Wednesday, January 02, 2008

RE: [flexcoders] setting mxml attributes in actionscript when those properties don't exist

2008-01-02 Thread Gordon Smith
ng XML attributes to specify three things which under the covers are really quite different. You're advocating hiding these differences at the AS level as well, which I think could cause more confusion than you're trying to solve. I'd be interested to hea

RE: [flexcoders] Strange compiler error

2008-01-02 Thread Gordon Smith
If you can repro this in a simple case, please file a bug at http://bugs.adobe.com/flex. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, January 02, 2008 9:00 AM To

RE: [flexcoders] Cannot access a property or method of a null object reference

2008-01-02 Thread Gordon Smith
ct --> undefined All other types --> null Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christophe Herreman Sent: Tuesday, January 01, 2008 12:15 PM To: flexcoders@yahoogroups.com Subject: Re

RE: [flexcoders] setting mxml attributes in actionscript when those properties don't exist

2007-12-21 Thread Gordon Smith
effect is component.setStyle("foo", "bar"); The programmatic way to set an event handler is component.addEventListener("foo", bar); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]

RE: [flexcoders] Re: Checking if a property exists

2007-12-21 Thread Gordon Smith
if ("test" in bla) Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, December 20, 2007 9:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Checking if

<    1   2   3   4   5   6   7   8   9   10   >