RE: [flexcoders] Re: custom Panels original size

2006-11-06 Thread Gordon Smith
'this' is always the component or application represented by the top tag in the file.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jnewport Sent: Monday, November 06, 2006 1:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re

RE: [flexcoders] Re: Shortcut for creating and dispatching events

2006-11-05 Thread Gordon Smith
You'd write       model.dispatchevent( new TextEvent(SEARCH_MACHINES, false, false, dgItems.selectedItem.machine));   But the SDK team considers the 3-line approach better practice, because it makes clear which property is getting set to what. If you have an event with a lot of prop

RE: [flexcoders] How can I DISABLE THE STUPID SPACE BAR GLOBALLY?

2006-11-04 Thread Gordon Smith
You can't turn off the KeyboardEvents that the Flash Player dispatches. But you can stop components from listening to them.   In the Button source code, I see       override protected function keyDownHandler(event:KeyboardEvent):void     {     if (!enabled)     return

RE: [S] RE: [flexcoders] Unable to build application from flex buider

2006-11-04 Thread Gordon Smith
It "resets" the project to a not-built state, including discarding any outputs from a previous build. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dkerr Sent: Saturday, November 04, 2006 9:04 AM To: flexcoders@yahoogroups.com Subjec

RE: [flexcoders] resize dataGrid using creationComplete

2006-11-04 Thread Gordon Smith
What object is null? target? target.dataProvider? resizeLarge? We'd need to know how you're setting these.   Also, there should be no need to pass a reference to the DataGrid to this method as a 'target' parameter. If the DataGrid has id="myDataGrid", then any method in the same scrip

RE: [flexcoders] container transparency does not apply to the Text children

2006-11-03 Thread Gordon Smith
I think Mark's problem is that alpha doesn't apply to system fonts. You have to use embedded fonts if you want to fade them. This is a limitation of the Flash Player.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Igor Costa Se

RE: [flexcoders] How to set skin style to null in CSS?

2006-11-02 Thread Gordon Smith
someSelector { skin: ClassReference(null) }   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Thursday, November 02, 2006 4:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set skin style to null in CS

RE: [flexcoders] Is this bad coding practice in ActionScript?

2006-11-01 Thread Gordon Smith
> I guess the compiler has a good reason for moaning otherwise. It does. The warning is intended to make developers aware that AS doesn't has function-scoped, not block-scoped. variables. When you declare a var anywhere inside a function, it's scope is the entire function, not just the { ... } blo

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-11-01 Thread Gordon Smith
> I'm confident the Apollo run time engine will be able to hook into > whatever 3D acceleration the O/S can provide. I don't believe this is an Apollo goal. If we do graphics hardware acceleration, we'd probably do it in all versions of the Flash Player. - Gordon -Original Message- Fro

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-11-01 Thread Gordon Smith
com] On Behalf Of Gordon Smith Sent: Tuesday, October 31, 2006 3:41 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe Just wondering, since I'm working on it... what features of Apollo are people most excited about?

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Gordon Smith
way to communicate with say, the serial port on the local machine, or am I thinking about this the wrong way?   Dustin Mercer   From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Gordon Smith Sent: Tuesday, October 31, 2006 3:16 PM To: [EMAIL PROTECTED

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Gordon Smith
am hugely excited about Apollo's potential.  Your work will be fomenting a revolution in software development in '07! Best regards,   g On 10/31/06, Gordon Smith <[EMAIL PROTECTED]com> wrote: Just wondering, since I'm working on it... what features

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Gordon Smith
ead we incur from the browser!  This one gives us much more room to make larger applications.   So, basically, freedom, freedom, freedom!   Dustin Mercer From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Gordon Smith Sent: Tuesday, October 31, 2006 12:41 PM

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Gordon Smith
olution in software development in '07! Best regards,   g On 10/31/06, Gordon Smith <[EMAIL PROTECTED]com> wrote: Just wondering, since I'm working on it... what features of Apollo are people most excited about?   - Gordon   __._,_.___ -

RE: [flexcoders] JUST SAY NO to creationPolicy="all" !

2006-10-31 Thread Gordon Smith
6 5:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] JUST SAY NO to creationPolicy="all" !   On 10/30/06, Gordon Smith <[EMAIL PROTECTED]com> wrote: > > I've never seen a case where it is necessary to push data into the controls before they exist. If you

