RE: [flexcoders] Difference in ActionScript File and ActionScript Class

2007-05-23 Thread Gordon Smith
The only difference is that if you choose ActionScript Class, FlexBuilder presents a wizard-y dialog and then autogenerates some starter code for you. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of haravallabhan Sent:

RE: [flexcoders] star (*) data type vs. Object

2007-05-23 Thread Gordon Smith
As far as I'm aware, Object was made different from * in order to make it possible to program without thinking about the 'undefined' value, which Object can't store. It banishes the 'undefined' value from the part of the language that is compile-time-typed, because toher compile-time-typed

RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
In what sense do these appear to be missing? I see them in the Language Reference as inherited properties. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lincoln Mitchell Sent: Tuesday, May 22, 2007 4:03 AM To:

RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, 23 May 2007 12:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? In what sense do these appear to be missing? I see them in the Language Reference

RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, 23 May 2007 6:07 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateChooser X and Y? x and y are properties, not styles. A DateField pops up its DateChooser in a location

RE: [flexcoders] Is it possible for Flex Builder to echo the mxmlc.exe command it uses ?

2007-05-17 Thread Gordon Smith
In the Flex Compiler pane of the project's Properties dialog, enter -dump-config myconfig.xml in the Additional compiler arguments field. This will output a file in the project directory similar to flex-config.xml which shows the options that the compiler is using. - Gordon

RE: [flexcoders] Re: Trees and ActionScript

2007-05-17 Thread Gordon Smith
You could also use nested Array and Object literal syntax to do this in one statement: myTree.dataProvider = [ { label: Top level, children: [ { label: First }, { label: Second } ] }, { label: Another top level } ]; When you set the

RE: [flexcoders] dynamic function in AS3/Flex.

2007-05-14 Thread Gordon Smith
I don't know much about Xpath... can it do XML manipulations that E4X can't? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall Sent: Monday, May 14, 2007 9:46 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]

RE: [flexcoders] Re: How to prevent children from causing a mouseOut event

2007-05-07 Thread Gordon Smith
@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote: Use rollOver and rollOut instead of mouseOver and mouseOut. - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders

RE: [flexcoders] Pin a single child element to the bottom of a parent VBox?

2007-05-07 Thread Gordon Smith
You should be able to simply override updateDisplayList() and, after calling super.updateDisplayList(), reposition the one child that you want to be in a different location. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Apollo RELEASE quality?

2007-05-04 Thread Gordon Smith
I think the current guidance for the release of Apollo 1.0 is the second half of 2007. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Kellogg Sent: Friday, May 04, 2007 11:29 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] How can I tell the swf file name within my application ?

2007-05-03 Thread Gordon Smith
Also, getQualifiedClassName(Application.application) will give you the name of your application class. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flexing... Sent: Wednesday, May 02, 2007 11:28 PM To:

RE: [flexcoders] Re: weird accordion consequences

2007-05-03 Thread Gordon Smith
Don't pull data from outside your component. Push outside data into your component, but store it in data vars, not directly in the children. Then when the children get created, have them pull data to display from those data vars. - Gordon From:

RE: [flexcoders] What can one do to format the title of a Panel?

