[flexcoders] Re: accessing node via XML.child()

2007-11-09 Thread fumeng5
quick update; the coordinatesStr line should be this: var coordinatesStr:String = gml.child(gml:coordinates)[0].toXMLString(); anyway, that's what is strange. i can see the gml XML object in the debugger and all of its nodes. i step into the coordinatesStr line using the debugger and all is fine

[flexcoders] Resizing an Image loaded at runtime

2008-04-28 Thread fumeng5
Hi - I'm trying to resize an image when a user resizes a TitleWindow component (I'm using a custom Sizeable TitleWindow component). I don't have a width or height set on my custom component but all containers (children) have width and height set to 100%. I also have scaleContent and

[flexcoders] Looking for the right loop

2008-06-24 Thread fumeng5
Hi, I'm confused on how to best create a loop to do the following: discover if each element's selected property is set to false. Basically, I just want to detect when all elements of my array have a selected property set to false. Here's my code: var numThings:int = things.length; for (var

[flexcoders] Re: Looking for the right loop

2008-06-24 Thread fumeng5
-sequential order. Doug On Tue, Jun 24, 2008 at 8:57 AM, fumeng5 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm confused on how to best create a loop to do the following: discover if each element's selected property is set to false. Basically, I just want to detect when all

[flexcoders] Re: Looking for the right loop