RE: [flexcoders] Isn´t there any release of Adobe Apollo yet? Alpha maybe....

2006-10-31 Thread Gordon Smith
Just wondering, since I'm working on it... what features of Apollo are people most excited about?   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew D. Goodfellow Sent: Tuesday, October 31, 2006 6:15 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] JUST SAY NO to creationPolicy="all" !

2006-10-30 Thread Gordon Smith
!   Can you give me an example of "complications"?  For example I have 6 tabs in my application.   Two of the tabs load SWF files.  So in this case a user may never select the tab which loads a swf.  Is this a case to say no to creationpolicy=all? Gordon Smith said the followin

RE: [flexcoders] JUST SAY NO to creationPolicy="all" !

2006-10-30 Thread Gordon Smith
Kirby Sent: Monday, October 30, 2006 3:05 PM To: flexcoders@yahoogroups.com Cc: Matt Horn Subject: Re: [flexcoders] JUST SAY NO to creationPolicy="all" !   Gordon - Good advice.   I also assume that there are even greater savings (load time) if one of these controls uses a SWF

RE: [flexcoders] e4x expression passed as string

2006-10-30 Thread Gordon Smith
I'm not sure what you want to do. Can you give an example of what you want to pass for s, and what you would like result_txt.text to be set to? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel Sent: Monday, October 30, 2006

RE: [flexcoders] Re: JUST SAY NO to creationPolicy="all" !

2006-10-30 Thread Gordon Smith
  I know better, and I don't do it myself, and I understand why not to do it and I'm very very sorry for recommending it : ) --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > > > > > Several times a week someone co

[flexcoders] JUST SAY NO to creationPolicy="all" !

2006-10-30 Thread Gordon Smith
  Several times a week someone complains that they can't seem to set data into controls on the second, third, etc. pane of a ViewStack, Accordion, or TabNavigator because these controls don't get created until the user navigates to the pane they're on.   Inevitably there are multip

RE: [flexcoders] Re: how do i access properties of a component inside a repeater?

2006-10-30 Thread Gordon Smith
Yes, you simply loop over them. There is no easier way.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale Sent: Sunday, October 29, 2006 1:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how do i access properties

RE: [flexcoders] Re: textArea cursor position

2006-10-27 Thread Gordon Smith
eries = textArea.getTextField().getCharBoundaries(caretIndex); But when caret index is on the begining of the line Boundaries object is NULL.And I want to awoid that. -- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > The cursor blinks at the caretIndex

RE: [flexcoders] how to initialize all accordion tabs?

2006-10-26 Thread Gordon Smith
This will work but isn't a recommended technique. Please see Tracy's reply.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luis Eduardo Sent: Thursday, October 26, 2006 9:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ho

RE: [flexcoders] += operator is changing the encodings

2006-10-25 Thread Gordon Smith
You're running into a difference between an XMLList (a built-in E4X type, along with the XML type) and XMLListCollection (a Flex framework type).   If the right-hand-side (RHS) of the E4X += operator is an XML instance or an XMLList instance, it inserts children as you are expecting.

RE: [flexcoders] Why doesn't the object assignment work.

2006-10-25 Thread Gordon Smith
To answer that for sure, we'd have to see the code for your Prospect class. Did you write code to set these three properties, either in the var declaration (e.g., var sicCode:int = 3) or in the constructor? Have you stepped through the constructor?   - Gordon   From: flexcod

RE: [flexcoders] Accessing methods in nested components

2006-10-24 Thread Gordon Smith
Hello Gordon, Thanks for the hint. I will try this. I didn't know, that the parentDocument must be cast, because I use it also (parentDocument.currentState='') and there it works. I will try it and give you a feedback, if it solved my problem. Best regards, Pascal Gordon Smi

RE: [flexcoders] Accessing methods in nested components

2006-10-24 Thread Gordon Smith
What is the message for Error #1069?   Try tracing expressions like main(parentDocument).filenet, main(parentDocument).filenet.sidebar and see what you get.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pascal Schrafl Sent:

RE: [flexcoders] Accessing methods in nested components

2006-10-24 Thread Gordon Smith
If you cast parentDocument to your application class, the compiler can tell you whether you've constructed the right _expression_ or not. For example, if your app is MyApp.mxml, then do       MyApp(parentDocument).filenet...   Without the cast, it can't typecheck anything because pa

