[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread Tim Hoff
Glad that you got it working Jeff. Cheers, -TH --- In flexcoders@yahoogroups.com, "securenetfreedom" <[EMAIL PROTECTED]> wrote: > > Tim, > > Thanks for all your help. > > I've decided to do away with the editorDataField and simply added an > update function on the 'change' event inside the co

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread securenetfreedom
Tim, Thanks for all your help. I've decided to do away with the editorDataField and simply added an update function on the 'change' event inside the combobox itemEditor: private function update(event:ListEvent):void { data.CostCode = this.selectedItem.data; } Not sure if it's a good practice b

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread Tim Hoff
Or, editorDataField="selectedLabel". Ok, I'm done. :-) -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > You could also try editorDataField="selectedItem"; if your data is > linear. > > -TH > > --- In flexcoders@yahoogroups.com, "Tim Hoff" wrote: > > > > Yeah,

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread Tim Hoff
You could also try editorDataField="selectedItem"; if your data is linear. -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > Yeah, there's some good examples in the help docs. In your > itemEditor, create a public variable. The name of this variable is > what y

RE: [flexcoders] Why would this assignment to a MVC model return null?

2008-05-03 Thread Jim Hayes
Apologies, both were additions/modifications to the code that you posted. So, add this.dispatchEvent(new Event("LoadTextFile.dataloaded")); to the end of method "onCompleteTextLoad" in your LoadTextFile class, and " extends EventDispatcher" to it's definition, to make : "public class LoadTex

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread Tim Hoff
Yeah, there's some good examples in the help docs. In your itemEditor, create a public variable. The name of this variable is what you will put in the dataGridColumn editorDataField property. In your itemEditor, cast the selected item data to the public variable, on the comboBox change event

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread securenetfreedom
I tried using that earlier and got undesirable results: If I use editorDataField="data" then the text field is populated with [object Object]. If I use editorDataField="data.CostCode" then I get a runtime error that data.CostCode does not exist. Any ideas on how to use this properly? Thanks, J

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread Tim Hoff
Cool. Nothing wrong with using the itemEditEnd event. Works well if you need to message the data or update conditionally. A simpler way though, is to use the editorDataField propery. -TH --- In flexcoders@yahoogroups.com, "securenetfreedom" <[EMAIL PROTECTED]> wrote: > > Thanks, Tim! > > W

Re: [flexcoders] Why would this assignment to a MVC model return null?

2008-05-03 Thread dnk
and which file it should be in, etc On Sat, May 3, 2008 at 1:51 PM, dnk <[EMAIL PROTECTED]> wrote: > Ok, just trying to look through the code sample provided a little > confused due to my old code still being in there. > > > > > On Sat, May 3, 2008 at 12:55 PM, Jim Hayes <[EMAIL PROT

Re: [flexcoders] Why would this assignment to a MVC model return null?

2008-05-03 Thread dnk
Ok, just trying to look through the code sample provided a little confused due to my old code still being in there. On Sat, May 3, 2008 at 12:55 PM, Jim Hayes <[EMAIL PROTECTED]> wrote: > > > > > > > It's because the loading of the text file is asynchronous, and in your > example > > > v

[flexcoders] Re: datagrid > combobox > label renderer

2008-05-03 Thread securenetfreedom
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 event and grabbing event.itemRenderer.data.CostCode value and upda

RE: [flexcoders] Why would this assignment to a MVC model return null?

2008-05-03 Thread Jim Hayes
It's because the loading of the text file is asynchronous, and in your example var myTxt2:LoadTextFile = new LoadTextFile("file2.txt"); // populate my model with the results myprojectmodel.getInstance().mytext2 = myTxt2.data; you access it's data variable immediately after instructing it to load

[flexcoders] Why would this assignment to a MVC model return null?

2008-05-03 Thread dnk
Ok, I am using a easymvc structure (tom bray version), and i have run into an issue that is killing me! I am simply loading in some vars from a text file, and to do so i wrote a utility class (to make it reusable). Now in my class, if I populate my model var, it works fine. But it makes that clas

Re: [flexcoders] SOT: ColdFusion backend for Flex, what the heck am i doing wrong...

2008-05-03 Thread Derrick Anderson
thanks guys, One of the main things I do in my shared apps (same code/different db per client) is to store the DSN names in session on the server side. I agree on setting remoteobject credentials and making sure each call is authenticated, i'll check into that. The only other option is to put it

[flexcoders] rtmp and BitmapData.draw() Any workarounds?

2008-05-03 Thread celumbra
I need to "reflect" video —the wet floor style of reflection--that is streaming through rtmp, but I see that the BitmapData.draw() command cannot be used with video streaming through rtmp. Progressive download of the video is not an option for me. Does anyone have any suggestions for what els

[flexcoders] Weborb and Flash media encoder

2008-05-03 Thread rhnkyr
Does anyone know whether there is a technic that provide to use weborb and flash media encoder together? Thnx.

RE: [flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread Alex Harui
In a previous response, I mentioned that if the removed component has been invalidated before removal, the LayoutManager will have a reference and will call it. You can call validateNow() to revalidate before removal, or find out why it is invalidated and prevent the invalidation.

[flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread David Ham
By "still available," the symptom is that after being removed, a trace statement in the removed component's updateDisplayList method still appears. Plus there is other emergent behavior (duplicate objects, etc) that suggests the old page and/or its contents aren't completely gone.

RE: [flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread Alex Harui
I'm not sure what you mean by "still available". Generally, there will be some way to avoid it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Saturday, May 03, 2008 8:22 AM To: flexcoders@yahoogroups.com Subject: [flex

[flexcoders] Re: States, Garbage Collection, Event Listeners--all FUBAR

2008-05-03 Thread David Ham
I changed my setup a bit, but I'm not sure it's helping. I now have a ViewContainer which has a property 'page' which refers to the current view. When I change the page, I do this: * Call the current page's clear() method, which unregisters all of its listeners, and calls similar clear() methods o

[flexcoders] Re: looping with variable on object

2008-05-03 Thread Amy
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > That's ok, dear, we love you anyway. (it's Dad, by the way) > > Tracy > Tee hee...I'd been wondering :-D

[flexcoders] Re: component life cycle question

2008-05-03 Thread ben.clinkinbeard
> Supply any data for childcomponents from a main component. Thats a pretty good guiding principle for both component and application development because it helps you to create loosely coupled components. Even if Application.application.parameters.personID were available to your component I would

Re: [flexcoders] can I have two separate blocks?

2008-05-03 Thread Douglas Knudsen
Fastest way to that answer is try it, eh? Sounds like you'd be better off creating two components though to seperate your concerns. DK On 5/3/08, hoytlee2000 <[EMAIL PROTECTED]> wrote: > Hello, > > can I use two separate blocks? > > Such as: > > > > > ... > ... > ... > > > > .

[flexcoders] can I have two separate blocks?

2008-05-03 Thread hoytlee2000
Hello, can I use two separate blocks? Such as: ... ... ... ... ... ... ... ... ... I'd want to do this to organize my script code between two canvases in a view stack container. Are there any drawbacks to doing this? thanks, Hoyt