2008-06-24 Thread fumeng5
] On Behalf Of fumeng5 Sent: Tuesday, June 24, 2008 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looking for the right loop --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: I think this line: if(!numThings[i

[flexcoders] Event overloads and the Flex framework

2008-06-25 Thread fumeng5
Hi, After a long build we're testing and noticing a lot of time out errors and other things from remote calls to our Java services. One question that has been posed to me that I don't know how to answer is this: how does Flex handle someone clicking madly on a button that invokes a remote

[flexcoders] DataGrid Sorts on Columns with No Data???

2008-06-30 Thread fumeng5
Hi - I've got a DataGrid with dynamic data in it that is constantly redrawn with new data. Sometimes a column may have no data whatsoever, but it's still sortable. The problem is that if I sort a column with data in it and then I sort this column with no data in it, it still appears to be

[flexcoders] Re: DataGrid Sorts on Columns with No Data???

2008-06-30 Thread fumeng5
] On Behalf Of fumeng5 Sent: Monday, June 30, 2008 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Sorts on Columns with No Data??? Hi - I've got a DataGrid with dynamic data in it that is constantly redrawn with new data. Sometimes a column may have no data whatsoever

[flexcoders] Comparing numbers with a tolerance

2008-07-14 Thread fumeng5
Hi, I'm trying to compare 3 points but because of double precision in AS3 i'm running into some issues with trailing digits causing the numbers to not be equal, i.e. 1.25 != 1.24999 what i'd like to figure out how to do is introduce a tolerance of say .001. then i'd compare the test

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread fumeng5
, 2008 at 3:07 PM, fumeng5 [EMAIL PROTECTED] wrote: Hi, I'm trying to compare 3 points but because of double precision in AS3 i'm running into some issues with trailing digits causing the numbers to not be equal, i.e. 1.25 != 1.24999 Thanks for the responses: Tim, I need

[flexcoders] Accessing button properties from the ToggleButtonBar

2008-08-22 Thread fumeng5
Hi. I want to set properties for each element in my ToggleButtonBar's dataprovider, i.e. enabled, visible, etc... Something like this: (myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false; But that doesn't work. I know the dataprovider of a ToggleButtonBar has to be a

[flexcoders] Re: Accessing button properties from the ToggleButtonBar

2008-08-22 Thread fumeng5
found my own solution: (myToggleButtonBar.getChildAt(index) as Button).enabled thanks for listening. --- In flexcoders@yahoogroups.com, fumeng5 [EMAIL PROTECTED] wrote: Hi. I want to set properties for each element in my ToggleButtonBar's dataprovider, i.e. enabled, visible, etc

[flexcoders] Access DataGridColumn on DataGrid Row Click

2009-04-14 Thread fumeng5
Hi, I'm trying to access a DataGridColumn when a user clicks on a DataGrid row. The problem is that I'm not trying to access the column that was clicked on I want to select a checkbox that is always in the 2nd column whether a user clicks on the 2nd column or not. I'm having trouble

[flexcoders] Re: Access DataGridColumn on DataGrid Row Click

2009-04-14 Thread fumeng5
(using the collection API, or itemUpdated()) Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Tuesday, April 14, 2009 9:56 AM To: flexcoders@yahoogroups.com

[flexcoders] Re: Access DataGridColumn on DataGrid Row Click

2009-04-14 Thread fumeng5
as XMLListCollection; coll.itemUpdated(oItem); //this is required when you directly set an item property } Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Tuesday, April

[flexcoders] Re: Access DataGridColumn on DataGrid Row Click

2009-04-14 Thread fumeng5
; Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Tuesday, April 14, 2009 3:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Access DataGridColumn on DataGrid

[flexcoders] DataGridColumn itemRenderers interfere with DataGrid row rollover

2009-04-16 Thread fumeng5
Hi, It seems that whenever I have an HBox itemRenderer for a DataGridColumn, and I place an image in that itemRenderer, that DataGrid column doesn't highglight correctly. For instance, there's only a thin line that covers that column. However, the rest of the rollovers for all other columns

[flexcoders] Re: DataGridColumn itemRenderers interfere with DataGrid row rollover

2009-04-17 Thread fumeng5
helpful tips. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, It seems that whenever I have an HBox itemRenderer for a DataGridColumn, and I place an image in that itemRenderer, that DataGrid column doesn't highglight correctly. For instance, there's only a thin line

[flexcoders] Imported SWC files don't display correctly

2009-04-23 Thread fumeng5
Hi, I am importing 4 swc files; a left arrow, right arrow, up arrow, and down arrow. The problem is that the right arrow displays as the left, and the down as the up arrow. When I preview the SWC files in their corresponding SWF files they look right. Has anyone else experienced problems

[flexcoders] Outputting a variable into htmlText

2009-04-29 Thread fumeng5
Hi -- I want to output a variable and hardcoded text in the htmlText property of a Text component. Here's what I tried first: content.htmlText = bThe account + this.acctName + has been created /b. ('acctName' is a private var that has accessor methods to get/set it.) That didn't work,

[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
sure your acctName is not blank. On Thu, Apr 30, 2009 at 9:55 AM, valdhor valdhorli...@...wrote: What do you mean by That didn't work? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, fumeng5 fumeng5@ wrote: Hi -- I want to output a variable and hardcoded

[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
do this in ActionScript: content.htmlText = {msgString} You have to do this: content.htmlText = msgString The {} syntax is to bind a variable in MXML. Also, For the above, the variable does not need to be bindable. --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote

[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
created? --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote: Ok, I see what you're saying. So here's the constructor for my component that is responsible for all this: public function CreateAcctDialog() { super(); init

[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
runs before you get a chance to set acctName. --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote: The String I'm constructing is inside a PopUp dialog bog. I set it from another component a la: private function createAcct():void { acctDialog.acctName = accountName

[flexcoders] Sorting VBox elements based on an XML ID

2009-05-01 Thread fumeng5
Hi, I've got something that I'm trying to troubleshoot and I can't figure it out. I have an XML file full of elements, i.e. Class Class_ID1/Class_ID Class_NameFirst Class/Class_Name /Class Class Class_ID2/Class_ID Class_NameSecond Class/Class_Name /Class Class Class_ID11/Class_ID

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-01 Thread fumeng5
, and then just sort the dataProvider. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Friday, May 01, 2009 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
what I want? Any tip in the right direction is greatly appreciated. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hmmm...I didn't know about the Repeater component, that's quite useful. However, I should have explained that I'm not working with all the same components

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Saturday, May 02, 2009 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sorting VBox elements based

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-02 Thread fumeng5
, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: Saturday, May 02, 2009 5:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sorting VBox elements based on an XML ID

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-03 Thread fumeng5
: +33601 822 056 2009/5/3 fumeng5 fume...@... Wow, works like a charm; big thanks. And if I want to test it against IDs with 3 characters I'm thinking that RegExes are the way to go. Here's what I've got that isn't quite working. var currentID:String = item.id.toString(); var

[flexcoders] Re: Sorting VBox elements based on an XML ID

2009-05-03 Thread fumeng5
SOLVED: I was using the right RegEx expression but on the wrong elements. I had it backwards. The solution is this: var pattern:RegExp = new RegExp('^' + activeID + .*); pattern.test( currentID ) --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Thank you. That expression

[flexcoders] Toggling borderSkin style

2009-05-06 Thread fumeng5
Hi, I have an HBox with a borderSkin property set to a Class I found that draws dashed borders. var imageContainer:HBox = new HBox(); imageContainer.setStyle('borderSkin',com.skins.DashedBorder); When you click on/off the skin I want to toggle the borderSkin property, i.e. remove the dashed

[flexcoders] Re: Toggling borderSkin style

2009-05-06 Thread fumeng5
); } } } Hope that helps someone. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, I have an HBox with a borderSkin property set to a Class I found that draws dashed borders. var imageContainer:HBox = new HBox(); imageContainer.setStyle('borderSkin',com.skins.DashedBorder

[flexcoders] Need help writing alorithm

2009-05-29 Thread fumeng5
Hi, I'm looking for help writing an algorithm in a filter function I am using. Here's the situation: Based on a page number and a number of records per page, I want to return all indexes that fall within a certain range. There are 4 records per page. For example; - page 1 will return

[flexcoders] Re: Need help writing alorithm

2009-05-29 Thread fumeng5
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fumeng5 Sent: 29 May 2009 15:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] Need help writing alorithm Hi, I'm looking for help writing an algorithm in a filter function I am using. Here's

[flexcoders] Create a naming convention to define multi-level list

2009-06-08 Thread fumeng5
Hi, I have to devise an ID naming system that'll support lists that are 4-levels deep. At any one time, I need to know at what level an element is. I have it up to 3-levels but don't know how to do a 4th. In fact, it's starting to look like a mess to me and I think I'm overcomplicating it.

[flexcoders] Help with a RegExp

2009-06-09 Thread fumeng5
Hi, I have a filter function for an array collection that I'm working with. In this scenario, I start with an ID such as '1'. Based on that, I want to return '1_1', '1_2', etc... Basically, an underscore followed by 1 digit. Here's the code: var currentID:String = item.id.toString(); // i.e.

[flexcoders] Re: Help with a RegExp

2009-06-09 Thread fumeng5
of the string as well. if(currentID.length == testID.length + 1 pattern.exec(currentID)) --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote: Hi, I have a filter function for an array collection that I'm working with. In this scenario, I start with an ID such as '1'. Based

[flexcoders] Adding Repeater elements to different containers

2009-06-18 Thread fumeng5
Hi, I am creating a number of buttons with a repeater but I don't want them all in one container. Basically, I want 3 rows. How do I accomplish this? Every Repeater example I see has its elements wrapped in a simple VBox or HBox. Thanks for any tips...

[flexcoders] Re: Adding Repeater elements to different containers

2009-06-18 Thread fumeng5
in it and then repeat the component. --- In flexcoders@yahoogroups.com, fumeng5 fumeng5@ wrote: Hi, I am creating a number of buttons with a repeater but I don't want them all in one container. Basically, I want 3 rows. How do I accomplish this? Every Repeater example I see has its elements

[flexcoders] Adding a close button to a TabBar

2009-06-19 Thread fumeng5
Hi -- I'm trying to add a close button to a tab in a TabNavigator component. I searched the archives and found a post that is nearly 4 years old and was hoping there was something newer. My Tab is a VBox and I set its icon property to an image. But that image appears to the left; how can I

[flexcoders] Re: Adding a close button to a TabBar

2009-06-20 Thread fumeng5
Just what I was looking for; thank you. --- In flexcoders@yahoogroups.com, Tom McNeer tmcn...@... wrote: Take a look at Doug McCune's SuperTabNavigator. It can have a close box and lots of other stuff. Here's a blog

[flexcoders] SuperTabNavigator closeButtonSkin

2009-06-21 Thread fumeng5
Hi - When I set the styleName for a SuperTabNavigator, the default 'x' close button disappears; rather, it turns into a radioButton looking circle. I searched for a solution and found something posted by Doug McCune with a solution to define a custom tabCloseButtonStyleName. I did this and it

[flexcoders] Re: SuperTabNavigator closeButtonSkin

2009-06-21 Thread fumeng5
SOLVED: If I change where I put the tabCloseButtonStyleName declaration, it works. You seem to need to put it in the declaration for the lastTabStyleName. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi - When I set the styleName for a SuperTabNavigator, the default 'x

[flexcoders] Paging collections with more than 1 filter

2009-06-27 Thread fumeng5
Hi, I have an ArrayCollection that I use as a dataProvider for a DataGrid. To enable paging, I filter the collection. The problem is that I have another filter function for that collection where a user can retrieve rows via string search. This works fine except when the search returns

[flexcoders] Create XML for AnyChart component

2009-08-20 Thread fumeng5
Hi, I'm writing XML for an AnyChart component and I am having troubles setting the value of a node attribute to a dynamic element, i.e. // The method accepts a DTO private function createSemiCircularGaugeXML( gauge:GaugeDTO ):XML // I can write it here text{gauge.label}/text // But not here

[flexcoders] Creating multidimensional array for AdvancedDataGrid with DataGrid renderer

2009-08-24 Thread fumeng5
Hi - I'm using an AdvancedDataGrid with a rendererProvider of another DataGrid; meaning when you expand a row another DataGrid appears. I found documentation online that shows how to create the appropriate multidimensional array to feed both DataGrids. The array looks like this: private var

[flexcoders] Re: Creating multidimensional array for AdvancedDataGrid with DataGrid renderer

2009-08-24 Thread fumeng5
--- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi - I'm using an AdvancedDataGrid with a rendererProvider of another DataGrid; meaning when you expand a row another DataGrid appears. I found documentation online that shows how to create the appropriate multidimensional

[flexcoders] Pass data into renderer

2009-08-24 Thread fumeng5
Hi - I'm trying to pass custom data into an AdvancedDataGridRendererProvider instance. From what I've read this is not possible, but has anyone had any success with it? Thanks, Matt

[flexcoders] Pass data into renderer

2009-08-24 Thread fumeng5
Hi - I'm trying to pass custom data into an AdvancedDataGridRendererProvider instance. From what I've read this is not possible, but has anyone had any success with it? Thanks, Matt

[flexcoders] Pass data into renderer

2009-08-24 Thread fumeng5
Hi - I'm trying to pass custom data into an AdvancedDataGridRendererProvider instance. From what I've read this is not possible, but has anyone had any success with it? Thanks, Matt

[flexcoders] Re: Pass data into renderer

2009-08-25 Thread fumeng5
2009, fumeng5 wrote: I'm trying to pass custom data into an AdvancedDataGridRendererProvider instance. Normally, the renderer would only be using data from the data grid's dataProvider. What are you trying to do ? -- Helping to elementarily develop web-enabled 24/7 ubiquitous

[flexcoders] Can't style AdvancedDataGrid GroupingField

2009-09-04 Thread fumeng5
Hi, I set a styleFunction for my AdvancedDataGrid: private function styleRows(data:Object, column:AdvancedDataGridColumn):Object{ return { verticalAlign:'middle', backgroundColor:0xeaeaf4,

[flexcoders] SOLVED: Can't style AdvancedDataGrid GroupingField

2009-09-05 Thread fumeng5
); graphics.beginFill(0xeaeaf4, 1); graphics.drawRect(0,0,unscaledWidth, unscaledHeight); } } } --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, I set a styleFunction for my AdvancedDataGrid: private function styleRows(data:Object

[flexcoders] Using more than one Render Provider

2009-09-07 Thread fumeng5
Hi, If I have an AdvancedDataGrid, can I use more than one render provider? For example, my first group will have a render provider that displays a row of charts with a row of dropdown menus underneath. My second group will have a render provider that displays two rows of charts. Can I do

[flexcoders] Accessing DataProvider from GroupingCollection

2009-09-08 Thread fumeng5
Hi, I have an AdvancedDataGrid with a Grouping Collection to make my flat data into a hierarchy. I also have another column of data next to (on the same level) as the group. I need to access the column data there but I can't and I'm guessing it's because the dataProvider is now restructured

[flexcoders] Re: Accessing DataProvider from GroupingCollection

2009-09-08 Thread fumeng5
I can do it this way but it seems totally wonky to me: i override set data(): var appListData:AdvancedDataGridListData = AdvancedDataGridListData(listData); (appListData.owner as AdvancedDataGrid).dataProvider.source.source --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, I

[flexcoders] Re: Using more than one Render Provider

2009-09-09 Thread fumeng5
next to them. Is that possible? I know that renderProviders accepts an array of renderers, but I don't see how it's possible to assign to a specific row, only a column. Thank you, Matt --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, If I have an AdvancedDataGrid, can I

[flexcoders] AdvancedDataGrid: expandItem()

2009-09-10 Thread fumeng5
Hi, I'm trying to expand the first row of my AdvancedDataGrid column when it is loaded with my XML data. I've found plenty of examples online that show how to do it from a click event, but nothing on init of the grid. I've tried the initialize method, the setter of my dataProvider method but

[flexcoders] Re: AdvancedDataGrid: expandItem()

2009-09-10 Thread fumeng5
just not sure why this might be happening. I mean, I'm using callLater..Any ideas? --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, I'm trying to expand the first row of my AdvancedDataGrid column when it is loaded with my XML data. I've found plenty of examples online

[flexcoders] Building Multidimensional array for AdvancedDataGrid

2009-09-11 Thread fumeng5
Hi, I'm trying to create a hierarchical collection for my AdvancedDataGrid. My array will be made up of DTOs. As of right now there are only two groups and I try to build the array like this: var masterArray:Array = new Array([],[]); masterArray[0] = categoryDTOColl[0]; masterArray[0][0] =

[flexcoders] SOLVED: Building Multidimensional array for AdvancedDataGrid

2009-09-11 Thread fumeng5
extend the AdvancedDataGridGroupItemRenderer and re-position the disclosureIcon, etc..but when using hierchical data, you can't...or at least I haven't figured it out. It's because you can't extend AdvancedDataGridItemRenderer with any styling. Matt --- In flexcoders@yahoogroups.com, fumeng5 fume

[flexcoders] Semi-collapsible AdvancedDataGrid

2009-09-14 Thread fumeng5
Hi, I have an AdvancedDataGrid. When you expand a row, a horizontal list of charts displays. The row is about 200px tall. When you collapse the row, I don't want it to collapse all the way. Instead, I'd like to collapse it to about 50px tall and render a much smaller version of the chart ( a

[flexcoders] Re: Semi-collapsible AdvancedDataGrid

2009-09-15 Thread fumeng5
I just perused the AdvancedDataGrid class in the hopes of overriding the itemOpen and itemClose handlers but I don't see anything in there that'll help me in preventing the entire thing from collapsing. It's the same thing with HierarchicalCollectionView openNode() and closeNode() methods. I