RE: [flexcoders] Re: array of arrays and XML

2006-10-24 Thread Gordon Smith
You use square-bracket syntax to access a child tag or an attribute whose name you don't know at compile time: hitdata.item["@" + someVar]. If someVar is "revenue", then hitdata.item["@revenue"] is the same as [EMAIL PROTECTED], in the same way that when o is a plain Object o["foo"] is

RE: [flexcoders] Re: textArea cursor position

2006-10-24 Thread Gordon Smith
The cursor blinks at the caretIndex. You can use getCharBoundaries() to determine the location of the character at this index. It's left edge should be the position of the caret.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of B

RE: [flexcoders] How to discover the natural dimensions of a loaded image

2006-10-24 Thread Gordon Smith
When the image has been completely loaded, you get a 'complete' event. At that point the contentWidth and contentHeight properties contain the natural size of the image. You can use these to set the Image's size to be some fraction of the natural size:       private function completeH

RE: [flexcoders] Custom DataGridColumn Component?

2006-10-23 Thread Gordon Smith
I think it should be possible to write an MXML component based on , although I've never tried it.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Monday, October 23, 2006 6:27 PM To: flexcoders@yahoogroups.com Subject

RE: [flexcoders] Re: Lines in text area component

2006-10-23 Thread Gordon Smith
(caretIndex); but I'm getting error cause Boundaries in this case is Null object. Help me please to get this thing working if You see errors.. --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > I'm not sure what you mean by "sett

RE: [flexcoders] horizontalGap not working.

2006-10-23 Thread Gordon Smith
horizontalGap is a style like backgroundColor, rather than a normal property like percentWidth, so you'd do       hDivide.setstyle("horizontalGap", 8);   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KP Sent: Monday, October 23, 2006 1:

RE: [flexcoders] Re: Looping through a DataGrid, in order to get Grand Total from 1 specific Column?

2006-10-23 Thread Gordon Smith
A DataGrid only creates enough rows to fill out its height. For example, if you have 1000 items in your dataProvider and the height of the DataGrid only allows you to see 10 of them, then it only creates 10 rows and it "recycles" them with new data as you scroll. This is how it can scro

RE: [flexcoders] Lines in text area component

2006-10-20 Thread Gordon Smith
I'm not sure what you mean by "setting the number of lines in the TextArea component"? If you want to control where line breaks occur, put the \n character into the 'text' String.   To get the line position of a particular character try using getCharBoundaries() and then getLineIndexA

RE: [flexcoders] getParagraphLength method error!!!!

2006-10-20 Thread Gordon Smith
Here is a simple application incorporating your code snippet. As I click in the TextArea, I don't get any errors. So you'll need to post your exact code and the exact sequence of user interactions that lead to your problem. What is the value of caretIndex when you get the error?   - G

RE: [flexcoders] Re: E4X Help

2006-10-20 Thread Gordon Smith
You also need to change = to == in your E4X filter. A working example is below. - Gordon http://www.adobe.com/2006/mxml";> From: flexcoders@yahoogr

RE: [flexcoders] Re: Is there a way to find an object if you know the name

2006-10-17 Thread Gordon Smith
}") and now I want to > be able to refer to that component dynamically. > > > On 10/16/06, Gordon Smith <[EMAIL PROTECTED]> wrote: > > > > You simply refer to components by their id. You don't have to "look > > them up" by it. For example, if

RE: [flexcoders] Is there a way to find an object if you know the name

2006-10-16 Thread Gordon Smith
You simply refer to components by their id. You don't have to "look them up" by it. For example, if you have   MyApp.mxml:              ...   then in the Application's methods you can write expressions like b1.label.   Technically, what is happening is that the MX

RE: [flexcoders] gloablToLocal , localToGlobal

2006-10-16 Thread Gordon Smith
Are you aware that globalToLocal() and localToGlobal() don't modify the point you pass in? They return the modified point.    

RE: [flexcoders] Invalidating a control for IMMEDIATE redraw?

2006-10-16 Thread Gordon Smith
You can't force the Flash Player to redraw in the middle of a long computation. You'll have to break the computation into smaller pieces that can be performed frame-by-frame or timer-event-by-timer-event and which store their state so that they can continue later.   - Gordon  

RE: [flexcoders] Re: Text Area question

