RE: [flexcoders] Treat a string as a reference to an object?

2007-05-25 Thread Gordon Smith
> I was wondering if Flex/Actionscript allows you to create references > to object properties on the fly with a dynamically created string. Yes. If obj is an object and s is the String "foo", then obj[s] is obj.foo. - Gordon From: flexcoders@yahoogroups.com

RE: [flexcoders] Checking if an Object has as property/element

2007-05-25 Thread Gordon Smith
I'd argue that best-practice is #4, the 'in' operator. #1 is Ecmascript legacy useful for prototype-based inheritence, to tell whether an object has the property or one farther up its prototype chain. Flex makes almost no use of prototype-based inheritence. #2 isn't useful because if it compile

RE: [flexcoders] Question About Drag And Drop

2007-05-24 Thread Gordon Smith
The Sprite class has startDrag() and stopDrag() methods. If your 'something' is an mx.controls.Image, it inherits these methods. Perhaps their parameters have changed, or your Image is something else? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PR

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 language

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: Wednesday,

RE: [flexcoders] Change hardcoded XML for dynamic XML source

2007-05-23 Thread Gordon Smith
> If I brouwse to the stafflist.php file from a browser I get XML in avalid format :-) > How do I get the data into my flex app??? To get XML from PHP, you must set resultFormat="e4x" on your tag. Otherwise, you will receive your data as ActionScript Objects. And, like Tracy said, you need a "r

RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
xcoders@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 relative to the DateField.

RE: [flexcoders] DateChooser X and Y?

2007-05-22 Thread Gordon Smith
quot;dateChooserStyleName" as below but this didn't work: http://www.adobe.com/2006/mxml";> . .myDateChooser{x:200;y:200} Linc From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Wed

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: flexcoders@yahoog

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 data

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] "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] 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 Michael

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

2007-05-07 Thread Gordon Smith
ave asked 5 hours ago ! ;-) > > Thanks Gordon > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Gordon Smith" wrote: > > > > Use rollOver and rollOut instead of mouseOver and mouseOut. > > > > - Gordon > > > &g

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: [f

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: flexcoders@yahoog

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

2007-05-02 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: flexcoders@yahoogroups.c

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 PROTE

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

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

RE: [flexcoders] Click through a Container

2007-05-01 Thread Gordon Smith
h 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!

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] Re: creating instances, addChild question

2007-04-30 Thread Gordon Smith
ontact: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 PROTECTED]> wrote: >

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 instan

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] Click through a Container

2007-04-28 Thread Gordon Smith
ct with the button. 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

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

2007-04-26 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: flexcoders@yah

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 ne

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 . Looping over the elements? Look at some E4X examples. Extracting the and for a particular ? Look at some E4X examples. Creating

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 preve

RE: [flexcoders] E4X Syntax with XMLList

2007-04-25 Thread Gordon Smith
uot;? What if the XMList contained 's and 's and 's, all with label attributes... how would I select the menu element with the correct label attribute? My first guess would be you'd have to first get a list of just menu elements, which would be calling XMLList.elements("men

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 [mai

RE: [flexcoders] A big newbie flex question.

2007-04-25 Thread Gordon Smith
You can access properties and methods declared in your 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] 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 when you start with . - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, Ap

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 selectPl

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 t

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] 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 Man

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: flexcoders@yahoog

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] 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 [mailto:[E

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] boolean not casting ok from string

2007-04-19 Thread Gordon Smith
ecast... why not Boolean too? see, 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 aga

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] 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] 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/db>entry points>tree>thumbnails>main 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 you

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] 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 P

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

2007-04-11 Thread Gordon Smith
DateFormatter). 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

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]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 style

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 DateF

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 ind

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

2007-04-10 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: flexcoders@yahoogroups.com

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

2007-04-10 Thread Gordon Smith
n do in flash with movieclips mc.number = i 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, > >

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 Subj

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

2007-04-10 Thread Gordon Smith
developers not to use name 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

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] 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: [flexc

RE: [flexcoders] Combine Applications

2007-04-09 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 th

RE: [flexcoders] Dynamically rendered UI

2007-04-09 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] SOLVED: How do I tell what I clicked on?

2007-04-09 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] 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 sermo

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 and private function tree1_changeHandler(event:Event):void { // do something to combo, such as set its dataProvider } If for some r

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, f

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 To

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
> 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: // Any other method in this class can access the radio buttons using these variables

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: MXML Schema

2007-04-03 Thread Gordon Smith
find 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

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: flexco

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] 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 cha

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

2007-03-28 Thread Gordon Smith
: Array ) : 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: &#x

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 debugg

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

2007-03-27 Thread Gordon Smith
t: Tuesday, 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

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 x

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 happene

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 PROT

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: flexcoders@yahoogr

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 the compiler generates code similar to var b:Button; ... b = new Button(); b.label = "OK"; b.labelPlacement = "right"; It doesn't know what MXML attributes corre

RE: [flexcoders] Apollo - multi-window communication

2007-03-23 Thread Gordon Smith
.mxml(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 c

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] 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: T

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, 20

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 ord

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

2007-03-22 Thread Gordon Smith
excoders%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 > >

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: f

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 Fe

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, Mar

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: flex

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: Bar

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: Getting "selectedItems" to properly *select*...

2007-03-14 Thread Gordon Smith
ednesday, March 14, 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 wa

RE: [flexcoders] Dynamic Instance of Class & Data Typing

2007-03-14 Thread Gordon Smith
cript apps ... usually a meg difference for bare bones stuff). 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/0

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] Re: Regexp wont work cause of the 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] Dynamic Instance of Class & Data Typing

2007-03-13 Thread Gordon Smith
params ); Thanks, - Kevin On Mar 13, 2007, at 8:17 PM, Gordon Smith wrote: newInstance[someMethodName](someParam) For example, myCanvas["addChild"](new Button()) - Gordon From: fl

RE: [flexcoders] Dynamic Instance of Class & Data Typing

2007-03-13 Thread Gordon Smith
[flexcoders] Dynamic Instance of Class & Data Typing what do you mean 'linked into your app'? the rest I understood. thanks! - Kevin On Mar 13, 2007, at 7:19 PM, Gordon Smith wrote: Yes, assuming that myFavoriteClass is actually linked into your app. You can use th

RE: [flexcoders] Dynamic Instance of Class & Data Typing

2007-03-13 Thread Gordon Smith
ubject: Re: [flexcoders] Dynamic Instance of Class & Data Typing by the same token how would I call a method dynamically. newClass[someMethodName](someParam); I tried the above with no luck. thanks, Kevin On Mar 13, 2007, at 7:19 PM, Gordon Smith wrote: Yes,

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