[flexcoders] How can get the datagridItemRenderer default color

2010-07-20 Thread j2me_soul
I want to change the color when user click the itemrenderer to a custom color and then change it back but I can't get the default color using this.getStyle(backgroundColor) in the addedToStage callback function. the halo skin defaults.css -- DataGrid {

Re: [flexcoders] How can get the datagridItemRenderer default color

2010-07-20 Thread Alex Harui
Normally the renderer is transparent. The background color is drawn onto the DataGrid’s content holder, not the renderer. On 7/19/10 11:02 PM, j2me_soul j2me_s...@163.com wrote: I want to change the color when user click the itemrenderer to a custom color and then change it back but I

Re:Re: [flexcoders] How can get the datagridItemRenderer default color

2010-07-20 Thread j2me_soul
Oh. I want to represent one itemrenderer is clicked by changed the backgroundColor and then changed back. So which function in datagrid I should overrided to achieve this functionality? Or is there a better way to do this ? Thanks Alex. At 2010-07-20 14:17:57,Alex Harui aha...@adobe.com

[flexcoders] Apple Mac detection

2010-07-20 Thread Christophe
Hello, How to know if the client computer is a Mac or a PC ? To add specific instructions for the Mac version. Thank you, Christophe,

Re: [flexcoders] Apple Mac detection

2010-07-20 Thread Karim Beyrouti
Here you go: /** Determines if the current system is a mac */ public static function isMac() : Boolean { return ( Capabilities.os.indexOf( Mac ) != -1 ) } On 20 Jul 2010, at 09:59, Christophe wrote: Hello, How to know if the client computer is a Mac or a PC ? To add specific

[flexcoders] 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-20 Thread Alexander
Hello, I'm trying to port a bigger project from Flash CS4 to Flex 3 and have a problem that the PopUpButton, that is located at the right bottom of my app, opens downwards when I click it and thus is being cut off. Only if I resize the browser, it will open upwards as actually wanted by me. I've