2006-10-16 Thread Gordon Smith
to have a knack for explaining things very clearly and concisely. Any chance we'll see tutorials or a book from you at some point? I'd buy it in a heartbeat. Thanks, Ben --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > Below is an example

RE: [flexcoders] Re: How to invalidate ViewStack Pages

2006-10-14 Thread Gordon Smith
eed someway to have a function called automatically when a child is switched to, so I can reinitialize and use the data just passed in. Thanks, jelentz --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > Databinding is one way to accomplish this:

RE: [flexcoders] Re: Text Area question

2006-10-14 Thread Gordon Smith
Below is an example of forcing text input to uppercase as the user types it.   The trick is to handle the 'textInput' event, which is dispatched after the user presses a key but before the new text appears in the TextArea (or TextInput, or TextField). This is a cancelable event, which

RE: [flexcoders] How to invalidate ViewStack Pages

2006-10-14 Thread Gordon Smith
Databinding is one way to accomplish this:         Another would be to write a "change" handler on the ViewStack. Switch on the selectedIndex and re-initialize the pane you're changing to.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

RE: [flexcoders] Hiding backMonthButton and fwdMonthButton on DateChooser

2006-10-14 Thread Gordon Smith
It would be a little more elegant , and a little faster, to do       if (disp is Button)   instead of       if (disp.toString().indexOf("Button") > -1   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Crowe Sent: Friday, October

RE: [flexcoders] Conditional Compile?

2006-10-13 Thread Gordon Smith
No, sorry, AS3 doesn't support conditional compilation.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steve Kellogg @ Project SOC Sent: Friday, October 13, 2006 7:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cond

RE: [flexcoders] Problems with styles of type Class (embedded assets)

2006-10-12 Thread Gordon Smith
    .treeNoIcons     {     disclosure-open-icon: ClassReference(null);     disclosure-close-icon: ClassReference(null);     } - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of genuinexeal Sent: Thursday, October 12, 200

RE: [flexcoders] AS3 substitute for UIObject.destroyObject() ?

2006-10-11 Thread Gordon Smith
removeChild() or removeChildAt(), which UIComponent inherits from DisplayObjectContainer.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of leo4beer Sent: Wednesday, October 11, 2006 5:49 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] var in Loop

2006-10-10 Thread Gordon Smith
> This is (i think) why they are stored in a different place, it might even help prove performance (again, i think).   You're right on both counts. This is a major reason why ActionScript 3 is faster than ActionScript 2.   - Gordon   From: flexcoders@yahoogroups.com [mailt

RE: [flexcoders] dynamic registration point in flex/as3

2006-10-10 Thread Gordon Smith
There is no concept of registration point in Flex components. You'll have to change the component's x, y, and rotation properties simultaneously. The source file RotateInstance.as contains the trigonometry for doing this, so you should be able to cut-paste-and-adapt this code for your c

RE: [flexcoders] Actual screen X and Y co-ordinates of a container

2006-10-09 Thread Gordon Smith
dable for with and height percentages of monitor . Regards. On 10/9/06, Gordon Smith <[EMAIL PROTECTED]com> wrote: By "screen" do you mean the computer monitor, or the Flash "stage"?   You can use the localToGlobal() method to convert to stage coordinates. I

RE: [flexcoders] Actual screen X and Y co-ordinates of a container

2006-10-09 Thread Gordon Smith
By "screen" do you mean the computer monitor, or the Flash "stage"?   You can use the localToGlobal() method to convert to stage coordinates. I don't think you can get monitor coordinates of DisplayObjects.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@y

RE: [flexcoders] Re: Dynamically adding components to a panel?

2006-10-05 Thread Gordon Smith
Read about item renderers. You can put anything you want into a List or Tree.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steve Kellogg @ Project SOC Sent: Wednesday, October 04, 2006 3:30 PM To: flexcoders@yahoogroups.com S

RE: [flexcoders] Changing registration point for effect

2006-10-04 Thread Gordon Smith
No, there is no concept of registration point. You'll have to play a Move effect in parallel with the resize effect, or write your own effect that does both. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andriy Panas Sent: Wednesda

RE: [flexcoders] Creating variable name dynamically

2006-10-04 Thread Gordon Smith
In your example, you store the ith TextInput instance as myArray[i][0] and the ith CheckBox instance as myArray[i][1]. So loop over i and check whether myArray[i][1].selected is true.   The name of the local var chkCheckBox is completely irrelevant; this var doesn't even exist after t

