RE: [flexcoders] Trying to apply scale9grid to an image loaded at runtime

2008-05-17 Thread Alex Harui
Search the archives. I know scale9 doesn't work everywhere, but I can never remember which scenario. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Friday, May 16, 2008 5:14 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] bug in setMonth() method?

2008-05-17 Thread Alex Harui
I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] bug in setMonth() method?

RE: [flexcoders] Binding Model to selectedItem property not updating

2008-05-17 Thread Alex Harui
The code for a bindable property looks like function set someProperty(value:Object):void { if (value != someProperty) { dispatchEvent(new PropertyChangeEvent()) } } I left some stuff out, but basically, if the value doesn't change, there is no new event so no more

Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread EECOLOR
I would recommend you to use the getQualifiedClassName method, it is a bit less expensive than the describeType method. Greetz Erik On 5/16/08, Paul Whitelock [EMAIL PROTECTED] wrote: Alrighty then, I filed a bug report since the following outputs int: var uintVar:uint = 5;

[flexcoders] XMLListCollection as dataProvider for ToggleButtonBar problem

2008-05-17 Thread Ernesto Casasín
Hi all, I'm trying to populate a ToggleButtonBar component with data hold on a XMLListCollection, but it throws an error TypeError: Error #1034: Error cannot convert mx.collections::[EMAIL PROTECTED] in mx.containers.ViewStack. at

[flexcoders] DateChooser setting displayedMonth, displayedYear does nothing

2008-05-17 Thread rleuthold
Hi, I have a DateChooser in a popUp window. If I set the displayedMonth and displayedYear properties on that DateChooser (after creating the popup), nothing happens. The display is still on the month and year previously selected/displayed. Does anybody have an idea ? code (parent comp):

RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread Glenn Williams
A little off topic I know but I really hope that at some point the Flash Player extends it number handling to include byte, word, long etc. I hate using int or uint when I know I really just need a byte or whatever. It just pains me. I suppose that's due to my machine code background, but

[flexcoders] Re: bug in setMonth() method?

2008-05-17 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I would not guarantee results if you set values that are out of range. So you think that it's ok to fail silently and return a nearly appropriate value rather than throwing an error?

[flexcoders] a simple question of BitmapData

2008-05-17 Thread flexawesome
Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif

Re: [flexcoders] a simple question of BitmapData

2008-05-17 Thread Frederico Garcia
flexawesome escreveu: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source =

[flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread flexawesome
thanks for reply, but I don't know how to use in my file, any example? thanks --- In flexcoders@yahoogroups.com, Frederico Garcia [EMAIL PROTECTED] wrote: flexawesome escreveu: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas?

[flexcoders] ColdFusion Structures in Flex

2008-05-17 Thread Dan Vega
I am new to Flex and I have some questions about data types. I have a method in ColdFusion that returns a structure. I heard that this is automatically converted for me. I was wondering if anyone can point me to article that explains what types in CF are converted to in Flex. I put a break point

Re: [flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread Frederico Garcia
flexawesome escreveu: thanks for reply, but I don't know how to use in my file, any example? thanks --- In flexcoders@yahoogroups.com, Frederico Garcia [EMAIL PROTECTED] wrote: flexawesome escreveu: Hi there, do you know how can I use it to duplicate the image? It seems

Re: [flexcoders] bug in setMonth() method?

2008-05-17 Thread jeff
On Fri, May 16, 2008 at 11:10:21PM -0700, Alex Harui wrote: I would not guarantee results if you set values that are out of range. Flex seems targeted to the business world and we need all the date-management help we can get. Every aspect of parsing, validation, and math that you can think

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Manish Jethani
On 5/16/08, Fiouz [EMAIL PROTECTED] wrote: I'd like to specify a custom Array dataProvider to a mx.controls.ButtonBar instead of binding it to a ViewStack instance. I'm doing the following: var array:Array = new Array(); array.push(chart); // chart is a DisplayObject

[flexcoders] Changing parents throught Drag Drop

2008-05-17 Thread Daniel
Hey guys, Here's the scenario... I have a list of things displayed in a Tree. You can drag one of them, and drop it in a Container. The Container is in charge of creating what the dragged object specifies, generally an UIComponent. If the object is dropped inside a Container, it succesfully sets

Re: [flexcoders] ColdFusion Structures in Flex

2008-05-17 Thread Mike Chabot
Dan, If you have CF8, Google for __type__ That is the key that does the automatic conversion of a structure into a typed object. This shows and example: http://livedocs.adobe.com/coldfusion/8/htmldocs/UseFlexDataService_05.html It is easy to implement and it works well. For the data type

[flexcoders] TabNavigator children

2008-05-17 Thread Daniel
Hey guys, Maybe this is easy, but I just can't figure it out! I have a TabNavigator with a few tabs. At some point at run time I want to dispose the TabNavigator and draw the containers in its tabs. The problem is when I get the TabNavigator children and draw them on screen it draws only one tab

[flexcoders] Re: Dispatching an event from an inline itemrenderer

2008-05-17 Thread jeffreyr6915
Hi Tracy, I tried to remove as much code as possible. Thanks DailyUpdateView.mxml --- public function initApp():void { //Event Listener

Re: [flexcoders] ColdFusion Structures in Flex

2008-05-17 Thread Dan Vega
Here is what I am trying to do and it may make more sense. I have an object coming back from ColdFusion that contains a list of datasource names. When reading through the docs I can tell i need an arrayCollection or XmlLIstCollection to use as the data provider. I also need to list the field

Re: [flexcoders] ColdFusion Structures in Flex

2008-05-17 Thread Jeffry Houser
A structure in CF should turn into a Generic object in Flex (AS3). Have you checked documentation, I'm sure there is a data type map somewhere. It took me less than 5 minutes to find this page http://livedocs.adobe.com/coldfusion/8/htmldocs/UseFlexDataService_10.html . Yes, create a Value

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Fiouz
On Sat, May 17, 2008 at 6:24 PM, Manish Jethani [EMAIL PROTECTED] wrote: What is the reason behind throwing an error when an array of DisplayObject is given? Why would I have to wrap my DisplayObject instances in order to prevent this error? The idea was to prevent you from doing this:

[flexcoders] Getting HTTP status code with HTTPService

2008-05-17 Thread dave_defusion
I've been digging through the documentation and debugged the HTTPResultEvent but I can't see anyway to get the HTTP status code using HTTPService, am I wrong is there some way to get it?

RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread Alex Harui
Aren't there still inefficiencies in accessing packed values that aren't on 32-bit alignments? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Williams Sent: Saturday, May 17, 2008 7:24 AM To: flexcoders@yahoogroups.com Subject: RE:

Re: [flexcoders] ColdFusion Structures in Flex

2008-05-17 Thread Mike Chabot
If you are new to Flex you can use a generic array collection to populate a datagrid without any major issues. They work fine. You can go back later and turn it into an array of typed objects if you encounter a situation where this is beneficial. As for your question, the list of data sources is

[flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread flexawesome
Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED]

RE: [flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread Jim Hayes
Call loader.load() rather than addchild() ? Perhaps I don't understand your question? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: 17 May 2008 23:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: a simple

Re: [flexcoders] TabNavigator children

2008-05-17 Thread Paul Andrews
Why would you have a TabNavigator - something that supports the tabbed interface paradigm, showing only one tab at a time, then go ahead and try and make it behave like something else? Why don't you have a TabBar, then manage the displayed pages (containers) yourself? You can then dispose of

RE: [flexcoders] Changing parents throught Drag Drop

2008-05-17 Thread Rick Winscot
Can you share a code sample? Without taking a look at what you are doing. we could be just shooting blindly at what the problem is. First thing is first - are you removing the child from its present container and then re-adding it to the new target? The drag manager doesn't by default handle those

[flexcoders] Re: Dispatching an event from an inline itemrenderer

2008-05-17 Thread jeffreyr6915
--- In flexcoders@yahoogroups.com, jeffreyr6915 [EMAIL PROTECTED] wrote: Hi Tracy, I tried to remove as much code as possible. Thanks DailyUpdateView.mxml --- public function initApp():void {

Re: [flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread Sherif Abdou
I am guessing you need to do a deep copy private function clone(source:Object):* { var copier:ByteArray = new ByteArray(); copier.writeObject(source); copier.position = 0; return(copier.readObject()); } or use the ObjectUtil, if i understand you correctly.

[flexcoders]Create a new flex project from ANT

2008-05-17 Thread dorkie dork from dorktown
I'm having a long day. I need to create a new Flex Project from ANT from within Flex Builder. I normally just goto File New Flex Project but I need to automate it. Can someone give me a hint how to do this? best cigars, dorkiedorkfromdorktown

RE: [flexcoders] Re: a simple question of BitmapData

2008-05-17 Thread Alex Harui
SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Saturday, May 17, 2008 3:16 PM To:

RE: [flexcoders] Re: Dispatching an event from an inline itemrenderer

2008-05-17 Thread Alex Harui
It looks like you're listening for the event from currentStickNote, which is not the renderer that dispatches the event. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeffreyr6915 Sent: Saturday, May 17, 2008 7:33 PM To:

RE: [flexcoders] Re: bug in setMonth() method?

2008-05-17 Thread Alex Harui
Yes. In Flex we have a GIGO policy. garbage in, garbage out. We have enough complaints about runtime memory usage, swf size and performance that adding parameter checking was not practical. The player does some checking, but not everywhere as well for the same reason. That said, we hope to

RE: [flexcoders] DateChooser setting displayedMonth, displayedYear does nothing

2008-05-17 Thread Alex Harui
I'd make a simple test case and see if it works there. Are you sure your compDateRange has two elements with valid values? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rleuthold Sent: Saturday, May 17, 2008 6:05 AM To:

RE: [flexcoders] XMLListCollection as dataProvider for ToggleButtonBar problem

2008-05-17 Thread Alex Harui
Sorry, that is this bug: https://bugs.adobe.com/jira/browse/SDK-11357 You'll have to convert to an ArrayCollection -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ernesto Casasín Sent: Saturday, May 17, 2008 1:44 AM To:

[flexcoders] flex3 sdk and eclipse 3.2

2008-05-17 Thread Gustavo Duenas
Hi, anyone knows a way to make eclipse 3.2 to work with the flex sdk? regards, Gustavo P.s: any tutorial could be nice

Re: [flexcoders] Why would mx.controls.NavBar.dataProvider not accept an array of DisplayObject? (3.0.0)

2008-05-17 Thread Ernesto Casasín
Hi, what if you use vs.dataProvider.removeItemAt(2) to remove completely the form button from your ButtonBar, later you could add it using vs.dataProvider.addItem(yourObject) holpe it helps It's unfortunate that it is prevented though, as my goal was to selectively display ViewStack