[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-20 Thread Alexander
Sorry for the double post. Also the mangled Unicode string below is the 4 card suit characters. --- In flexcoders@yahoogroups.com, Alexander alexander.far...@... wrote: bids.unshift({label: i+♠♣♦♥.charAt(j%4)});

[flexcoders] ItemEditor | Multiple Components | Focus Issue

2010-07-20 Thread Rajan
Hi http://blogs.adobe.com/aharui/category/item-renderers http://blogs.adobe.com/aharui/DataGridMultiFieldEditor/DataGridMultiFieldEditorTest.swf I looked to this example and i am using the custom item editor. My itemeditor has two components( text input + image ). Everything works fine and i

[flexcoders] smartfox gaming server info required

2010-07-20 Thread Fahim Akhter
Hi, we are trying to outsource the server side of our game applicaton to someone. They recommend using http://www.smartfoxserver.com/ instead of our traditional php/mysql combination. Our game is in actionscript and will be using social aspects of facebook later on. Smartfoxserver is supposed to

[flexcoders] error checking FileStream. readObject?

2010-07-20 Thread Roy Pardi
Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data. The use case is that the user can pick a file to open. While I can filter the allowable files I

Re: [flexcoders] error checking FileStream. readObject?

2010-07-20 Thread Rick Genter
On Jul 20, 2010, at 7:38 AM, Roy Pardi wrote: Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data. The use case is that the user can pick a

[flexcoders] Determining the Web Service Name on the ResultEvent

2010-07-20 Thread Angelo Anolin
Hi FlexCoders, What property of the currentTarget does it specify the name of the method of the web service which triggered it? Thanks. Angelo

Re: [flexcoders] error checking FileStream. readObject?

2010-07-20 Thread Oleg Sivokon
Just use try-catch, I don't think there's anything special for this case.

Re: [flexcoders] e4x and XML in Web Service Calls

2010-07-20 Thread Oleg Sivokon
I think that E4X is the default for the WebService. E4X isn't exactly a format... it's a language extension added to ECMAScript, just like regular expressions language in many other languages, or LinQ in .NET. Essentially, when you did this: myDataXML = XML(evt.result); You have already

[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-20 Thread valdhor
Take a look at http://shemesh.wordpress.com/category/flex/popupbutton/ to see if it may help. --- In flexcoders@yahoogroups.com, Alexander alexander.far...@... wrote: Hello, I'm trying to port a bigger project from Flash CS4 to Flex 3 and have a problem that the PopUpButton, that is

Re: [flexcoders] How can get the datagridItemRenderer default color

2010-07-20 Thread Alex Harui
There is a blinkItemRenderer example on my blog in the older item renderer posts On 7/19/10 11:45 PM, j2me_soul j2me_s...@163.com wrote: Oh. I want to represent one itemrenderer is clicked by changed the backgroundColor and then changed back. So which function in datagrid I should

Re: [flexcoders] ItemEditor | Multiple Components | Focus Issue

2010-07-20 Thread Alex Harui
Your item editor has two focusable components? Then you should have to tab twice in each column. Are you having to tab more than that? On 7/20/10 7:03 AM, Rajan ilikef...@yahoo.com wrote: Hi http://blogs.adobe.com/aharui/category/item-renderers

[flexcoders] Re: Determining the Web Service Name on the ResultEvent

2010-07-20 Thread valdhor
AFAIK it doesn't. If I need to remember which call is coming in I use an mx.rpc.AsyncToken. How it works is that you set an AsyncToken instance to your remoteObject (Or Web Service call) then add a property to the data object of the AsyncToken instance. When the call comes back you can get the

[flexcoders] Re: e4x and XML in Web Service Calls

2010-07-20 Thread valdhor
I think Tracey said at one stage that the default format was Object and not E4X but I could be wrong ;-} --- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: I think that E4X is the default for the WebService. E4X isn't exactly a format... it's a language extension added to

[flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-20 Thread Rajan
Actually, i have same itemeditor in different columns. Column1 1.One Tab - focus on textinput 2.Second Tab - focus on image. 3.Third Tab - Don't know where does the focus goes. Column2 4.Fourth Tab - focus on textinput 5.Fifth Tab - focus on image. I want to fix that on third tab it show go

Re: [flexcoders] e4x and XML in Web Service Calls

2010-07-20 Thread Angelo Anolin
Actually, when I added resultFormat=e4x in the operation declaration inside my webservice tags, the returning XML has some lg values. If for example I set the resultFormat=e4X, then in the resultHandler, it should be that: myXMLData = (event.result) but it seems the XML data is not

Re: [flexcoders] error checking FileStream. readObject?

2010-07-20 Thread Roy Pardi
At 7:53 AM -0700 7/20/10, Rick Genter wrote: On Jul 20, 2010, at 7:38 AM, Roy Pardi wrote: Is there a way to handle a FileStream. readObject error that results when the target file does not contain valid object data? This isn't an IOErrorEvent - but rather an error converting the read data.

Re: [flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-20 Thread Alex Harui
Add a focusIn handler on the app that displays the event.target and event.relatedObject. Maybe that will generate some clues. On 7/20/10 10:25 AM, Rajan ilikef...@yahoo.com wrote: Actually, i have same itemeditor in different columns. Column1 1.One Tab - focus on textinput 2.Second Tab

[flexcoders] Multiple Select DropDownList Custom Component Help

2010-07-20 Thread Netaman
I have a start of a custom component, that should based on the List component, allow for multiple selections. Any help would be greatly appreciated, thanks Randy package com.somecompany.pm.Components { import flash.events.Event; import flash.events.KeyboardEvent; import

[flexcoders] PROGRESS:: Re: Two-way binding via ActionScript

2010-07-20 Thread Matthew
Ok, some progress. If I define the binding in ActionScript before adding it to its parent container, it works halfway; meaning the second binding works, but not the first one. It's not 2-way. Here's the updated AS code: var innerHBox:HBox = new HBox(); var

[flexcoders] Flex/Flash/AIR Screen Record

2010-07-20 Thread Rodrigo Freitas
Hello I'm planning to create an Flex application with a feature that allows the users to record the screen, save and publish the file. This application can be in AIR or in Flex (if possible). For example, imagine a tool where a user can make an analysis of something, record what he is doing in

[flexcoders] Behaviors with DateFields/DateChoosers (Flex 4)

2010-07-20 Thread Blaine von Roeder
Hi folks, I've recently bumped into a small problem with the DateField/DateChooser interaction in Flex 4. With the selectedDate at null, I'd like to have the dropped down DateChooser display the current date, not the Epoch. Is there any easy way to do this without completely reimplementing the

[flexcoders] Re: How to retrieve name property of file object in ArrayCollection

2010-07-20 Thread Amy
That's why God invented ObjectProxy. Google it... --- In flexcoders@yahoogroups.com, mark.embrey mark.c.emb...@... wrote: I'm wanting to retrieve the name property of a file object that is in an ArrayCollection that is acting as my data provider . I'm trying to write a function to do this,

[flexcoders] Re: How to retrieve name property of file object in ArrayCollection

2010-07-20 Thread mark.embrey
Amy, thanks for the suggestion, I'll look it up right now. I'm learning all of this from scratch... how does an ObjectProxy compare to a Value Object? thanks, Mark --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: That's why God invented ObjectProxy. Google it...