RE: [flexcoders] Re: can NOT call method in component - Important MXML Lesson

2006-10-03 Thread Gordon Smith
I haven't been following this thread, but if you find yourself putting the same 'change' handler on each instance of your TimeText component, then you should instead make that handler part of the DEFINITION of that component.   Although you could accomplish that by registering it in a

RE: [flexcoders] Conditional Login inside curly braces for binding

2006-10-03 Thread Gordon Smith
Or write the && operator as && - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Tuesday, October 03, 2006 2:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Conditional Login inside curly braces for bindi

RE: [flexcoders] Re: overriding Button's style sheet

2006-10-01 Thread Gordon Smith
Put your Button selector in the tag of the .   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JClouz Sent: Thursday, September 28, 2006 7:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: overriding Button's style s

RE: [flexcoders] Setting properties to children technique

2006-09-29 Thread Gordon Smith
Yes, you should be using invalidation. The typical pattern for doing this is as follows:       private var _buttonLabel:String = "";       private var buttonLabelChanged:Boolean = false;       public function get buttonLabel():String     {     return _buttonLabel;     }  

RE: [flexcoders] Re: MXML Constructor

2006-09-28 Thread Gordon Smith
- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, September 28, 2006 7:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: MXML Constructor On Wednesday 27 September 2006 22:39, Gordon Smith wrote: > the latter runs as earl

RE: [flexcoders] Re: MXML Constructor

2006-09-27 Thread Gordon Smith
Putting code into a creationComplete handler is close to the opposite of putting it into a constructor; the former runs as late as possible while the latter runs as early as possible. Using a preinitialize handler would be a better choice. - Gordon -Original Message- From: flexcoders@

RE: [flexcoders] adding effects in action script

2006-09-27 Thread Gordon Smith
ntax error in John's example, but was easy to work out) @Gordon: the docs on setStyle say "Calling the setStyle() method can result in decreased performance. Use it only when necessary." Do you know of any metrics round this? On 9/27/06, Gordon Smith < [EMAIL PROTECTED]com&

RE: [flexcoders] Re: getting the height of a text object *NO NEED

2006-09-26 Thread Gordon Smith
In normal operation, when you change the text displayed by a component like Text, the component's height gets recalculated the next time the LayoutManager runs (which happens right before the tree of DisplayObjects gets rerendered to the stage). After the LayoutManager runs, the compone

RE: [flexcoders] When are Accordian Components instantiated?

2006-09-26 Thread Gordon Smith
Setting creationPolicy="all" is ALMOST NEVER the right thing to do in Flex. It disables the Deferred Instantiation feature, which enables Flex apps to minimize their startup time by not instantiating components until the user can see them. Declare a Boolean var on the second pane to st

RE: [flexcoders] Viewstack with canvas + centered panel

2006-09-26 Thread Gordon Smith
> I really can't figure out how to center the panel and 'stretch' the canvas ...       - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeroen Beckers Sent: Tuesday, September 26, 2006 7:19 AM To: flexcoders Subject: [flexc

RE: [flexcoders] Re: MXML Constructor

2006-09-26 Thread Gordon Smith
You can't write a constructor for an MXML component because the MXML compiler autogenerates one. What do you need to do in the constructor?   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of tobiaspatton Sent: Tuesday, September 26

RE: [flexcoders] When are Accordian Components instantiated?

2006-09-26 Thread Gordon Smith
Setting creationPolicy="all" is ALMOST NEVER the right thing to do in Flex. It disables the Deferred Instantiation feature, which enables Flex apps to minimize their startup time by not instantiating components until the user can see them. > Do you have a suggestion for how to enable a

RE: [flexcoders] adding effects in action script

2006-09-26 Thread Gordon Smith
A showEffect is actually a style whose value is an Effect, so you'd do       imgNewImage.setStyle("showEffect", fadeIn);   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Harris Sent: Monday, September 25, 2006 5:30 PM To:

RE: [flexcoders] Re: private constructors in flex

2006-09-22 Thread Gordon Smith
I'm afraid that AS3 doesn't allow a constructor to be private.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pauland2513 Sent: Friday, September 22, 2006 4:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: private

RE: [flexcoders] Object of a specified type

2006-09-22 Thread Gordon Smith
The preferred way is to use the 'is' operator, which is new in AS3:       trace(str is String); // output is "true"   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Harish Sivaramakrishnan Sent: Monday, September 18, 2006 6:06