2007-05-02 Thread Gordon Smith
mx:Style .panelTitle { fontSize: 24; color: red } /mx:Style mx:Panel title=Panel titleStyleName=panelTitle/ - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian Skinner Sent: Wednesday, May 02, 2007 2:55 PM To: [EMAIL

RE: [flexcoders] Function to check if component supports a style?

2007-05-02 Thread Gordon Smith
describeType() can give you information about class's [Style] metadata. But you have to use the -keep-as3-metadata compilation option to tell the MXML compiler which metadata to compile into the SWF. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Click through a Container

2007-05-01 Thread Gordon Smith
the container, but what if that container has controls that need to be clicked and stuff? Thanks again, Claudia On 4/27/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Isn't there something like turn shield on or off? Doh! I forgot! Try setting

RE: [flexcoders] creating instances, addChild question

2007-04-30 Thread Gordon Smith
when i create an instance of MyPrintView, its children are not created. why is that? if you addChild() to the Applicationthey are created. why is that? The reason that components do not create their children immediately when they are created is so that you can set properties after calling

RE: [flexcoders] creating instances, addChild question

2007-04-30 Thread Gordon Smith
This doesn't make the children get created at 'new' time. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yiðit Boyar Sent: Monday, April 30, 2007 11:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] creating

RE: [flexcoders] Re: creating instances, addChild question

2007-04-30 Thread Gordon Smith
like this class MyPrintView extends VBox { public contact:Label; public printDG:PrintDataGrid public MyPrintView() { super(); contact = new Label(); contact.text = 'batman' addChild(contact) //etc } } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL

RE: [flexcoders] navigateToURL

2007-04-30 Thread Gordon Smith
Whatever problem you're having isn't related to event.label or probably to anything in your Flex code. When I tried this code it constructed the proper URL, such as http://localhost/FlashSite2/bin/ghostb Does that URL work when you paste it into a browser? - Gordon

RE: [flexcoders] Click through a Container

2007-04-28 Thread Gordon Smith
. As for the actual WHY question... the answer is: The designer wants it. It is really not just one button under the translucent piece... it is a part of the application, and the button and other controls happens to be right there. Thanks, Claudia On 4/26/07, Gordon Smith [EMAIL PROTECTED

RE: [flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-27 Thread Gordon Smith
That doesn't ring a bell. Can you post simple-as-possible versions of your subclass and an that shows the problem? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johnknyc Sent: Thursday, April 26, 2007 7:46 AM To:

RE: [flexcoders] XML and Button

2007-04-26 Thread Gordon Smith
This list works best when people ask specific questions. Can you be more explicit about what you don't understand? Getting the external XML file into your app? Use mx:XML source= Looping over the button elements? Look at some E4X examples. Extracting the label and text for a particular

RE: [flexcoders] Click through a Container

2007-04-26 Thread Gordon Smith
I don't think this is easy to do. How much interactivity with the Button do you actually need? When you roll over the button, do you need it to highlight? When you click, do you need the button to depress? Or do you just need the button's click handler to execute? And I'm curious... why do you

RE: [flexcoders] Testing if a datatyped variable is not set yet

2007-04-25 Thread Gordon Smith
Was this a compilation error or a runtime error? It sounds like you were trying to call a private method, selectPlayer(), from another class. It doesn't sound like the error had anything to do with testing whether LAST_SELECTED was null or not. You didn't show any code that actually called

RE: [flexcoders] E4X Syntax with XMLList

2007-04-25 Thread Gordon Smith
The code var value:String = cbData.(@label == M)[EMAIL PROTECTED]; will set value to 1000. You don't dot down into menu when you start with XMLList. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent:

RE: [flexcoders] A big newbie flex question.

2007-04-25 Thread Gordon Smith
You can access properties and methods declared in your mx:Application script from component scripts like this: MyApp(parentApplication).someData MyApp(parentApplication).doSomething() Many people would say this isn't good architecture, but others find it useful for simple projects. - Gordon

RE: [flexcoders] Access top and left properties via ActionScript?

2007-04-25 Thread Gordon Smith
'left', 'top', 'right', and 'bottom' are styles, not properties. You set them in the same way in MXML, but in ActionScript you have to write myImage.setStyle(top, 18); myImage.getStyle(top); // evaluates to 18 - Gordon From: flexcoders@yahoogroups.com

RE: [flexcoders] E4X Syntax with XMLList

2007-04-25 Thread Gordon Smith
to XMLList.menu, right? Troy. On 4/25/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The code var value:String = cbData.(@label == M)[EMAIL PROTECTED]; will set value to 1000. You don't dot down into menu when you start with XMLList

RE: [flexcoders] How to prevent children from causing a mouseOut event

2007-04-25 Thread Gordon Smith
Use rollOver and rollOut instead of mouseOver and mouseOut. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Wednesday, April 25, 2007 10:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to

RE: [flexcoders] Testing if a datatyped variable is not set yet

2007-04-24 Thread Gordon Smith
I see nothing wrong with what you're doing. You can certainly use == to compare a var typed as some class against null, so I suspect that the error is caused by something else. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Can't load image in flex

2007-04-24 Thread Gordon Smith
Try using the Image component to load your image. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nishantkyal Sent: Monday, April 23, 2007 11:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can't load image in flex

RE: [flexcoders] Help on the syntax for function set blah(param:String)

2007-04-24 Thread Gordon Smith
These are a way to implement a property when you want getting or setting the property to have side effects. The setter is called when you set the property. For example, statesNames = foo; will call function set statesNames with value equal to foo. The getter is called when you get the

RE: [flexcoders] How to measure text?

2007-04-23 Thread Gordon Smith
UIComponent has measureText() and measureHTMLText() methods. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Sent: Monday, April 23, 2007 7:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to measure text?

RE: [flexcoders] How to access Variable in Module from sub-component

2007-04-23 Thread Gordon Smith
After your application loads the module, have it pass a reference-to-itself to the module for the module to use. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike Sent: Monday, April 23, 2007 2:54 PM To:

RE: [flexcoders] boolean not casting ok from string

2007-04-19 Thread Gordon Smith
, this typecast do works for numbers: var numTest:Number = Number(3.5); trace(numtest = +numTest); but this not to Boolean: var numTest:Boolean = Boolean(false); trace(numtest = +numTest); best regards and thank you again for your help!! Luís Eduardo. Gordon Smith escreveu: how to cast String true

RE: [flexcoders] boolean not casting ok from string

2007-04-19 Thread Gordon Smith
No, you cannot overload operators in AS3. The point has been made several times now: the only way to convert true to true and false to false is to write var btest:Boolean = someString == true; - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Call by value instead of Call by reference when copying ArrayCollection

2007-04-19 Thread Gordon Smith
I think that will give you two ArrayCollections which share the same data items. For example, if you do arrayCollection.setItemAt(foo, 0); trace(arrayCollection2.getItemAt(0)); you'll probably get foo. - Gordon From: flexcoders@yahoogroups.com

RE: [flexcoders] boolean not casting ok from string

2007-04-18 Thread Gordon Smith
It's more efficient to simply write btest = testValue == true; The right-hand-side already evaluates to true or false, so there is no need to add ? true : false. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hilary

RE: [flexcoders] boolean not casting ok from string

2007-04-18 Thread Gordon Smith
how to cast String true to Boolean true ? The expression s == true evalues to the Boolean value true if the String s is true, and to false otherwise. BTW, there is no point in writing var btest:Boolean = new Boolean() You should just write var btest:Boolean = false; or

RE: [flexcoders] Can I change DateChooser Style?

2007-04-17 Thread Gordon Smith
This is not just a style change, but you should be able to do it by writing a subclass of DateChooser. Override createChildren() to hide the buttons and labels that you don't want and create and initialize the two comboboxes that you do want. Then override measure() and updateDisplayList() so that

RE: [flexcoders] Re: Time to start over: XML/dbentry pointstreethumbnailsmain image

2007-04-13 Thread Gordon Smith
It sounds to me like you're having problems because Flex is front-end technology that doesn't talk directly to databases like Access. You need to decide which middleware your'e going to use on the server side: Java? ColdFusion? PHP? Flex Data Services? The choice will probably depend on whether

RE: [flexcoders] Short-circuiting logical operators in AS3?

2007-04-12 Thread Gordon Smith
I tried || and it short-circuits for me. Please post a complete miniapp with a case that doesn't work. - Gordon From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Thursday, April 12, 2007 9:49 AM To: [EMAIL PROTECTED] Subject: Re:

RE: [flexcoders] Does AS3 support Strong Typing, Class casting or intrinsics

2007-04-11 Thread Gordon Smith
This capability is planned for the next version of Ecmascript/JavaScript/ActionScript. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, April 10, 2007 2:20 PM To:

RE: [flexcoders] swap Children?

2007-04-11 Thread Gordon Smith
You say your container is a DisplayObjectContainer. Is it also a Flex Container such as Canvas or VBox? If so, there is a bug with using swapChildrenAt() and maybe with swapChildren() as well. Try using removeChildAt() and addChildAt() instead. A Flex Container does tricky stuff with child

RE: [flexcoders] Localizing formatters without mx.resources

2007-04-11 Thread Gordon Smith
The framework loads the localized day and month names from the resources into properties of the DateBase class, but lets you change them. Try setting DateBase.dayNamesShort, DateBase.dayNamesLong, DateBase.monthNamesShort, or DateBase.monthNamesLong before calling the format() method of your

RE: [flexcoders]Where is the right property?

2007-04-11 Thread Gordon Smith
That's correct. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Wednesday, April 11, 2007 4:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]Where is the right property? I think its a

RE: [flexcoders] as3 - accepting a callback function name as input parameter to a function

2007-04-11 Thread Gordon Smith
It looks like you can't use Function() as a cast operator. I'm not sure whether this is an AS3 compiler bug or not. Instead of Function(call.callbck).call(this); try (call.callbck as Function).call(this); or simply call.callbck.call(this); - Gordon

RE: [flexcoders] Re: Localizing formatters without mx.resources

2007-04-11 Thread Gordon Smith
). This perfectly solves my problem. (And you forgot to say, Yes, you're wrong.) Thanks, Chris --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: The framework loads the localized day and month names from the resources into properties of the DateBase

RE: [flexcoders] Re: Localizing formatters without mx.resources

2007-04-11 Thread Gordon Smith
Adobe agrees enough that they're planning on adding runtime resource loading, I think in Flex 3 Yes, this will be in the next release. I'm the one implementing it. : ) - Gordon From: Gordon Smith Sent: Wednesday, April 11, 2007 10:26 PM To: '[EMAIL

RE: [flexcoders] SOLVED: How do I tell what I clicked on?

2007-04-10 Thread Gordon Smith
In general, the Flex framework expects to own the 'name' attribute and we don't recommend that developers use it for their own purposes. It's trivial to subclass Sprite and add an id: public class SpriteWithID extends Sprite { public SpriteWithID() { super(); } public

RE: [flexcoders] Dynamically rendered UI

2007-04-10 Thread Gordon Smith
import mx.core.UIComponent; private function createInstance(classString:String, properties:Object):UIComponent { var c:Class = Class(getDefinitionByName(classString)); var instance:UIComponent = new c(); for (var p:String in properties) { instance[p] = properties[p];

RE: [flexcoders] Combine Applications

2007-04-10 Thread Gordon Smith
Your reference to combining applications makes me think that you're being overwhelmed by the complexity of complex multi-featured apps like FlexStore. My own counter-recommendation would be to first gain a good understanding of each feature that you want to use, in isolation, in the context of the

RE: [flexcoders] passing variables to Timer handler routine

2007-04-10 Thread Gordon Smith
You could also subclass Timer and store any additional data you want on MyTimer. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erik Price Sent: Tuesday, April 10, 2007 10:53 AM To: flexcoders@yahoogroups.com Subject: Re:

RE: [flexcoders] loading image with AS and Loader

2007-04-10 Thread Gordon Smith
What doc was this in? It won't work if 'this' is a Flex Container, because a Container expects that its children are IUIComponents. If you're putting an image into a Flex Container, you should be using a Flex Image control, not a low-level Flash Loader. - Gordon

RE: [flexcoders] SOLVED: How do I tell what I clicked on?

2007-04-10 Thread Gordon Smith
property ? thanks. - Original Message From: Gordon Smith [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 10, 2007 9:01:02 AM Subject: RE: [flexcoders] SOLVED: How do I tell what I clicked on? In general, the Flex framework expects to own the 'name' attribute and we don't

RE: [flexcoders] XML to Number from an HTTPservice

2007-04-10 Thread Gordon Smith
anybody knows how to convert the Strings to numbers Just cast them: Number(1.23) int(1) - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lcujino Sent: Tuesday, April 10, 2007 10:36 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Re: dynamically created access and event elements problem and

2007-04-10 Thread Gordon Smith
or that need extending checkbox class ? thanks in advance --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: Sorry... in the second example, var rb:RadioButton; should be var rb:RadioButton = new RadioButton(); - Gordon

RE: [flexcoders] Most Efficient Design Question

2007-04-09 Thread Gordon Smith
Is it better to generate a different XML files for each of the different trees I want to build, or load all of the data in one XML file and let flex split up the data into the different pieces. I wouldn't do either. First I'd make an XML file that is a simple view-independent list of

RE: [flexcoders] Event Setup Question

2007-04-08 Thread Gordon Smith
You don't say what event you want to listen to from the Tree, but I'll assume it's change from tree1. The simplest way is to write mx:Tree id=tree1 change=tree1_changeHandler(event)/ and private function tree1_changeHandler(event:Event):void { // do something to combo,

RE: [flexcoders] Re: question about string equality

2007-04-05 Thread Gordon Smith
I have also long wondered about primitives in AS3. What is an int? What primitives are there? What is a Boolean? Here are the types where you don't need to (or can't) use the 'new' operator because AS3 has literal notation for values of that type: int: 32-bit signed integer var i:int;

RE: [flexcoders] Re: dynamically created access and event elements problem and

2007-04-05 Thread Gordon Smith
can you help me on part you should keep variable referencing to checkboxes Define an instance variable in your app or component. When you dynamically create a CheckBox, store it in that variable: mx:Script // Any other method in this class can access the radio buttons using these

RE: [flexcoders] Is it possible to find out how much RAM the end user has?

2007-04-05 Thread Gordon Smith
The totalMemory property of the flash.system.System class gives you The amount of memory (in bytes) currently in use by Adobe Flash Player. I don't know of a way to find out the total RAM. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Re: dynamically created access and event elements problem and

2007-04-05 Thread Gordon Smith
Sorry... in the second example, var rb:RadioButton; should be var rb:RadioButton = new RadioButton(); - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Thursday, April 05, 2007 1:17 PM

RE: [flexcoders] to use object or array -- 'Adobe Flex 2 Training from the Source' book

2007-04-05 Thread Gordon Smith
Use a Array when you look up a value by a numeric index. Use an Object when you look up a value by a string key like name or property. BTW, I think using Object-literal syntax to combine these four lines into categories.addItemAt({ name: All, categoryID: o }); will create smaller, faster

RE: [flexcoders] MXML Schema

2007-04-03 Thread Gordon Smith
We no longer provide a schema for MXML. The language was designed to be easily written by a human and isn't well-suited to being described in a schema -- it's too loosy-goosy in terms of what can nest inside what, whether you write a property as an attribute or child tag, etc.The schema we offered

RE: [flexcoders] getChildren

2007-04-03 Thread Gordon Smith
I think this may be another way... if (obj.hasOwnProperty(getChildren)) children = obj.getChildren(); - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dordea cosmin Sent: Tuesday, April 03, 2007 12:13 PM To:

RE: [flexcoders] Re: MXML Schema

2007-04-03 Thread Gordon Smith
errors? Or simply write the UI in ActionScript? Neil --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: We no longer provide a schema for MXML. The language was designed to be easily written by a human and isn't well-suited to being

RE: [flexcoders] Re: Bad Results referencing local variables in nested loops

2007-03-28 Thread Gordon Smith
) : Boolean { ... } to enumerateItems(), pass function( itemNo : int, numItems : int, items : Array ) : Boolean { ... } He said this seems to make it work. - Gordon From: Gordon Smith Sent: Tuesday, March 27, 2007 8:55 PM To: 'flexcoders@yahoogroups.com

RE: [flexcoders] TextArea htmltext parsing

2007-03-28 Thread Gordon Smith
What are you trying to do? If you want a list of words wouldn't you want to parse the 'text' rather than the 'htmlText', which includes a bunch of HTML markup? You can use the split() method of String to create an Array. For the first argument pass a RegExp representing one or more whitespace

RE: [flexcoders] Re: Whatever happened to Peter Ent's scrolling text ticker?

2007-03-27 Thread Gordon Smith
, March 27, 2007 2:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Whatever happened to Peter Ent's scrolling text ticker? any particular reason why? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: I recommend using

RE: [flexcoders] Re: Bad Results referencing local variables in nested loops

2007-03-27 Thread Gordon Smith
I noticed two peculiarities in your code: You declare myAnimationFunction() and myEventFunction() in verifyContainer() to return void rather than Boolean. But when I declare them to return Boolean and actually return true, I still see your problem. In stepping through it in the FlexBuilder

RE: [flexcoders] Re: Whatever happened to Peter Ent's scrolling text ticker?

2007-03-26 Thread Gordon Smith
I recommend using a Timer rather than calling doLater(). - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Monday, March 26, 2007 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Whatever

RE: [flexcoders] Setting properties on AS-created components

2007-03-26 Thread Gordon Smith
Brett, I'm not clear on what you're trying to accomplish. You said you need to create components dynamically and set their properties. If you simply need to set the width and height of a newly created component, you can do that immediately after 'new'ing the component in the same way that you set

RE: [flexcoders] Randomizing Array (from actionscript cookbook3 and other places)

2007-03-25 Thread Gordon Smith
What makes you think that that error is coming from that code? What is your handleComplete() method? And aren't you getting a line number telling you the exact line in which value is not a function? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL

RE: [flexcoders] Re: Event Dispatching through more than one component

2007-03-23 Thread Gordon Smith
Is bubbling then set to true by default? As Alex said, Events have a constructor parameter as to whether the event bubbles or not. In other words it is up to the code that creates the event to decide whether it bubbles or not. For each event dispatched by the Player or Flex Framework classes,

RE: [flexcoders] Apollo - multi-window communication

2007-03-23 Thread Gordon Smith
(Application), and listener in b.mxml(Application), is it useful like as localConnection between two Applications? if it's useful ,can you give me an example? thanks. 2007/3/23, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Any listener can use event.target to get

RE: [flexcoders] constructor like arguments in MXML components?

2007-03-23 Thread Gordon Smith
MXML components do not have constructor parameters. You set properties after calling 'new'. If you write mx:Button id=b label=OK labelPlacement=right/ the compiler generates code similar to var b:Button; ... b = new Button(); b.label = OK; b.labelPlacement = right;

RE: [flexcoders] Multiple Selection Menu?

2007-03-23 Thread Gordon Smith
The Menu component supports having multiple items of type check which can be toggled on or off by selecting them. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Friday, March 23, 2007 3:09 PM To:

RE: [flexcoders] How to pass some values along with invalidateDisplayList

2007-03-22 Thread Gordon Smith
Try calling validateNow() after invalidateDisplayList(). This should cause updateDisplayList() to get called immediately. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: Thursday, March 22, 2007 7:19 AM To:

RE: [flexcoders] Re: How do you suppress repeating values in DataGrid columns?

2007-03-22 Thread Gordon Smith
%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: I don't think there is an automatic way to do this in the visual rendering. I think you'll have write AS to loop over your data and create another array of records that look like Record #1: Author=John Doe Title=Advanced Cat Juggling Record #2

RE: [flexcoders] Flex Number addition math bug?

2007-03-22 Thread Gordon Smith
This is a FOL of using types like Number in ActionScript or float/double in Java, C, C++, etc. They can't do exact decimal fractions, because they store values in binary and can't exactly represent a value like 0.99. You'll either need to do rounding or compute in pennies rather than dollars in

RE: [flexcoders] Apollo - multi-window communication

2007-03-22 Thread Gordon Smith
Any listener can use event.target to get a reference to the object which called dispatchEvent(), and thereby access its properties and methods. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ju Aedis Sent: Thursday, March 22,

RE: [flexcoders] htmlText and it's reliablility.. Possible Bug...

2007-03-22 Thread Gordon Smith
This sounds like it could be a Flash Player bug in flash.display.TextField. The text components don't parse the htmlText, they just pass it to the internal TextField. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Justin Sent:

RE: [flexcoders] How do you suppress repeating values in DataGrid columns?

2007-03-21 Thread Gordon Smith
I don't think there is an automatic way to do this in the visual rendering. I think you'll have write AS to loop over your data and create another array of records that look like Record #1: Author=John Doe Title=Advanced Cat Juggling Record #2: Author= Title=Surviving Cat Scratch

RE: [flexcoders] www.codeapollo.com

2007-03-20 Thread Gordon Smith
I can't deal with forums. Is it possible to get all posts as individual emails? Sorry if this is a dumb question, but I know some forums don't support this. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of d3lix3 Sent: Monday,

RE: [flexcoders] Apollo (Should Adobe Keep the Name)

2007-03-17 Thread Gordon Smith
I like the name Apollo myself, and I'm sure the Apollo team is interested in the community's ideas about what the product should be named, but picking a product name is a tricky business that involves legal as well as marketing considerations. Gordon From:

RE: [flexcoders] newbie question re: BarSeries programatically setting the showDataEffect

2007-03-16 Thread Gordon Smith
myBarSeries.setStyle(showDataEffect, myZoomOutEffect); - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iilsley Sent: Thursday, March 15, 2007 10:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] newbie question re:

RE: [flexcoders]

2007-03-15 Thread Gordon Smith
If the Button is in JobSearch.mxml, then walking the DOM up would mean calling parentDocument.preTrafficNav.selectedIndex = 1; because the parentDocument of JobSearch is the app (or component) containing it, which also contains the ViewStack preTrafficNav. - Gordon

RE: [flexcoders] Re: Regexp wont work cause of the b labels

2007-03-14 Thread Gordon Smith
Yep. I got 1.5 million hits when I googled regexp tutorial. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tonyx_788 Sent: Wednesday, March 14, 2007 10:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Regexp wont

RE: [flexcoders] Re: Getting selectedItems to properly *select*...

2007-03-14 Thread Gordon Smith
If you set selectedItems, the array you set it to needs to contain actual object references to particular data items in the dataProvider. It can't simply contain objects with the same data. If you want to set the selection based on data, you'll have to loop through all the items, inspect whether

RE: [flexcoders] Dynamic Instance of Class Data Typing

2007-03-14 Thread Gordon Smith
). I've never seen that mentioned in the docs and just assumed there was no dead-stripping... For example, if I created an app that used no UI elements (or minimal UI elements) then it should be pretty small, huh? Troy. On 3/13/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

RE: [flexcoders] Re: Getting selectedItems to properly *select*...

2007-03-14 Thread Gordon Smith
, 2007 4:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Getting selectedItems to properly *select*... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: If you want to set the selection based on data, you'll have to loop

RE: [flexcoders] Dynamic Instance of Class Data Typing

2007-03-13 Thread Gordon Smith
On Mar 13, 2007, at 8:17 PM, Gordon Smith wrote: newInstance[someMethodName](someParam) For example, myCanvas[addChild](new Button()) - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

RE: [flexcoders] Re: Data binding: How to detect data change has happened?

2007-03-12 Thread Gordon Smith
can keep up with it (the prototype stuff always made my head spin a bit). I was just under the impression that they co-existed (or one piggy-backed on the other), but it make sense that there are VM optimizations for the non-dynamic stuff... Troy. On 12 Mar 2007 13:25:14 -0700, Gordon Smith

RE: [flexcoders] n00b question on dynamic generation of UI components

2007-03-10 Thread Gordon Smith
Your application file itself should be MXML. In other words, you should have at least an mx:Application tag, or you'll run into various problems. But every other component instance can easily be programmatically created using 'new'. I'm not very knowledgeable about states, but I'm pretty sure that

[flexcoders] RE: Init Global Object Best Practice

2007-03-09 Thread Gordon Smith
for a very simple example Application that illustrates what you are trying to do? - Gordon From: Thierry Bertossa [mailto:[EMAIL PROTECTED] Sent: Friday, March 09, 2007 12:58 AM To: Gordon Smith Subject: Re: Init Global Object Best Practice Thanks Gordon It's

RE: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?

2007-03-09 Thread Gordon Smith
Actually, preventDefault() does NOT prevent other listeners from executing; this is what stopPropagation() and stopImmediatePropagation() do. preventDefault() simply sets the flag returned by isDefaultPrevented() to be true. However, some event-dispatching code in the Player or the framework

RE: [flexcoders] Re: Not able to generate GUID

2007-03-08 Thread Gordon Smith
{ uidNumber=UIDUtil.createUID(); return 'a'+uidNumber.substr(0,5); } Thanks, Kumar From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wednesday, March 07, 2007 5:39 AM

RE: [flexcoders] Init Global Object Best Practice

2007-03-08 Thread Gordon Smith
If your Application's initialize handler has set public var init:Object; in the Application's mx:Script, then you can access this Object from any class as Application.application.init if you import mx.core.Application. BTW, MXML files simply get translated by the MXML compiler

<    4   5   6   7   8   9   10   11   12   13   >