Re: [flexcoders] Re: popup is taller than browser window/ vertical scroll bar??
Have you tried setting maxHeight={Application.application.height} on the popup? On Sat, Jun 28, 2008 at 3:46 PM, pfk456cr [EMAIL PROTECTED] wrote: josh-- thanks for reply. i want the scrollbar to appear on the popup not the application. is there any way to make that happen? thanks again. pat --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You need to force the popup to not be bigger than the browser window with maxHeight or something similar. Popups that are too big won't cause a scrollbar to appear on the application because in the display list they're parented by systemManager, not the Application itself. -Josh On Sat, Jun 28, 2008 at 12:01 PM, pfk456cr [EMAIL PROTECTED] wrote: i have some popups that have their height property greater than the height of the browser window. the close button on the popup is getting clipped and setting verticalScrollPolicy on doesn't function. anyone have any ideas how i can force the popup (based on canvas) to have vertical scroll bars that function, or any other good ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: How to enable the enter key for all buttons onFocus
Shows what I know :) On Sun, Jun 29, 2008 at 4:32 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: First a caveat: I's a bad idea. Pressing enter to submit an entire form and spacebar to click a specific button is a fairly standard UI practice, and something you shouldn't change without a good reason. Not sure about what happens in other OS's, but in the vast majority of Windows Applications, it is _very_ standard behavior for the button that is in focus to activate when the user presses the enter key. The exception is for checkboxes and radio buttons. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: Create border for inner subgrids within a grid - How?
--- In flexcoders@yahoogroups.com, pbrendanc [EMAIL PROTECTED] wrote: Alex, Thanks - I think that approach will require me to build multiple subgrids and treat each of these subgrid as a separate griditem - thus creating additional nesting, rather than 1 large grid. I was hoping for to avoid that - is there any other way to accomplish this (I suspect not). Hi, Patrick; You don't say what your component is, but I'm going to assume it's an extended button. If you extend instead from a component that supports borderSides as a style (any container), you could try something like this: mx:Style .topLeft{ borderColor:#00; borderSides: 'top left'; } .topRight{ borderColor:#00; borderSides: 'top right'; } .bottomLeft{ borderColor:#00; borderSides: 'bottom left'; } .bottomRight{ borderColor:#00; borderSides: 'bottom right'; } /mx:Style Then, in your script block: for (var i:Number = 0; inrows; i++) { var myGridRow:GridRow = new GridRow(); // for each col add child controls for (var j:Number = 0; jncols; j++) { var myGridItem:GridItem = new GridItem(); //even rows will be tops, even columns lefts switch (true) { case(i%2==0j%2==0): myGridItem.styleName='topLeft'; break; case(i%2==0): myGridItem.styleName='topRight'; break; case(j%2==0): myGridItem.styleName='bottomLeft'; break; default: myGrid.styleName='bottomRight'; }//end switch myGridItem.addChild (myBtn); //Add cell to row myGridRow.addChild (myGridItem); } // end col loop // Add row to grid myGrid.addChild(myGridRow); }
[flexcoders] Re: synchronous events in flex
A sneaky way to accomplish synchronous http request in Flash is via javascript bridge where it is possible to can make a synchronous xmlhttprequest. Check out the page below which contrasts asynchronous / synchronous javascript. http://ajaxpatterns.org/XMLHttpRequest_Call#Asynchronous_Calls --- In flexcoders@yahoogroups.com, JWOpitz [EMAIL PROTECTED] wrote: There are many ways to do what you are looking for, though in a asyncronous manner. Ralf suggested binding a view to a prop on the model, upon updating will update the view. That is probably the most OO way of doing it within the MVC framework. But it also is harder to do more view-specific validation. As for disallowing the user to interact with the app until a response is received, you could basically have your app in a disabled mode until your IResponder triggers on the response. Upon result or fault tell the model to allow further interaction and subsequent validation if applicable. Awhile back I wrote some articles on doing just this when your design requires a bit more in terms of validation and error handling. You can read up on it here. Would be interested in your thoughts as well. http://jwopitz.wordpress.com/2008/04/24/tutorial-handling-service-validation-errors-cairngorm/ http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-2/ http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-3/ --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: You could either set a bindable property on your model, or pass in a object, which does the result handling. Cheers Ralf. On Sat, Jun 28, 2008 at 8:09 PM, parjan@ wrote: You mean if i have to display an alert message 'Customer name already exists' them i have to put this code in result method as follows, Basically this is Command class which implements IResponder . public function result( event : Object ) : void { // Some processing Alert.show( 'Name XYZ Already Exists' ) ; CursorManager.removeBusyCursor(); Application.application.enabled =true ; } If you meant this then don't you think it is not good design , now suppose if instead of Alert message i am going to display inline error message on the view then i have to access view in my command class to display error message. , - Original Message - From: Paul Andrews paul@ To: flexcoders@yahoogroups.com Sent: Sat, 28 Jun 2008 19:00:07 +0100 Subject: Re: [flexcoders] synchronous events in flex - Original Message - From: parjan@ To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 2:54 PM Subject: [flexcoders] synchronous events in flex Hi Can anyone tell me how to write synchronous events in flex application? There are no synchronous events. I am calling an Httpservice on focus out event of text field this service checks name duplication. I want my application to wait for service to finish and then do some processing Supply a result handler for the httpservice and put your code in that. It will be called asynchronously when the result is ready. Flex doesn't do waiting, except through event handlers. Thanks in advance Paul
[flexcoders] Re: Flex3 : TabNavigator : problem skinning first last tab bar
Why do your style names have two periods in front of them? ..tabBarTab should be .tabBarTab HTH, Ben --- In flexcoders@yahoogroups.com, Yochikoh Haruomi [EMAIL PROTECTED] wrote: Hi List, I have a problem skinning the first last tab bar in flex3. Only the middle tab works.. My first tab bar only has 2 pieces of graphic. One for unselected state and another for selected state. The problem is that the first tab bar animates itself through different states when it is supposed to stop at the up state. Same thing happens to the last tab bar. This is how it looks like: http://krittiya.com/test/SkinTabNavFlex3/bin-release/SkinTabNavFlex3.html ( right click to view source) I used Flex Skin template in flash cs3 to create the skin. I duplicated the symbol of the middle tab to create the first tab and last tab. And assigned them new linkage names. And here is my css code. // css code TabBar { tabStyleName : tabBarTab; firstTabStyleName: tabBarFirstTab; lastTabStyleName : tabBarLastTab; } ..tabBarTab { skin: Embed(skinClass=TabBar$tab_mid_skin); } ..tabBarFirstTab { skin: Embed(skinClass=TabBar$tab_first_skin); } ..tabBarLastTab { skin: Embed(skinClass=TabBar$tab_last_skin); } // The skins fla is here: http://krittiya.com/test/SkinTabNavFlex3/tabBarSkin.fla.zip Did I do anything wrong ? Anybody experiences the same problem ? I'm migrating a project from flex 2 to 3 . I dont have this problem in flex 2. Any suggestion is appreciated .. Thanks ! Yoko
Re: [flexcoders] Re: synchronous events in flex
But what would be the point of it? - Original Message - From: swidnikk [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, June 29, 2008 2:36 PM Subject: [flexcoders] Re: synchronous events in flex A sneaky way to accomplish synchronous http request in Flash is via javascript bridge where it is possible to can make a synchronous xmlhttprequest. Check out the page below which contrasts asynchronous / synchronous javascript. http://ajaxpatterns.org/XMLHttpRequest_Call#Asynchronous_Calls --- In flexcoders@yahoogroups.com, JWOpitz [EMAIL PROTECTED] wrote: There are many ways to do what you are looking for, though in a asyncronous manner. Ralf suggested binding a view to a prop on the model, upon updating will update the view. That is probably the most OO way of doing it within the MVC framework. But it also is harder to do more view-specific validation. As for disallowing the user to interact with the app until a response is received, you could basically have your app in a disabled mode until your IResponder triggers on the response. Upon result or fault tell the model to allow further interaction and subsequent validation if applicable. Awhile back I wrote some articles on doing just this when your design requires a bit more in terms of validation and error handling. You can read up on it here. Would be interested in your thoughts as well. http://jwopitz.wordpress.com/2008/04/24/tutorial-handling-service-validation-errors-cairngorm/ http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-2/ http://jwopitz.wordpress.com/2008/04/25/tutorial-handling-service-validation-errors-cairngorm-part-3/ --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelberg@ wrote: You could either set a bindable property on your model, or pass in a object, which does the result handling. Cheers Ralf. On Sat, Jun 28, 2008 at 8:09 PM, parjan@ wrote: You mean if i have to display an alert message 'Customer name already exists' them i have to put this code in result method as follows, Basically this is Command class which implements IResponder . public function result( event : Object ) : void { // Some processing Alert.show( 'Name XYZ Already Exists' ) ; CursorManager.removeBusyCursor(); Application.application.enabled =true ; } If you meant this then don't you think it is not good design , now suppose if instead of Alert message i am going to display inline error message on the view then i have to access view in my command class to display error message. , - Original Message - From: Paul Andrews paul@ To: flexcoders@yahoogroups.com Sent: Sat, 28 Jun 2008 19:00:07 +0100 Subject: Re: [flexcoders] synchronous events in flex - Original Message - From: parjan@ To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 2:54 PM Subject: [flexcoders] synchronous events in flex Hi Can anyone tell me how to write synchronous events in flex application? There are no synchronous events. I am calling an Httpservice on focus out event of text field this service checks name duplication. I want my application to wait for service to finish and then do some processing Supply a result handler for the httpservice and put your code in that. It will be called asynchronously when the result is ready. Flex doesn't do waiting, except through event handlers. Thanks in advance Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] synchronous events in flex
- Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 7:09 PM Subject: Re: [flexcoders] synchronous events in flex You mean if i have to display an alert message 'Customer name already exists' them i have to put this code in result method as follows, Basically this is Command class which implements IResponder . public function result( event : Object ) : void { // Some processing Alert.show( 'Name XYZ Already Exists' ) ; CursorManager.removeBusyCursor(); Application.application.enabled =true ; } If you meant this then don't you think it is not good design , now suppose if instead of Alert message i am going to display inline error message on the view then i have to access view in my command class to display error message. Views should be bound to the model or respond to events. Your command class doesn't need to poke around in views. Paul , - Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sat, 28 Jun 2008 19:00:07 +0100 Subject: Re: [flexcoders] synchronous events in flex - Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 2:54 PM Subject: [flexcoders] synchronous events in flex Hi Can anyone tell me how to write synchronous events in flex application? There are no synchronous events. I am calling an Httpservice on focus out event of text field this service checks name duplication. I want my application to wait for service to finish and then do some processing Supply a result handler for the httpservice and put your code in that. It will be called asynchronously when the result is ready. Flex doesn't do waiting, except through event handlers. Thanks in advance Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Browser Container
On 27 Jun 2008, at 18:16, Mike Chang wrote: what if AIR is really not an option? As far as I can see, from what you described so far, AIR really is an option. Take a read of the documentation against your requirements. I HAVE to deploy it through a browser because of an existing framework. AIR contains a browser. I doubt you will get any clearer answer without providing more detail of the problem you are trying to solve paul -- Paul Evans http://www.creative-cognition.co.uk/ http://blog.creacog.co.uk/
[flexcoders] Smooth main chart drag effect on Google Finance
Hi all, I'm putting together (yet another) Google Finance-esque chart widget. I've basically used Brendan Meutzner's example from [1] as my starting point - thanks Brendan! However, I've run into a problem when dragging the main chart. On Google's widget, you can drag the main chart with a very smooth action - the canvas actually moves with the mouse on a pixel-by-pixel basis. With all the existing re-makes of Google's widget (that I can find), the main chart is drawn from a subset of the values currently selected. So the chart re-draws when you've dragged the mouse sufficiently far that one data point is removed and another is added. With a large number of points visible in the chart, this action approaches a smooth motion. However, when you've only got a small number of points being shown the graph jumps across the chart. The effect is even worse if the points are not equally distributed along the x-axis, because then the jumps are not even consistent in length. I'm relatively new to Flex, especially Flex Charts, but I think Google must be doing something very different. Perhaps having an oversized chart in the background, and then adding to the series when the drag requires it? Does anyone have any idea how to achieve something like this? Many thanks, Matt. [1] http://www.meutzner.com/blog/index.cfm/2007/8/14/Google-Finance-with-Flex-Code
[flexcoders] dataGrid - hightlight row
I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks
RE: [flexcoders] dataGrid - hightlight row
drawRowBackground runs often, not just at creation time, but it does run before drawColumnBackgrounds. You can use the examples from my blog that have customized cell backgrounds and skip the whole drawRow/drawColumn stuff. You can also try switching the z order of the row and column backgrounds. That's not officially supported, but some sort of getChildByName(lines) and getChildByName(rowBGs) and testing getChildIndex and using setChildIndex might allow you to switch the z order. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dataGrid - hightlight row I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks
[flexcoders] Re: dataGrid - hightlight row
I am trying this in dataGrid: trace(listContent.getChildByName(rowBGs)); but it returns null. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: drawRowBackground runs often, not just at creation time, but it does run before drawColumnBackgrounds. You can use the examples from my blog that have customized cell backgrounds and skip the whole drawRow/drawColumn stuff. You can also try switching the z order of the row and column backgrounds. That's not officially supported, but some sort of getChildByName(lines) and getChildByName(rowBGs) and testing getChildIndex and using setChildIndex might allow you to switch the z order. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dataGrid - hightlight row I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks
[flexcoders] dispatching hitdata manually: bubble chart
Hi, I have a requirement like I need to show data tips in my chart manually, not only when the mouse is passing over data points. How to use the HitData Object so that I get the data points of the object? Basically I need to a way to dispatch the hit data manually without the mouse passing over the data point? I have a datagrid and a bubble chart. I want to click on an item in the datagrid and dispatching some kind of event/function to show datatip on the bubble chart. Please help... Thanks Regards, Sudha.
[flexcoders] Syntax Errors and Project Clean
My swf file is not being generated and project clean does not find any errors. I tried enable view source and that worked for a while now the problem is back. Is there anyway to force an identification of errors that cause the swf file to not update? Thanks Dan Pride
[flexcoders] A very simple component in AS :(
Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa /
Re: [flexcoders] A very simple component in AS :(
A few things: You'll need to override measure(), like so: protected override function measure() : void { measuredWidth = _txt.measuredWidth; measuredHeight = _txt.measuredHeight; } and updateDisplayList(), like so: protected override function updateDisplayList(w:Number, h:Number) : void { _txt.move(0,0); _txt.setActualSize(Math.min(_txt.measuredWidth, w), Math.min(_txt.measuredHeight, h)); } That should do it. But this is typed in gmail, not Flex so it's probably got typos in it :) -Josh On Mon, Jun 30, 2008 at 9:50 AM, flexawesome [EMAIL PROTECTED] wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: A very simple component in AS :(
Basically thats not how to create a component for flex. The value for title has not been set at the time the constructor runs. You should look at Flex's component invalidation cycle. createChildren(); commitProperties(); Its all in the docs. --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa /
[flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?
Hello, when I do this: dispatchEvent( new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE) ); My bindings do not execute. When I do this: dispatchEvent( new Event('propertyChange') ); They do (using default binding with no meta data specified). What is what is the PropertyChangeEvent.PROPERTY_CHANGE event used for if not for binding? Thanks for any input! ~Aaron
Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?
Off the top of my head, when you instantiate a PropertyChangeEvent instead of an Event, the constructor is expecting more useful information about what field changed and when that information is missing / invalid the requisite bindings don't fire. But when the binding handlers get a generic event of name PropertyChangeEvent.PROPERTY_CHANGE, they just assume the entire object has been updated and update all bindings to that object. All just a guess tho ;-) -Josh On Mon, Jun 30, 2008 at 11:48 AM, Aaron Miller [EMAIL PROTECTED] wrote: Hello, when I do this: dispatchEvent( new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE) ); My bindings do not execute. When I do this: dispatchEvent( new Event('propertyChange') ); They do (using default binding with no meta data specified). What is what is the PropertyChangeEvent.PROPERTY_CHANGE event used for if not for binding? Thanks for any input! ~Aaron -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?
It is used as the default Binding event and you can create one using the static method createUpdateEvent on the PropertyChangeEvent class var changeEvent:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(changedObject,changedProperty,oldVal,newVal); dispatchEvent(changeEvent); That should fire the binding for the property you've updated. http://livedocs.adobe.com/flex/3/langref/index.html?mx/events/PropertyChangeEvent.htmlmx/events/class-list.html On Sun, Jun 29, 2008 at 8:56 PM, Josh McDonald [EMAIL PROTECTED] wrote: Off the top of my head, when you instantiate a PropertyChangeEvent instead of an Event, the constructor is expecting more useful information about what field changed and when that information is missing / invalid the requisite bindings don't fire. But when the binding handlers get a generic event of name PropertyChangeEvent.PROPERTY_CHANGE, they just assume the entire object has been updated and update all bindings to that object. All just a guess tho ;-) -Josh On Mon, Jun 30, 2008 at 11:48 AM, Aaron Miller [EMAIL PROTECTED] wrote: Hello, when I do this: dispatchEvent( new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE) ); My bindings do not execute. When I do this: dispatchEvent( new Event('propertyChange') ); They do (using default binding with no meta data specified). What is what is the PropertyChangeEvent.PROPERTY_CHANGE event used for if not for binding? Thanks for any input! ~Aaron -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: A very simple component in AS :(
thank you Josh, I am give a try. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: A few things: You'll need to override measure(), like so: protected override function measure() : void { measuredWidth = _txt.measuredWidth; measuredHeight = _txt.measuredHeight; } and updateDisplayList(), like so: protected override function updateDisplayList(w:Number, h:Number) : void { _txt.move(0,0); _txt.setActualSize(Math.min(_txt.measuredWidth, w), Math.min(_txt.measuredHeight, h)); } That should do it. But this is typed in gmail, not Flex so it's probably got typos in it :) -Josh On Mon, Jun 30, 2008 at 9:50 AM, flexawesome [EMAIL PROTECTED] wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] what is PropertyChangeEventt.PROPERTY_CHANGE used for?
Ahh, so that's how it works. I didn't realize there was more to the constructor then a normal event. That will teach me not to check the API reference first. ;-) Thank you both for the info! ~Aaron On Sun, Jun 29, 2008 at 7:02 PM, Daniel Gold [EMAIL PROTECTED] wrote: It is used as the default Binding event and you can create one using the static method createUpdateEvent on the PropertyChangeEvent class var changeEvent:PropertyChangeEvent = PropertyChangeEvent.createUpdateEvent(changedObject,changedProperty,oldVal,newVal); dispatchEvent(changeEvent); That should fire the binding for the property you've updated. http://livedocs.adobe.com/flex/3/langref/index.html?mx/events/PropertyChangeEvent.htmlmx/events/class-list.html On Sun, Jun 29, 2008 at 8:56 PM, Josh McDonald [EMAIL PROTECTED] wrote: Off the top of my head, when you instantiate a PropertyChangeEvent instead of an Event, the constructor is expecting more useful information about what field changed and when that information is missing / invalid the requisite bindings don't fire. But when the binding handlers get a generic event of name PropertyChangeEvent.PROPERTY_CHANGE, they just assume the entire object has been updated and update all bindings to that object. All just a guess tho ;-) -Josh On Mon, Jun 30, 2008 at 11:48 AM, Aaron Miller [EMAIL PROTECTED] wrote: Hello, when I do this: dispatchEvent( new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE) ); My bindings do not execute. When I do this: dispatchEvent( new Event('propertyChange') ); They do (using default binding with no meta data specified). What is what is the PropertyChangeEvent.PROPERTY_CHANGE event used for if not for binding? Thanks for any input! ~Aaron -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: A very simple component in AS :(
It might work, but you really should look into reading some tutorials on the lifecycle of Flex components. Here's a few brief things: * You want to create child components in the createChildren() method, not in your constructor. Your component may be instantiated long before it needs to have its children created. * Override the measure() function to set measuredWidth and measuredHeight, but the actual size will be set by your container * Override updateDisplaylist() to size and move your child components. Get their preferred sizes using child.getExplicitOrMeasuredWidth / Height in measure(), but set them using setActualSize(), not by setting the width and height. Position them with move() * There's a lot of good tutorials out there, google is your friend :) -Josh On Mon, Jun 30, 2008 at 12:03 PM, flexawesome [EMAIL PROTECTED] wrote: thank you Josh, I am give a try. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: A few things: You'll need to override measure(), like so: protected override function measure() : void { measuredWidth = _txt.measuredWidth; measuredHeight = _txt.measuredHeight; } and updateDisplayList(), like so: protected override function updateDisplayList(w:Number, h:Number) : void { _txt.move(0,0); _txt.setActualSize(Math.min(_txt.measuredWidth, w), Math.min(_txt.measuredHeight, h)); } That should do it. But this is typed in gmail, not Flex so it's probably got typos in it :) -Josh On Mon, Jun 30, 2008 at 9:50 AM, flexawesome [EMAIL PROTECTED] wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Re: dataGrid - hightlight row
Should work. Debug into it. Make sure it has been created. You might be asking too soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: dataGrid - hightlight row I am trying this in dataGrid: trace(listContent.getChildByName(rowBGs)); but it returns null. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: drawRowBackground runs often, not just at creation time, but it does run before drawColumnBackgrounds. You can use the examples from my blog that have customized cell backgrounds and skip the whole drawRow/drawColumn stuff. You can also try switching the z order of the row and column backgrounds. That's not officially supported, but some sort of getChildByName(lines) and getChildByName(rowBGs) and testing getChildIndex and using setChildIndex might allow you to switch the z order. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 10:18 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] dataGrid - hightlight row I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks
[flexcoders] Getting Started with Java for use with BlazeDS/LCDS
okay so I want to get going with Blazeds or live cycle data services. but I'm not sure where to start because I've been playing around a little bit and it seems like you have to know Java to create all these classes for the server-side code. Could anybody give me a heads up on lcds/blazeds specific tutorials of some kind? referring to the server side code? Thanks, Dan
[flexcoders] List for SDK development?
Hey guys, Just a quick question - is there a list for SDK development stuff? A place I can ask questions regarding the tests, procedures for adding things that broaden the API, best practices, etc instead of clogging up this list? -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] init function in component
Hi, I have a mxml component page mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() show = init() mx:Script ![CDATA[ private function init():void { objuserID = new uuid(); userID = objuserID.createUUID(); } ]] /mx:Script ... createUUID() is like a random function, but my problem is I get same number when I try to access the page. It should get different page when I access the page. I do not know why this happen Thanks for help Mark
[flexcoders] Re: A very simple component in AS :(
right, I am reading the help file. :) If you could poste some tutorials of components in AS, that would be great :) ( I didn't find 2 much tutorials about this ) Thanks --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: It might work, but you really should look into reading some tutorials on the lifecycle of Flex components. Here's a few brief things: * You want to create child components in the createChildren() method, not in your constructor. Your component may be instantiated long before it needs to have its children created. * Override the measure() function to set measuredWidth and measuredHeight, but the actual size will be set by your container * Override updateDisplaylist() to size and move your child components. Get their preferred sizes using child.getExplicitOrMeasuredWidth / Height in measure(), but set them using setActualSize(), not by setting the width and height. Position them with move() * There's a lot of good tutorials out there, google is your friend :) -Josh On Mon, Jun 30, 2008 at 12:03 PM, flexawesome [EMAIL PROTECTED] wrote: thank you Josh, I am give a try. --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote: A few things: You'll need to override measure(), like so: protected override function measure() : void { measuredWidth = _txt.measuredWidth; measuredHeight = _txt.measuredHeight; } and updateDisplayList(), like so: protected override function updateDisplayList(w:Number, h:Number) : void { _txt.move(0,0); _txt.setActualSize(Math.min(_txt.measuredWidth, w), Math.min(_txt.measuredHeight, h)); } That should do it. But this is typed in gmail, not Flex so it's probably got typos in it :) -Josh On Mon, Jun 30, 2008 at 9:50 AM, flexawesome flexawesome@ wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: A very simple component in AS :(
Kinda busy today, but here's a couple: http://msimtiyaz.wordpress.com/flex/adobe-flex-component-instantiation-life-cycle/ http://nwebb.co.uk/blog/?p=46 http://www.adobe.com/devnet/flex/quickstart/building_components_in_as/ A really good place to start is looking into the API docs for UIComponent and Canvas, and just sort of browsing around, reading up on any method that you don't understand. A lot of custom component creation is about overriding protected methods, because there's a lot of glue in UIComponent that you want to be able to rely on, so pay particular attention to the protected overrides, and to the invalidateXXX() methods. -Josh On Mon, Jun 30, 2008 at 1:45 PM, flexawesome [EMAIL PROTECTED] wrote: right, I am reading the help file. :) If you could poste some tutorials of components in AS, that would be great :) ( I didn't find 2 much tutorials about this ) Thanks --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: It might work, but you really should look into reading some tutorials on the lifecycle of Flex components. Here's a few brief things: * You want to create child components in the createChildren() method, not in your constructor. Your component may be instantiated long before it needs to have its children created. * Override the measure() function to set measuredWidth and measuredHeight, but the actual size will be set by your container * Override updateDisplaylist() to size and move your child components. Get their preferred sizes using child.getExplicitOrMeasuredWidth / Height in measure(), but set them using setActualSize(), not by setting the width and height. Position them with move() * There's a lot of good tutorials out there, google is your friend :) -Josh On Mon, Jun 30, 2008 at 12:03 PM, flexawesome [EMAIL PROTECTED] wrote: thank you Josh, I am give a try. --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote: A few things: You'll need to override measure(), like so: protected override function measure() : void { measuredWidth = _txt.measuredWidth; measuredHeight = _txt.measuredHeight; } and updateDisplayList(), like so: protected override function updateDisplayList(w:Number, h:Number) : void { _txt.move(0,0); _txt.setActualSize(Math.min(_txt.measuredWidth, w), Math.min(_txt.measuredHeight, h)); } That should do it. But this is typed in gmail, not Flex so it's probably got typos in it :) -Josh On Mon, Jun 30, 2008 at 9:50 AM, flexawesome flexawesome@ wrote: Hey there, I was trying to create a very simple component in as, there was no error in compiling. However, I was unable to see the text. :( can you take a quick look? thank you === AS package { import mx.controls.Text; import mx.core.UIComponent; public class Footer extends UIComponent { public var title:String; private var _txt:Text; public function Footer() { super.setActualSize(50 , 20 ); _txt= new Text(); _txt.text = title; addChild( _txt ); } } } in main.mxml === local:newText title=asdfasdfa / -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: josh@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Flex3 : TabNavigator : problem skinning first last tab bar
Thanks for taking a look Ben. It's actually just one period. Another period was added automatically when I pasted the code in the email.. http://krittiya.com/test/SkinTabNavFlex3/bin-release/srcview/index.html --- On Sun, 6/29/08, ben.clinkinbeard [EMAIL PROTECTED] wrote: From: ben.clinkinbeard [EMAIL PROTECTED] Subject: [flexcoders] Re: Flex3 : TabNavigator : problem skinning first last tab bar To: flexcoders@yahoogroups.com Date: Sunday, June 29, 2008, 1:59 PM Why do your style names have two periods in front of them? ..tabBarTab should be .tabBarTab HTH, Ben --- In flexcoders@yahoogroups.com, Yochikoh Haruomi [EMAIL PROTECTED] wrote: Hi List, I have a problem skinning the first last tab bar in flex3. Only the middle tab works.. My first tab bar only has 2 pieces of graphic. One for unselected state and another for selected state. The problem is that the first tab bar animates itself through different states when it is supposed to stop at the up state. Same thing happens to the last tab bar. This is how it looks like: http://krittiya.com/test/SkinTabNavFlex3/bin-release/SkinTabNavFlex3.html ( right click to view source) I used Flex Skin template in flash cs3 to create the skin. I duplicated the symbol of the middle tab to create the first tab and last tab. And assigned them new linkage names. And here is my css code. // css code TabBar { tabStyleName : tabBarTab; firstTabStyleName: tabBarFirstTab; lastTabStyleName : tabBarLastTab; } ..tabBarTab { skin: Embed(skinClass=TabBar$tab_mid_skin); } ..tabBarFirstTab { skin: Embed(skinClass=TabBar$tab_first_skin); } ..tabBarLastTab { skin: Embed(skinClass=TabBar$tab_last_skin); } // The skins fla is here: http://krittiya.com/test/SkinTabNavFlex3/tabBarSkin.fla.zip Did I do anything wrong ? Anybody experiences the same problem ? I'm migrating a project from flex 2 to 3 . I dont have this problem in flex 2. Any suggestion is appreciated .. Thanks ! Yoko
[flexcoders] Re: dataGrid - hightlight row
Make sure it has been created You mean dataGrid? I am tracing after dataProvider has been assigned to it. I thought that would have been the right time. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Should work. Debug into it. Make sure it has been created. You might be asking too soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: dataGrid - hightlight row I am trying this in dataGrid: trace(listContent.getChildByName(rowBGs)); but it returns null. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: drawRowBackground runs often, not just at creation time, but it does run before drawColumnBackgrounds. You can use the examples from my blog that have customized cell backgrounds and skip the whole drawRow/drawColumn stuff. You can also try switching the z order of the row and column backgrounds. That's not officially supported, but some sort of getChildByName(lines) and getChildByName(rowBGs) and testing getChildIndex and using setChildIndex might allow you to switch the z order. From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 10:18 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] dataGrid - hightlight row I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks
Re: [flexcoders] List for SDK development?
You mean for the Flex SDK itself? http://www.adobeforums.com/webx/.3c060fa3/ Matt On 6/29/08 8:00 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, Just a quick question - is there a list for SDK development stuff? A place I can ask questions regarding the tests, procedures for adding things that broaden the API, best practices, etc instead of clogging up this list? -Josh
Re: [flexcoders] List for SDK development?
Thanks Matt, that's exactly what I was looking for. -Josh On Mon, Jun 30, 2008 at 2:49 PM, Matt Chotin [EMAIL PROTECTED] wrote: You mean for the Flex SDK itself? http://www.adobeforums.com/webx/.3c060fa3/ Matt On 6/29/08 8:00 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, Just a quick question - is there a list for SDK development stuff? A place I can ask questions regarding the tests, procedures for adding things that broaden the API, best practices, etc instead of clogging up this list? -Josh -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Re: dataGrid - hightlight row
Not the DG, the actual displayObject with the name rowBG. Please read up on the component lifecycle. Things are often created on demand. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 9:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: dataGrid - hightlight row Make sure it has been created You mean dataGrid? I am tracing after dataProvider has been assigned to it. I thought that would have been the right time. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Should work. Debug into it. Make sure it has been created. You might be asking too soon. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 12:07 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: dataGrid - hightlight row I am trying this in dataGrid: trace(listContent.getChildByName(rowBGs)); but it returns null. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: drawRowBackground runs often, not just at creation time, but it does run before drawColumnBackgrounds. You can use the examples from my blog that have customized cell backgrounds and skip the whole drawRow/drawColumn stuff. You can also try switching the z order of the row and column backgrounds. That's not officially supported, but some sort of getChildByName(lines) and getChildByName(rowBGs) and testing getChildIndex and using setChildIndex might allow you to switch the z order. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Sunday, June 29, 2008 10:18 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] dataGrid - hightlight row I have seen some examples of this and these samples I've seen all are implementing drawRowBackground which works fine but not in my case. I need to change row's background after I have applied columns background. But drawRowBackground runs at a time dataGrtid is created so my row background that was set in drawRowBackground gets overwritten by the later upplied column's background. I am then trying to implement a custom renderer that accepts a click and changes draws a colored area around itself: g.drawRect(e.target.x, e.target.y, e.target.width, e.target.height + 1); g.endFill(); Using this approach I can color the whole row. But is a catch: my columns have different colors. In case I have to restore row's background color to original color how can I do that? Is there a simple way of doing it or I need to store colors into array and then restore them using same technique? Thanks