RE: [flexcoders] what's going on with this Flex?!?

2006-09-22 Thread Gordon Smith
The behavior you're seeing is the Deferred Instantiation feature of Flex. The point of it is to avoid creating components until the user can see them, in order to minimize the application startup time.   Setting creationPolicy="all" 'fixes' the problem by disabling this feature. It is

RE: [flexcoders] getDefinitionByName

2006-09-22 Thread Gordon Smith
getDefinitionByName() works on Flex classes as well as Flash ones, but if you want something like       getDefinitionByName("mx.controls.Button")   to work, you have to ensure that Flex's Button class is linked into your application's SWF. If you actually use the Button class somewh

RE: [flexcoders] Time calculation oddity

2006-08-31 Thread Gordon Smith
> Flex lacks a proper set of date/time classes. Everybody's entitled to their opinion of what "proper" is, but Flex/Flash/ActionScript has the same set of JavaScript date/time classes that are available to HTML web apps. A lot of compelling web applications have presumably been written with them.

RE: [flexcoders] Is this a bug? About Number type.

2006-08-30 Thread Gordon Smith
You presumably meant the result should be 23.7, not 23.8.   However, getting 23.703 isn't a bug; you'd get the same answer in other languages like Java and C++. The imprecision is because Number in ActionScript (like float in Java and C++) stores a floating-point value as

RE: [flexcoders] Getting al DisplayObjects under a given global Point

2006-08-28 Thread Gordon Smith
DisplayObject).  Is there any convenient way to get a list of other types of objects, such as UIComponents? On 8/28/06, Gordon Smith <[EMAIL PROTECTED]com> wrote: Every DisplayObjectContainer has a getObjectsUnderPoint() method.   - Gordon   From: [EMAIL PROTECTED]ups.c

RE: [flexcoders] Re: specifying a percentage width in script?

2006-08-28 Thread Gordon Smith
No, you don't have to calculate it yourself. There have been a half-dozen replies that you simply set       spacer.percentWidth = 100;   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg Sent: Monday, August 28, 2006 12:35 PM To: fl

RE: [flexcoders] Getting al DisplayObjects under a given global Point

2006-08-28 Thread Gordon Smith
Every DisplayObjectContainer has a getObjectsUnderPoint() method.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: Monday, August 28, 2006 12:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting al DisplayOb

RE: [flexcoders] Adding Components on the Fly

2006-08-25 Thread Gordon Smith
        private function clickHandler(event:Event):void     {     var myImage:MyImage = new MyImage();     myImage.source = ...;     addChild(myImage);     }     - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fais

RE: [flexcoders] Extending CSSStyleDeclaration

2006-08-24 Thread Gordon Smith
A UIComponent gets its styles by calling the getStyle() method that it inherits from UIComponent, not the getStyle() method on CSSStyleDeclaration. I'll try to explain the difference.   The getStyle() method on CSSStyleDeclaration simply looks at the styles set in that single CSSStyle

RE: [flexcoders] Re: Limiting decimal places

2006-08-24 Thread Gordon Smith
If you just need rounding to a fixed number of decimal places, and you don't need formatting, you could use the toFixed() method of the Number class. ASDoc example:  var num:Number = 7.31343;trace(num.toFixed(3)); // Output: 7.313 - Gordon     From: flexcoders@yahoogroups.co

RE: [flexcoders] Re: specifying a percentage width in script?

2006-08-24 Thread Gordon Smith
> not available in MXML   You can set percentWidth in either MXML or ActionScript. There are 3 equivalent ways to set a percentage width:   b.percentWidth = 100;   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles Sent: T

RE: [flexcoders] Issue with drawing on UIComponent

