[flexcoders] How do you access data.[param] in component?

2006-12-20 Thread securenetfreedom
I have a component comprised of a mx:Text field that is rendered in a datagrid. I am trying to access the data.name and the data.descr of the data that is bound to the component so that I can use both in one mx:Text field and not two. If I access them separately like this it works fine: mx:Text

[flexcoders] Trace?

2006-12-20 Thread securenetfreedom
I am coming from Flash Timeline Development to Flex (as opposed to coming from C#, Java, etc to Flex). So I have some catching up to do. One of the things I find most frustrating is the ability to so a simple trace statement, run the code and watch my traces in an output window. Is this possible

[flexcoders] Re: Problem with DataGrid ItemRenderer

2006-12-20 Thread securenetfreedom
You may want to take a look at the following where the setter function is overridden to maintain sorting (which may help with the row height issue). http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-primer-for-predictable-behavior/ Jeff --- In flexcoders@yahoogroups.com,

Re: [flexcoders] Flashvars not passing into flex?

2006-12-21 Thread securenetfreedom
!-- In the HTML source add this to the javascript func... -- AC_FL_RunContent( flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '', flashvars,myFlashVarValue=Hello from the html page, ... !-- In the object embed html source add... -- param name=flashvars

[flexcoders] Flex does not see Flash Player 9

2006-06-16 Thread securenetfreedom
I currently have FP 9.0.0.296 installed. When I try to test a Flex App I get the following message: c:\Windows\system32\Macromedia\Flash\Flash8a.ocx Flex Builder cannot locate the requried version of the Flash Player. You may need to install Flash Player 9.0 or reinstall Flex

[flexcoders] Re: Shouldn't we use Flex to built website

2006-06-27 Thread securenetfreedom
Usually the ones screaming the loudest about Flash or Flex being used as a website platform are the ones that fear that the antiquated web technologies that they are versed in are going to be replaced. If the client wants an all Flash/Flex website, give it to them as long as they know the pros

[flexcoders] Stack Chart ItemClick detail?

2008-04-16 Thread securenetfreedom
Is there a way to click on a stacked ColumnChart and receive data about the specific segment of ColumnChart stack that was clicked? I am using mx.charts.events.ChartItemEvent but I can't find anything in the event object that identifies the exact slice that was clicked. Thanks. Jeff

[flexcoders] datagrid combobox label renderer

2008-05-02 Thread securenetfreedom
Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have a label renderer and combobox renderer but I can't seem to get them to work in tandem. Thanks in

[flexcoders] Re: datagrid combobox label renderer

2008-05-03 Thread securenetfreedom
as the itemEditor. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: Is there a way to combine a combobox/label cell renderer for a datagrid so that when the cell has NO focus is displays a label and when the cell takes focus the combobox takes visibility? I have

[flexcoders] Re: datagrid combobox label renderer

2008-05-03 Thread securenetfreedom
@yahoogroups.com, securenetfreedom nv1000@ wrote: Thanks, Tim! Works well. It displays the combobox's label property in the Text field. However, I need to update the datagrid's dataprovider with the 'data' property of the combobox. Currently I'm capturing the grid's itemEditEnd

[flexcoders] Re: datagrid combobox label renderer

2008-05-03 Thread securenetfreedom
in the dataGridColumn editorDataField property. In your itemEditor, cast the selected item data to the public variable, on the comboBox change event. -TH --- In flexcoders@yahoogroups.com, securenetfreedom nv1000@ wrote: I tried using that earlier and got undesirable results: If I use

[flexcoders] Datagrid Cell Edit Event update grid

2008-05-05 Thread securenetfreedom
When typing in a datagrid cell, I am capturing the datagrid's change event and then making calculations on other cells in that row. I've used both invalidateList and invalidateDisplayList after I make my calcs but it doesn't seem to update the text in the grid until I've tabbed out of that cell

[flexcoders] Soap XML doc passed to SoapDecoder.as

2008-05-07 Thread securenetfreedom
Although unorthodox, I'm trying to take a pre-generated soap-formatted xml doc that's sitting in myData.xml on my server and pass it thru the mx.rpc.soap.SoapDecoder. Since I'm not formally calling a WebService to obtain the soap xml, but using URLLoader to retrieve the soap-formatted xml doc, I

[flexcoders] Re: Soap XML doc passed to SoapDecoder.as

2008-05-07 Thread securenetfreedom
In your example, would 'decoder' be of type SOAPDecoder? To what class does the method decode() belong? Jeff --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: I'd guess decoder.decode() - You might need to provide it with the definitions built up from various XSDs

[flexcoders] Re: Soap XML doc passed to SoapDecoder.as

2008-05-08 Thread securenetfreedom
Ok, here we go... How do I instantiate a decoder:SOAPDecoder when it's an excluded class? [ExcludeClass] I would love to do this: import mx.rpc.soap.SOAPDecoder; decoder:SOAPDecoder = new SOAPDecoder(); serializedConent:SOAPResult = decoder.decode('SOAP-ENV...[xml stuff]/SOAP-ENV'); I

[flexcoders] Re: Creating Pie chart Dynamically in Flex 3

2008-05-10 Thread securenetfreedom
In your mx:Script block try: import mx.charts.PieChart; public var pie:PieChart pie.dataProvider -Jeff --- In flexcoders@yahoogroups.com, fflexhelp [EMAIL PROTECTED] wrote: Hi I am trying to create pie charts dynamically. Var myPieChart:Piechart; in the init() { myPieChart=new

[flexcoders] Re: Cursor in a textinput and setFocus

2008-05-10 Thread securenetfreedom
This should do it: txt.setFocus(); -Jeff --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: textInput.setSelection(0,0) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Boulet-Lavoie Sent:

[flexcoders] Re: How to return data to a database back end and reference updates

2008-05-10 Thread securenetfreedom
timgerr, Capture the field name and value pass it to the PHP page. mx:DataGrid id=dg change=onChange(event)/ private function onChange(e:DataGridEvent){ var field:String = e.dataField; var value:String = dg.dataProvider[e.rowIndex][field]; sendDataToPHP(field,

[flexcoders] itemRenderer not updating

2008-05-11 Thread securenetfreedom
I have custom item render in a datagrid that is exhibiting unpredictable behavior. It does not update when scrolling the datagrid. Other times it does update, and other times it updates but on the wrong row. Here's the component: ?xml version=1.0 encoding=utf-8? mx:HBox

[flexcoders] Re: How to return data to a database back end and reference updates

2008-05-11 Thread securenetfreedom
timgerr, dg is the id of the datagrid. Jeff --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Jeff, I am getting an error : var value:String = dg.dataProvider[e.rowIndex][field]; Access to undefined property dg. Not sure what to do, thanks timgerr mx:DataGrid

[flexcoders] Re: itemRenderer not updating

2008-05-11 Thread securenetfreedom
@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1. html - Original Message - From: securenetfreedom [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, May 11, 2008 8:44 AM Subject: [flexcoders] itemRenderer

[flexcoders] Fire itemRollOver

2008-05-29 Thread securenetfreedom
I have a combobox that opens onFocus. When using arrow keys I would like to fire the itemRollOver for each item in the list as the arrow key highlights it. This works well with mouse over, but not with arrow keys. Is there a simple solution? Thanks, Jeff

[flexcoders] Re: Fire itemRollOver

2008-05-30 Thread securenetfreedom
I figured it out using a combination of Key Event capture and selectedIndex. --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: I have a combobox that opens onFocus. When using arrow keys I would like to fire the itemRollOver for each item in the list as the arrow

[flexcoders] Datagrid format row

2008-06-09 Thread securenetfreedom
How do you highlight the entire row of a datagrid or advanceddatagrid conditionally. For instance I want to set a row's background/highlight color to blue for prices under $100 and red for prices over $100. I've used the styleFunction on the ADG to color text conditionally but cannot get row

[flexcoders] Re: Datagrid format row

2008-06-10 Thread securenetfreedom
Thanks, Josh. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: http://blog.mikenimer.com/index.cfm/2006/10/3/BackgroundRowColor-DataGrid-component -Josh On Tue, Jun 10, 2008 at 3:36 PM, securenetfreedom [EMAIL PROTECTED] wrote: How do you highlight

[flexcoders] AdvancedDataGrid ItemRenderer

2008-06-10 Thread securenetfreedom
I am using an ADG with HierarchicalData to group my data. I am using a checkbox item renderer that the user can check to archive the row. However, the checkbox is diplaying on every row and I need it to display only on the sub-set like below: Group | Archive | Title | Group1 --|-- chk --|

[flexcoders] Re: AdvancedDataGrid ItemRenderer

2008-06-10 Thread securenetfreedom
visibility there as opposed to in set data(...). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , securenetfreedom nv1000@ wrote: I am using an ADG with HierarchicalData to group my data. I am using a checkbox item renderer that the user can check to archive the row

[flexcoders] Tricky dataProvider Refresh

2008-06-12 Thread securenetfreedom
When using a filter function on an AdvancedDataGrid whose dp is a HierarchicalData object derived from an XMLCollectionList passed into it, the dataprovider will not refresh by calling dp.refresh directly. So I tried datagrid.dataProvider.refresh() and it works until one of the row's criteria for

[flexcoders] Re: Tricky dataProvider Refresh

2008-06-12 Thread securenetfreedom
(); } Jeff --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: When using a filter function on an AdvancedDataGrid whose dp is a HierarchicalData object derived from an XMLCollectionList passed into it, the dataprovider will not refresh by calling dp.refresh directly. So

[flexcoders] Re: Help with updating a Tree when its dataprovider has changed.

2008-06-13 Thread securenetfreedom
I might be able to help. I had a similar issue with XMLListCollection dataProvider for an AdvacncedDataGrid. The filter function works great and with lists in the 100's. You get the to sub nodes with e4x. Here's the filtering code: public function hideShowFilterFunc(item:Object):Boolean{

[flexcoders] Re: Help with updating a Tree when its dataprovider has changed.

2008-06-18 Thread securenetfreedom
Peter, e4x is the new XML access notation that complies with ECMA. It will make your life easy in your scenario by eliminating that ugly getChildren func and simplifying your code. In your case, here's how it would work: public function hideShowFilterFunc(item:Object):Boolean{ // item.name()

[flexcoders] Best Practice Data Binding

2008-06-26 Thread securenetfreedom
In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? /* *Binding #1 * */ [Bindable] public function set foo(val:String):void{

[flexcoders] Re: Best Practice Data Binding

2008-06-27 Thread securenetfreedom
Any thoughts? In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? // Binding #1 [Bindable] public function set foo(val:String):void{

[flexcoders] Re: Best Practice Data Binding

2008-06-27 Thread securenetfreedom
thing either way. The only time you have to use a custom event to trigger the binding is when you have read-only properties (a getter but no setter). Doug On Fri, Jun 27, 2008 at 12:08 PM, securenetfreedom [EMAIL PROTECTED] wrote: Any thoughts? In an DataModel class what is the best

[flexcoders] Re: Best Practice Data Binding

2008-07-01 Thread securenetfreedom
Josh, That's one of the better explanations I've seen on the subject. It fills the blanks left by http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html. Thanks for the contribution. And BTW, the keyboard is a bad place to be while consuming adult beverages, partaking in a

[flexcoders] App Version?

2008-07-06 Thread securenetfreedom
How do I access my application's version at runtime? ... the one set in the descriptor file and used for updating versionv0.51/version. Thanks, Jeff

[flexcoders] Re: App Version?

2008-07-06 Thread securenetfreedom
For those of you who may want to know, I found I can get access to the entire descriptor file via: var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor; Jeff --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: How do I access my

[flexcoders] Air App Install options

2008-07-08 Thread securenetfreedom
Is there anyway to modify Air App install options like: * disabling or set default on 'Place Icon Desktop' option * disabling or set default on 'Start Application After Install' * Modifying the install dir to other than c:\Program Files (on Windows) Is there a way to embed passed

[flexcoders] Re: Air App Install options

2008-07-09 Thread securenetfreedom
-bump- Any ideas? --- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote: Is there anyway to modify Air App install options like: * disabling or set default on 'Place Icon Desktop' option * disabling or set default on 'Start Application After Install

[flexcoders] Update ArrayCollection on LocaleChain change

2008-12-11 Thread securenetfreedom
I am trying to update an ArrayCollection with new values from a localeChain change. Everything tied to an display control is changing properly, however, the ArrayCollection does not. I've tried the following three methods for accessing the resource, but none work. Is the ResourceManager binding

[flexcoders] AS ResourceBundle Keys with Args?

2008-12-11 Thread securenetfreedom
I am creating ActionScript ResourceBundles. Is possible to create a resource key/value via AS that allows arguments like: rb.content[DISTANCE_FORMAT] = {0} miles; I am getting key/value pairs from a database so I will be creating the RBs at runtime. So will be looping thru the result set with

[flexcoders] Binding Question - ArrayCollection/ResourceBundle

2008-12-12 Thread securenetfreedom
Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of

[flexcoders] Re: AS ResourceBundle Keys with Args?

2008-12-12 Thread securenetfreedom
} miles; //?? does not like {0} Thanks, Jeff --- In flexcoders@yahoogroups.com, securenetfreedom nv1...@... wrote: I am creating ActionScript ResourceBundles. Is possible to create a resource key/value via AS that allows arguments like: rb.content[DISTANCE_FORMAT] = {0} miles; I am getting

[flexcoders] Re: Binding Question - ArrayCollection/ResourceBundle

2008-12-12 Thread securenetfreedom
Thanks, Alex. So I assume a flex button listens for the locale change event and therefore updates it's label? Are you saying create say a LocaleArrayCollection class that dispatches the locale change event? Or are you saying create LocaleChangeDispatcher that dispatches the locale change event

[flexcoders] Re: Flex 3.3

2009-01-27 Thread securenetfreedom
So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated).

[flexcoders] Re: Mimic IGoogle with Flex 3

2009-01-28 Thread securenetfreedom
This is over a year old but is way cooler than iGoogle. http://examples.adobe.com/flex3/devnet/dashboard/main.html --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i would create an app that has the same functionality that igoogle provides.. in particular i

[flexcoders] Re: how open .doc (words )file

2009-05-06 Thread securenetfreedom
How would you gain access to the .doc XML? --- In flexcoders@yahoogroups.com, Weyert de Boer w...@... wrote: I would think that using the Word COM+ objects would be the easiest way to read Word documents. Of course, you can also only support the XML-based version of Word documents Office