Re: [flexcoders] How can I show validation error message with ActionScript progrmming?

2005-05-12 Thread michael keirnan
the errorString property of UIComponent causes the red borders and rollover error tip. errorString is set by the default validation listener when it gets errors. so you'll need to do something like this: - write a validation listener that does not set errorString, but instead presents the

Re: [flexcoders] Default Text Color?

2005-05-12 Thread michael keirnan
Matt Chotin wrote: Yep. I just use the calculator in Windows in scientific mode to help me out for stuff like this J ugh, why go through all that trouble? perl -e 'printf("%x\n", "734012")' ;) /mgk From: flexcoders@yahoogroups.com

Re: [flexcoders] Split up flex-config.xml

2005-05-03 Thread michael keirnan
i haven't tried it, but the XML entity include might work, depending on the parser. http://ant.apache.org/faq.html#xml-entity-include /mgk Peter Farland wrote: Hi Yokota, only one configuration file can be used by the AMFGatewayServlet. The whitelist.parent.node points the gateway's

Re: [flexcoders] binding error - from Flex?

2005-05-02 Thread michael keirnan
also, if you run mxmlc or compc against your source tree the generated files are placed right in your source tree. (perhaps obvious if one thinks about it, but i did not think about it until it bit me). this can lead to various problems during the typical development process:

Re: [flexcoders] Setting Text Property of Label Control Dynamically

2005-05-02 Thread michael keirnan
it looks like you want to use data binding here. in your mxml you can do this: mx:Label id="lblListValue" text="{lstCanvasSize.selectedItem.label}"/ and comment out this line in your AS: //lblListValue.text = strSize; if you haven't already, definitely check out the sections in the Flex

Re: [flexcoders] Re: help with setInterval...

2005-04-23 Thread michael keirnan
: Re: [flexcoders] Re: help with setInterval... Does not work. On 4/12/05, michael keirnan [EMAIL PROTECTED] wrote: it would be good to go through the Flex UG sections on scoping and event listeners. in the long run understanding scope is invaluable. in your test case the following might

Re: [flexcoders] Re: help with setInterval...

2005-04-12 Thread michael keirnan
it would be good to go through the Flex UG sections on scoping and event listeners. in the long run understanding scope is invaluable. in your test case the following might work: setInterval(mx.utils.Delegate.create(this, upCount, 1000); /mgk terry_hrtn wrote: Matt...now I'm getting

Re: [flexcoders] Acessing a class

2005-04-08 Thread michael keirnan
from the code fragments below it looks like you never assign the objPropostaBusca variable to an instance of the class you want. it depends on the rest of your app and what you're trying to do of course, but something like this might work: mx:Script var objPropostaBusca:as_PropostaBusca =

Re: [flexcoders] the difference between List.getItemAt and List.getChildAt

2005-04-08 Thread michael keirnan
the two APIs are not intended to be similar, although perhaps the names themselves might lead one to think they are related at first glance. getItemAt() returns the specified item from the list's data provider. getChildAt() is inherited from View which is a base class that provides

[flexcoders] Re: Inserting a blank row in the middle of a datagrid.

2005-04-06 Thread Michael Keirnan
if you have a look at the properties of DataGrid in the docs (like rowHeight) you'll see various ways to adjust how rows and columns are displayed, including substituing your own rowRenderer if you want to get fancy. generally it is better to adjust properties that control presentation as

generating ActionScript doc (ala javadoc)

2005-03-04 Thread Michael Keirnan
apologies in advance if this has been asked and answered. i searched the archives (honest). i'm curious what folks are doing for generating documentation for their AS2 and MXML code. the freeware tools appear to be in the early stages as yet. here are some tools i've run across (but not yet