[flexcoders] Flex2B2 Cairngorm2 Alert.show issue

2006-04-10 Thread turbo_vb
I've re-factored an application to Flex2 B2 and Cairngorm2 (similar code structure to the Store and Login samples). The question that I have concerns showing an Alert message in response to a Fault event that is returned from a Delagate. I was wondering if anyone would suggest a best

[flexcoders] AS3 Array Question

2006-04-11 Thread turbo_vb
I'm trying to populate a dataProvider array for a comboBox that contains unique status values from another array, that is used as the dataProvider for a dataGrid. The comboBox is used to filter the dataGrid. The code below works, but I seem to remember seeing this done somewhere that doesn't

[flexcoders] Re: Beta2 - DateField events

2006-04-12 Thread turbo_vb
Ryan, Try using the valueCommit event. Tim Hoff --- In flexcoders@yahoogroups.com, Ryan Pieszak [EMAIL PROTECTED] wrote: Okay, part of the same process mentioned below... I need to calc the difference between two dates when either date field changes, but none of the events do what they

[flexcoders] Re: AS3 Array Question

2006-04-12 Thread turbo_vb
the array once, storing new status values and skipping the duplicates --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: I'm trying to populate a dataProvider array for a comboBox that contains unique status values from another array, that is used as the dataProvider

[flexcoders] Re: AS3 Array Question

2006-04-12 Thread turbo_vb
-Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of turbo_vb Sent: Wednesday, April 12, 2006 2:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Array Question Doug and Gordon, thanks for the advise. I decided on the following

[flexcoders] Re: Cairngorm Phone Selector in F2B2

2006-04-15 Thread turbo_vb
I experienced the same problem (error message) when trying to cast the selected item of the master array to it's associated VO. After trying the code from the Store, Login and Phone samples, with no resolution, I decided to work around it - for now. I was able to cast the individual elements

[flexcoders] Re: Singleton not usable?

2006-04-15 Thread turbo_vb
This a modified version of Jeff Tapper's singleton DataManager class for AS3 web service calls. Francis, note the private class constuctor at the bottom. Sorry about the jagged alignment. - Tim Hoff package code.business { import mx.managers.CursorManager; import

[flexcoders] Re: TileList component order

2009-08-23 Thread turbo_vb
Hi Barry, A couple of things that you might consider. If you're only using 1 column, just use a List, with an itemRenderer; instead of a TileList. There's no need to add the over-head, if you only want a vertical list of items. If you want new items to show up at the top of the list, add them

[flexcoders] Re: DataGrid RollOver Trashcan like Pixus

2009-08-23 Thread turbo_vb
Hi Jason, Here's a handy little trick that can help you out in these type of situations. In the itemRenderer that contains the trash can button: import mx.controls.List; private var list : List; override public function set data(value:Object):void { super.data = value; list =

[flexcoders] Re: DataGrid RollOver Trashcan like Pixus

2009-08-23 Thread turbo_vb
Oops, just realized that you're using a DataGrid. Just replace List with DataGrid and it will work the same. -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Hi Jason, Here's a handy little trick that can help you out in these type of situations. In the itemRenderer

[flexcoders] Re: DataGrid RollOver Trashcan like Pixus

2009-08-23 Thread turbo_vb
myTrashCanButton.visible = ( dataGrid.isItemHighlighted(data) || dataGrid.isItemSelected(data) ); -TH --- In flexcoders@yahoogroups.com, jdizowat jasonharr...@... wrote: You are amazing, that's exactly what I needed. The first problem I encountered was this - since the datagrid is

[flexcoders] Re: DataGrid RollOver Trashcan like Pixus

2009-08-23 Thread turbo_vb
cool, take it a step further and add states; instead of setting visible directly. Then you can use effects to soften the blow. -TH --- In flexcoders@yahoogroups.com, jdizowat jasonharr...@... wrote: Got it, thanks man. --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote

[flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-26 Thread turbo_vb
Hi Satish, You can use headerHeight=0; to hide the DataGrid headers. -TH --- In flexcoders@yahoogroups.com, Satish Chowdary chinnu_...@... wrote: Hi All, i am trying to disable datagrid column headers so i use showheader property but it gives the following Error. it throws following

[flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-27 Thread turbo_vb
fontFamily=verdanaSoft fontSize=10 letterSpacing=0.5 /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks inAdvance Satish సతీష్ From: turbo_vb timh...@... To: flexcoders@yahoogroups.com Sent: Wednesday, 26 August, 2009 5:24:09 PM Subject

[flexcoders] Re: Is there a way to get the original array index of a selection in a datagrid?

2009-08-27 Thread turbo_vb
Hi Paul, If you use an ArrayCollections as the dataProvider for the DataGrid instead, you can remove an item like so: myArrayCollection.removeItemAt( myDataGrid.selectedIndex ); The DataGrid's selectedIndex is the same as the index of the item in the ArrayCollection. -TH --- In

[flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread turbo_vb
Get over it. It's a big sea. 4 is around the corner. We're expecting good things. -TH --- In flexcoders@yahoogroups.com, Mika Kiljunen mkintens...@... wrote: ADG was one of the main drivers to switch to Flex and after using and reading about it, it seems like its a bastard child This was

[flexcoders] Re: Tilelist button

2009-09-09 Thread turbo_vb
This sample http://timothyhoff.com/blog/index.php/2009/06/03/googlemate/ could give you some ideas. -TH --- In flexcoders@yahoogroups.com, karlmccracken karlmccrac...@... wrote: I created a horizontal tilelist that displays several images that are loaded dynamically. I need to be able to

[flexcoders] Re: Vertical TabBar Control

2009-09-09 Thread turbo_vb
--- In flexcoders@yahoogroups.com, flex_coder flex_co...@... wrote: Does anyone know of a Vertical TabBar control for Flex. I am using Flex 3 and I cant seem to find a Vertical Tabbar. Any help is much appreciated.

[flexcoders] Re: Vertical TabBar Control

2009-09-09 Thread turbo_vb
--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: --- In flexcoders@yahoogroups.com, flex_coder flex_coder@ wrote: Does anyone know of a Vertical TabBar control for Flex. I am using Flex 3 and I cant seem to find a Vertical Tabbar. Any help is much appreciated.

[flexcoders] Re: Vertical TabBar Control

2009-09-09 Thread turbo_vb
mx:TabBar direction=vertical/ -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: --- In flexcoders@yahoogroups.com, flex_coder flex_coder@ wrote: Does anyone know of a Vertical TabBar control for Flex. I

[flexcoders] Re: Searching a DataGrid...

2009-09-09 Thread turbo_vb
Hi Larry, Usually this type of thing is done with a filterFunction on the dataProvider; which would eliminate items that don't match the criteria and place the first match at the top of the DataGrid. But, if you want to have the other items remain, you'll have to loop through the dataProvider

[flexcoders] Re: Vertical TabBar Control

2009-09-10 Thread turbo_vb
in the Tabbar, there is always a gap in between the tabbar and the viewstack. I have tried making all paddings and verticalgap and horizontalgap to 0 but the spacing doesnt go away. any ideas for that? --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: mx:TabBar direction=vertical

[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
How can I tell the datagrid to allow cell heights greater than the grid height? Even though it's not shown, the cell height is greater than the DataGrid height. However, the DataGrid's scroll mechanism will always take you to the next row, so this isn't an option. How can I turn on a scrollbar

[flexcoders] Re: Sorting XML number values in datagrid

2009-09-10 Thread turbo_vb
Look at sortCompareFunction for DataGridColumn. -TH --- In flexcoders@yahoogroups.com, AJC2357 ajc2...@... wrote: Hi all, Looking for a simple solution to properly sorting number values in a datagrid. I'm sure many of you have run across this limitation. Trying to sort something like

[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
a tooltip. --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: How can I tell the datagrid to allow cell heights greater than the grid height? Even though it's not shown, the cell height is greater than the DataGrid height. However, the DataGrid's scroll mechanism

[flexcoders] Re: Datagrid height problem.

2009-09-10 Thread turbo_vb
/mx:itemRenderer /mx:DataGridColumn The text that is in the DB las line 1 followed by a new line followed by line 2, etc. It does not display the elipses. Paul --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Yep, correct about the headers scrolling too

[flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart

2009-09-11 Thread turbo_vb
at 1:09 PM, hank williams hank...@... wrote: what country are you in... and if US, what number did you dial? On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote: Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe

[flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart

2009-09-11 Thread turbo_vb
Sounds like you're not having very good luck Hank. As an interesting coincidence, I had to contact Adobe customer service today to resolve an issue. I just switched from PC to Mac and at the same time upgraded from CS3 to CS4. My issue was that the upgrade wouldn't recognize my previous

[flexcoders] Re: Combobox in DataGrid

2009-09-14 Thread turbo_vb
Instead of itemEditor use itemRenderer and set rendererIsEditor=true on the DataGridColumn. -TH --- In flexcoders@yahoogroups.com, kumarmenon kumarme...@... wrote: Hi Is there anyway i can show a DataGrid cell with Combobox with arrow shown all the time..Currently the way i have it

[flexcoders] Re: Bringing application to front

2009-09-15 Thread turbo_vb
For a Flex application, in addition to the Alert, you might try opening a new browser window with a urlRequest. That might at least give the user some notification. -TH --- In flexcoders@yahoogroups.com, Ian Thomas i...@... wrote: If it's an AIR application, you can use the .orderToFront()

[flexcoders] Re: Create an array from values with in an array collection

2009-09-16 Thread turbo_vb
var attendeeProfileIdArray:Array = []; for each ( var attendee:ATTENDEE in ATTENDEELIST ) { attendeeProfileIdArray.push( attendee.ATTENDEEINFO.PROFILEID ); } You might want to consider changing the name of your classes and properties to follow standard naming conventions. Using all

[flexcoders] Re: File size and Embed( image.png )

2009-09-16 Thread turbo_vb
Having a central EmbeddedAssets class that the views bind to works well. You can also reduce the image size by saving the png files as flattened pngs. -TH --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Anyone have any suggestions on the best way to import png files and

[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-16 Thread turbo_vb
// Plain text gets truncated with a // HTML text simply gets clipped, because it is difficult // to skip over the markup and truncate only the non-markup. // But both plain text and HTML text gets an automatic tooltip // if the full text isn't visible.-TH --- In flexcoders@yahoogroups.com,

[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-16 Thread turbo_vb
Haven't checked it, but this looks like it might work for htmlText: http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.ht\ ml http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.h\ tml -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote

[flexcoders] Re: sorting a datagrid column with an itemrenderer

2009-09-18 Thread turbo_vb
Man, I have to ask, how did you come up with a custom DataGridColumn component solution, that uses an inline itemRenderer? You're not doing anything crazy with the headerRenderer, so why not just create a custom itemRenderer instead? -TH --- In flexcoders@yahoogroups.com, valdhor

[flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread turbo_vb
While they are the easiest to create and implement, WebServices are inherently the slowest protocol of choice. Consider switching to RemoteObject and BlazeDS; to realize a significant increase in performance. Having the client parse-out SOAP xml, is like choosing to put an old VW engine in

[flexcoders] Re: Extend ToggleBar to Allow For Multiple Button Labels

2009-09-21 Thread turbo_vb
Well, you are talking about a Button, so either extent Button and ToggleButtonBar, or you can do it a lot easier using a HorizontalList and itemRenderer. Just set allowMultipleSelection=false. -TH --- In flexcoders@yahoogroups.com, victoria powers vic.pow...@... wrote: I'm trying to create

[flexcoders] Re: Extend ToggleBar to Allow For Multiple Button Labels

2009-09-22 Thread turbo_vb
giving up the predefined button states that had skins applied to them, this works perfectly. --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Well, you are talking about a Button, so either extent Button and ToggleButtonBar, or you can do it a lot easier using a HorizontalList

[flexcoders] Re: How can I view internet traffic for an Air App?

2009-09-25 Thread turbo_vb
FB4 also has a network monitor that gives some insight to the traffic. -TH --- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: Use any of the HTTP sniffers to get a real breakdown of what's doing what traffic wise. Something like Charles

[flexcoders] Re: Show/Hide a tab

2009-09-29 Thread turbo_vb
Have to use addChild() and removeChild() forTabs. -TH --- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... wrote: Hello, How to hide a Tab in a TabNavigator. I have try visible=false, but it does not work. Thank you, Christophe

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
There's a utility in the sdk to convert rgb string to uint. For Flex4 it's mx.utils.HSBColor. -TH --- In flexcoders@yahoogroups.com, Greg Hess flexeff...@... wrote: Hi All, I am trying to externalize our effect styles to css. However, when I read in the color values getStyle() they come

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
, but will not help you with RGB to hex string conversions. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of turbo_vb Sent: Tuesday, September 29, 2009 1:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Converting RGB to Hex color

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
, but will not help you with RGB to hex string conversions. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of turbo_vb Sent: Tuesday, September 29, 2009 1:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Converting RGB to Hex color There's

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Never mind, I'm just way off-base on this one. -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Isn't there a utility that converts CSS strings like #ff to 0xff? Or white to 0xf? -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I

[flexcoders] Re: Converting RGB to Hex color

2009-09-29 Thread turbo_vb
Yeah, that's the one I was thinking of; not RGB to hex though. I claim temporary brain death. :) -TH --- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote: StyleManager.getColorName(...) Does what you ask for below. --- In flexcoders@yahoogroups.com, turbo_vb

[flexcoders] Re: how to add one value to each array item?

2009-10-01 Thread turbo_vb
If you add a transient property to the ListItemObject class (VO), it can be used by the UI, but not affect the RemoteObject mapping: [Transient]public var selected:Boolean; -TH --- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote: Hi All, i have an ArrayCollection from remote object

[flexcoders] Re: data and listData

2009-10-14 Thread turbo_vb
.data gives you acces to the entire item in the dataProvider. This is usually what I use, since it is useful when you need to look at other properties in different columns for the same row. .listData gives you just the value of labelField property. However, .listData also gives you the

[Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread turbo_vb
Really wouldn't advise using this type of in-line approach for a checkBox itemRenderer. Alex's blog shows a prefered manner: http://blogs.adobe.com/aharui/item-renderers/ http://blogs.adobe.com/aharui/item-renderers/ -TH --- In flexcoders@yahoogroups.com, Agha Mehdi aghaime...@... wrote:

[Spam] RE: [SPAM] Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread turbo_vb
Look at the dataProvider. You're using the select property of the items, so loop and look. -TH --- In flexcoders@yahoogroups.com, Agha Mehdi aghaime...@... wrote: Thanks guys. how do i get the list of all checked rows from the datagrid? On Thu, Oct 15, 2009 at 7:14 AM, Nick Middleweek

[flexcoders] Re: Graphics question

2009-10-19 Thread turbo_vb
Hi Christophe, - How to have round buttons on an interface ? You have a few options for skinning flex controls: images, drawing api, or Degrafa. (fxg for flex4). Usually, these skins are applied in css as skin, borderSkin or individual state skins; like upSkin. Images are the easiest, but

[flexcoders] Re: Mind telling us progress on very annoying bugs in the sdk

2009-10-21 Thread turbo_vb
speaking on behalf of every developer Since your choice of words and approach is very annoying in itself, please just speak for yourself. -TH --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: The Scrollbug where if you are scrolling through a big page, the flashplayer loses

[flexcoders] Re: How to remove object from nested arraycollection

2009-10-22 Thread turbo_vb
Here's a way you can do it recursively: RecursiveDeleteSample http://www.timothyhoff.com/projects/RecursiveDeleteSample/RecursiveDele\ teSample.html (right click for source) -TH --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Hello all, I have a problem, I need to remove an

[flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread turbo_vb
You might want to check out WebOrb http://www.themidnightcoders.com/products/weborb-for-net/overview.html -TH --- In flexcoders@yahoogroups.com, shot2flow shot2f...@... wrote: Has anyone worked with Flex and VB.Net. Please i am interested in the two. I presently use flex and coldfusion, but

[flexcoders] Re: States: SetStyle not returning to base state

2009-10-28 Thread turbo_vb
As a work-around, you can always just create another state that explicitely sets the styleName back to the original. -TH --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Don't quote me on this, but that rings a bell. I do believe that is in the documentation somewhere.

[flexcoders] Re: Populating a datagrid with a ArrayCollection of VO that use getters/setters

2009-11-10 Thread turbo_vb
Hi Stephen, For getter/setters, you use the getter to bind to the DataGridColumn dataField: mx:DataGridColumn dataField=myProperty/ A typical VO getter/setter: private var _myProperty:String;[Bindable( event=myPropertyChange )]public function get myProperty():String{ return _myProperty;}public

[flexcoders] Re: The Alert box is at the Top Left.

2009-11-12 Thread turbo_vb
Hi Steve, Popups exist outside the normal DisplayList, so you can work around it by setting the Alert's parent like this: Alert.show(your text, your title, 4, parentApplication as Sprite); -TH --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote: Seems like until now, my Alert

[flexcoders] Re: TileList custom ItemRenderer - commitProperties not called when selection ch

2009-11-13 Thread turbo_vb
UpdateDisplayList() will get called when the selection changes. You can change your style there. If needed, you can inspect the IR's owner (TileList) using something like: var isSelected:Boolean = TileList( owner ).isItemSelected( data ); -TH --- In flexcoders@yahoogroups.com, Greg Hess

[flexcoders] Re: LineSeries

2009-11-16 Thread turbo_vb
Hi Jake, You could do it with a custom itemRenderer and control the alpha or actual drawing; based on a data property. Here's a custom renderer sample to get you started: Colored Line Chart Sample http://www.flashcomguru.com/index.cfm/2009/11/11/pdf-for-flex-devs -TH --- In

[flexcoders] Re: LineSeries

2009-11-16 Thread turbo_vb
to be drawn separately. By the way, your link doesn't work. On Mon, Nov 16, 2009 at 3:35 PM, turbo_vb timh...@... wrote: Hi Jake, You could do it with a custom itemRenderer and control the alpha or actual drawing; based on a data property. Here's a custom renderer sample to get you

[flexcoders] Re: LineSeries

2009-11-16 Thread turbo_vb
a null error I was getting. On Mon, Nov 16, 2009 at 4:43 PM, turbo_vb timh...@... wrote: Sorry bout that, let's try it again: Samplehttp://www.timothyhoff.com/projects/LineRendererSample/LineRendererSample.html -TH --- In flexcoders@yahoogroups.com, Jake Churchill reynacho@ wrote

[flexcoders] Re: LineSeries

2009-11-17 Thread turbo_vb
://livedocs.adobe.com/flex/3/html/help.html?content=charts_formattin\ g_12.html The butterfly example - I am talking about. On Mon, Nov 16, 2009 at 3:02 PM, turbo_vb timh...@... wrote: Cool, yeah I should have said custom lineSegmentRenderer. -TH --- In flexcoders@yahoogroups.com

[flexcoders] Re: LineSeries

2009-11-17 Thread turbo_vb
depending on the type I want to show the image of the insects. But the problem is since this itemrenderer inherits UIComponent, I cannot or do not know how to add an image on it. On Tue, Nov 17, 2009 at 9:28 AM, turbo_vb timh...@... wrote: Thanks Vivian, For the plot chart

[flexcoders] Re: LineSeries

2009-11-17 Thread turbo_vb
); } } -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Ok 2 things, better to change the image in the set data method and then invalidateDisplayList(); because updateDisplayList gets called a lot more frequently than than the data changes. And for the image, add an Image

[flexcoders] Re: LineSeries

2009-11-17 Thread turbo_vb
: Is it possible to do it with out embedding the image? Just creating am iamge and then pointing the source of the image to the image component. Instead Embedding all the images. On Tue, Nov 17, 2009 at 10:07 AM, turbo_vb timh...@... wrote: Just read your last post a little more

[flexcoders] Re: Installed Flash Player Is Not a Debugger

2009-11-19 Thread turbo_vb
You could try re-instsalling the debug player plugin: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_1\ 0_plugin_debug.dmg http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_\ 10_plugin_debug.dmg-TH --- In flexcoders@yahoogroups.com, Joel Stransky

[flexcoders] Re: ASDoc MXML

2009-11-19 Thread turbo_vb
Three dashes for the comment: !--- The class level comment for the component. This tag supports all ASDoc tags, and does not require a CDATA block. -- mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;-TH--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: When you give a

[flexcoders] Re: ASDoc MXML

2009-11-19 Thread turbo_vb
Google: Flex ASDocs MXML -TH --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Three dashes for the comment: !--- The class level comment for the component. This tag supports all ASDoc tags

[flexcoders] Re: How to tell when column visiblity change is done?

2009-11-19 Thread turbo_vb
You could extent DataGridColumn and add two methods. One to set the visible property to false and dispatch a hide event, and the other to set the visible property to true and dispatch a show event. -TH --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: I have a datagrid with a

[flexcoders] Re: Syntax Question

2009-11-21 Thread turbo_vb
Perhaps this will work: var crapola = squaresGrid.selectedItem.NameCol; var crapolaXML : XML = crapola[0] as XML; var name : String = crapollaXML.Name; -TH --- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote: Yes I would think something this absurdly simple would be a single

[flexcoders] Re: Syntax Question

2009-11-21 Thread turbo_vb
Ok, so it is e4x, look into the double dot notation and, as others have said. try toString() and toXMLString(). As close as you are it shouldn't be that hard, even through trial and error, to drill down to the string. -TH --- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote:

[flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it?

2009-11-23 Thread turbo_vb
Even easier, would be to change the var to a getter/setter, and execute the function in the setter. -TH --- In flexcoders@yahoogroups.com, Christopher McArthur cmcart...@... wrote: assuming your in the same class as changeme: private var changemeWatcher:ChangeWatcher;

[flexcoders] Re: Looking for help with Linechart and xml

2009-11-23 Thread turbo_vb
Use a second series. -TH --- In flexcoders@yahoogroups.com, shenji_s she...@... wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2

[flexcoders] Re: Looking for help with Linechart and xml

2009-11-23 Thread turbo_vb
...@... wrote: How do I use the series to point to the CPU attribute in System? I want each series to be based on the ID attribute and graph out by the CPU attribute. I hope I am making sense lol On Mon, Nov 23, 2009 at 9:23 AM, turbo_vb timh...@... wrote: Use a second series

[flexcoders] Re: Looking for help with Linechart and xml

2009-11-23 Thread turbo_vb
={PerfData.getDataXML.lastResult.Performance.TimeSlot} On Mon, Nov 23, 2009 at 12:00 PM, turbo_vb timh...@... wrote: Ah, I see. You're going to have to parse your base data into 2 separate dataProviders; one for id 1 and one for id 2. Then use 2 series based on time slot and cpu. Since the time slots

[flexcoders] Re: Can't Listen to component?

2009-11-25 Thread turbo_vb
addEventListener instead. -TH --- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote: I am getting an error on the line that starts with myUserCntr. which is 1061: Call to a possibly undefined method addListener through a reference with static type comps:userCntr. Can kind

[flexcoders] Re: how to get an array as a part from another array?

2009-11-25 Thread turbo_vb
Could use a filterFunction. -TH --- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote: Hi All, I have a ArrayCollection, it contains id, name, sex, isSenior, etc. now i only need an array of id through that list. what's the quickest way to get an array of ids if isSenior is true,

[flexcoders] Re: how to get an array as a part from another array?

2009-11-25 Thread turbo_vb
} ]); var seniors:Array = ac.toArray().filter(seniorsOnly); --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Could use a filterFunction. -TH --- In flexcoders@yahoogroups.com, coder3 rrhuang@ wrote: Hi All

[flexcoders] Re: how to get an array as a part from another array?

2009-11-25 Thread turbo_vb
. filtering is a loop actually. but it just keep our code look more clean. all right, i guest there is no short cut to get the partial array. thanks turbo_vb wrote: Nope, going to have to loop and create the new array manually. Even using a filterFunction is still looping; behind

[flexcoders] Re: Starting with Cairngorm or PureMvc

2009-12-01 Thread turbo_vb
Second that personally for Mate. Done right, it can result in a much cleaner code base than the 2 frameworks mentioned. Swiz is also a viable alternative. -TH --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: Personally, I like Mate and suggest you check it out before

[flexcoders] Re: Question about getting the type of item / component with drag and drop

2009-12-10 Thread turbo_vb
See #1 in Gordon's response. -TH --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: What is the best way to check if it is a panel? timgerr --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote: 1. if (dragEvent.currentTarget is Panel) 2. currentTarget is

[flexcoders] Re: How to change background color on text input / Linkbar in Flex4

2009-12-16 Thread turbo_vb
s:TextInput contentBackgroundColor=#ff/ -TH --- In flexcoders@yahoogroups.com, boy_trike boy_tr...@... wrote: I must be a dummy! I can not figure out how to change the lovely white background on either of these controls. Help please. Thank you Bruce

[flexcoders] Re: Problem in using states in components

2009-12-17 Thread turbo_vb
Hi ShiVik, You might try only adding one child at a time. Looks like you have 2 children within the AddChild tag. http://www.adobe.com/devnet/flex/quickstart/defining_state_transitions/ http://www.adobe.com/devnet/flex/quickstart/defining_state_transitions/\ -TH --- In

[SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite

2009-12-18 Thread turbo_vb
Hi Dennis, I don't want to poach Tracy here, but what is the parent class that you are adding the PanelGradient component to? If it's a UIComponent, you will have to move the child in updateDisplayList(); because UIComponent doesn't use the same layout framework code as say a Canvas. So, you

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
Hey Sal, minor tweaks: public function addButton():void { dataRight.addItem( rightTiles.selectedItem ); } and: mx:HTTPService id=btnSrv url=buttonData.xml useProxy=false result=handleQueryResult(event) showBusyCursor=true resultFormat=object/ -TH --- In

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
. -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Hey Sal, minor tweaks: public function addButton():void { dataRight.addItem( rightTiles.selectedItem ); } and: mx:HTTPService id=btnSrv url=buttonData.xml useProxy=false result=handleQueryResult(event

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
Because guys like Gordon are here, I'll also say that Instantiate is the correct word; instead of initialize. :) -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Man, I always forget at least one thing. You also need to initialize the second ArrayCollection

[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread turbo_vb
); } } } -Sal --- In flexcoders@yahoogroups.com, s_hernandez01 s_hernandez01@ wrote: hey thanks TH, i knew it was something with one line of code. You rock! This was driving me nuts. Sal --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: Because guys like Gordon

[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread turbo_vb
to the tiles on the right. Appreciate it! -Sal --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: If you need to check dups for other reasons that would work fine. but, if you just need it for this particular use-case, this is simpler: public function addButton():void

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote: Alternatively it would be nice if I could extend the Panel class to allow

[flexcoders] Re: change slideer look?

2009-12-29 Thread turbo_vb
Using the tickValues property will help you a little. -TH --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, I have a slider that is like following: mx:HSlider id=radius width=300 minimum=0.5 maximum=5 tickColor=0x323232 snapInterval=0.5 tickInterval=0.5

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
adding the box but now it's covering up the normal title text of the panel. Any quick fix for that (I'm just adding space to the front of the text for the time being)? --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: That's exactly what you should do. To get around

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
without covering the title? Thanks, you've helped a lot so far. --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote: In updateDispayList() position the box: tempBox.move( unscaledWidth - tempBox.width - 10, ( unscaledHeight / 2 ) - ( tempBox.height / 2 ) ); This would put

[flexcoders] Re: Getting the Y value for a line at a given point

2010-01-01 Thread turbo_vb
Hi Ryan, You can get the coordinates of the point by using coordinate geometry and trigonometry. The key would be to determine the angle (or slope) of the line segment and the distance to the event point. Or, if you wanted to make the segments square, use form=step: mx:LineSeries form=step/

[flexcoders] Re: event when page is shown in ViewStack?

2010-01-01 Thread turbo_vb
The show event will work except for the first time; in which case you'd want to listen for the creationComplete event. -TH --- In flexcoders@yahoogroups.com, mitchgrrt mitch_g...@... wrote: Is there an event I can listen for on a page, which would be sent automatically whenever the page is

[flexcoders] Re: Creating XML Document from Data

2010-01-03 Thread turbo_vb
Why change from an ArrayCollection to xml; especially if it contains strongly typed objects? A bit easier to work with for hierarchical components or charts perhaps? -TH --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: Better still, create the XML in the backend rather than

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
The stage isn't available immediately. That's why you get a null error. With a little trickery: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=onCreationComplete() resize=getStageDimensions() mx:Script ![CDATA[ private function onCreationComplete():void {

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
Btw, adding a new topic every few hours that addresses the same issue, but with a slightly different name, is really bad form. -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: The stage isn't available immediately. That's why you get a null error. With a little trickery

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
function init():void { stage.addEventListener(Event.RESIZE, resizeHandler); } private function resizeHandler(event:ResizeEvent):void { trace(height: + stage.height); trace(height: + stage.width); } --- In flexcoders@yahoogroups.com, turbo_vb

[flexcoders] Re: Multiple initializers for property 'dataProvider'

2010-01-07 Thread turbo_vb
Hi Raymond, You're missing the mx:columns tag that wraps the DataGridColumns. -TH --- In flexcoders@yahoogroups.com, Raymond Brown silenttr...@... wrote: Below is a snapshot of one of my components. However I am always getting an error on the Datagrid (id=cmdTable') and the error is:

[flexcoders] Re: Updating renderer properties

2010-01-07 Thread turbo_vb
One thought, since you're taking about a style, is to assign a styleName to the itemRenderer and update the backgroundColor style of the StyleDeclaration when the user changes the color. You may need to override the styleChanged() method the itemRenderer, to handle the update. -TH --- In

  1   2   >