2006-08-22 Thread Gordon Smith
It looks to me like a player bug with opaqueBackground.   Try drawing like this instead:       override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void     {     super.updateDisplayList(unscaledWidth, unsca

RE: [flexcoders] StyleManager

2006-08-22 Thread Gordon Smith
When a Flex app starts up, the StyleManager already has a set of selectors, such as for ApplicationControlBar and ComboBox. They have default settings for all the styles that the components expect to be set. If a style is unset, you can get RTEs or other misbehavior.   In general, you

RE: [flexcoders] How to set EventListeners to undrawn components on a ViewStack?

2006-08-21 Thread Gordon Smith
suggestion in this situation.   Sascha       From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Gordon Smith Sent: Saturday, 19. August, 2006 08:39 To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] How to set EventListeners to undrawn components on a Vi

RE: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications

2006-08-18 Thread Gordon Smith
understand why its not the default type. Matt – the datatype NUMBER – how is this translated into a datatype such as long etc? Regards Samuel On 18/8/06 03:54, "Gordon Smith" <[EMAIL PROTECTED]com> wrote:     > Normally this is guaranteed to 2^64 –1   The Number data ty

RE: [flexcoders] How to set EventListeners to undrawn components on a ViewStack?

2006-08-18 Thread Gordon Smith
Why call addEventListener() yourself? If you simply put an mouseDown or whatever event atttribute on your content item in MXML, it should work fine; addEventListener() will get called for you when the content item gets created.   - Gordon   From: flexcoders@yahoogroups.com [

RE: [SPAM] Re: [flexcoders] Re: decimal numbers in financial applications

2006-08-17 Thread Gordon Smith
> Normally this is guaranteed to 2^64 –1   The Number data type is based on the IEEE-754 double-precision standard. It uses 64 bits to store a floating point number.   However, only 52 bits are used for the binary significand; 11 are for the binary exponent, and 1 is for the sign.

RE: [flexcoders] Re: Determine if a Class implements an Interface

2006-08-16 Thread Gordon Smith
e? Sounds like I'll go with creating a new instance and checking it. Thanks again. Thunder --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > I'll bet that new'ing an instance of the class and using the 'is' > operator on

RE: [flexcoders] Re: decimal numbers in financial applications

2006-08-16 Thread Gordon Smith
Hi, Matt.   We worked closely with many enterprise customers, including financial ones, during our development phase and beta period, and support for decimal arithmetic was not a priority for them. I've also read many thousands of FlexCoders and Beta list emails during the Flex 1, 1.5

RE: [flexcoders] decimal numbers in financial applications

2006-08-16 Thread Gordon Smith
We're considering adding decimal arithmetic to a future release, but I'm afraid that currently neither the player nor the Flex framework offers this. Decimal arithmetic is not a feature of _javascript_ or ECMAScript, the languages that we've based ActionScript on. So I'm curious how dev

RE: [flexcoders] Re: XML parser chokes on un-typed xmlns

2006-08-16 Thread Gordon Smith
More explanation...   Tom, the behavior you saw was correct.   In your first case, defining the soap namespace prefix on doesn't affect , because has no namespace prefix and is therefore in the undefined default namespace, not in the soap namespace.   In your second case, you ar

RE: [flexcoders] Parent Application Space?

2006-08-16 Thread Gordon Smith
I'm not sure what you are asking, but if you write an MXML component -- call it AddressForm.mxml -- like this                 then this gets transformed into   public class AddressForm extends Form {     ... }   The file name becomes the class name. The top tag name

RE: [flexcoders] Determine if a Class implements an Interface

2006-08-15 Thread Gordon Smith
I'll bet that new'ing an instance of the class and using the 'is' operator on the instance will be faster than calling describeType() on the class and checking for an tag.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt C

RE: [flexcoders] Accordion Headers: Only one?

2006-08-15 Thread Gordon Smith
An Accordion automatically creates one instance of AccordionHeader for each child pane that you add to the Accordion. You can get a reference to the i-th header with getHeaderAt(i), which is conceptually similar to getChildAt(i).   Can you clarify what it is about the description that

RE: [flexcoders] Custom UIComponent creating problem

2006-08-15 Thread Gordon Smith
A general rule in Flex layout management is that children get positioned and sized by their parents. I suspect that the reason you don't see anything is that item_button has a width and height of 0 by default.   If you extend UIComponent, then it is your responsibility to position and

RE: [flexcoders] removing a key from object

2006-08-14 Thread Gordon Smith
If recordMap is really just a plain Object, then you would do       delete UserData.getInstance().recordMap[vectorOrder.detail_id];   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug Arthur Sent: Monday, August 14, 2006 1:37

RE: [flexcoders] trace.... redirection possible?

2006-08-14 Thread Gordon Smith
Consider using the mx.logging.Log class instead of the trace() function.   - Gordon   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel Colak Sent: Monday, August 14, 2006 7:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] tra

<    7   8   9   10   11   12   13   14   15   16   >