RE: [flexcoders] Catching graphics update on UIComponent

2009-07-12 Thread Alex Harui
Try calling validateNow() before taking the snapshot Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of richmcgillicuddy Sent: Saturday, July 11, 2009 6:53 PM

Re: [flexcoders] newbie question : putting a semicolon in a mxml property

2009-07-12 Thread Sam Lai
Not if there is just a single line of script within the quotation marks. If you wanted to do something like this though, mx:Button label=some label click=t1.text = t2.text; doSomethingElse(); t3.visible = false; / Then you do need the semi-colons. Most people just have the semi-colon there out

[flexcoders] flash button in flex issue

2009-07-12 Thread j2me_soul
I got another problem. In flex I can only reference the flash button by its ID property. Most of the time I can't know its ID. I need cover it to a super class like MovieClip Instead of that. How can I fix this ? mx:Script ![CDATA[ private function clickHandler(event:MouseEvent):void

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of one columen (Profit) based on the value of another column (Kind) ie.. the results (either 'LONG' or SHORT'). Here is where I'm at. I've tried putting code into customer

[flexcoders] flash component in flex issue

2009-07-12 Thread j2me_soul
I got another problem. In flex I can only reference the flash button by its ID property. Most of the time I can't know its ID. I need cover it to a super class like MovieClip Instead of that. How can I fix this ? mx:Script ![CDATA[ private function

[flexcoders] Re: Error: Unknown Property: 'constructor'. when using LCDS

2009-07-12 Thread postwick
I realize this is an old thread I'm digging up, but I am running into the same problem. I did the artists example from : http://www.adobe.com/devnet/coldfusion/articles/data_app.html The grid fills just fine but when I try to edit a cell I get: Error: Unknown Property: 'constructor' I looked

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of

[flexcoders] Image control reports wrong size

2009-07-12 Thread jaywood58
My app needs to display an image inside a VBox, with content auto-scaled to fit the width of its container, and the VBox height adjusted to accommodate its children. The problem arises when the loaded image has content width VBox width, i.e., when the image content is scaled to fit --VBox

RE: [flexcoders] BrowserManager not working

2009-07-12 Thread edencane
Hi. Thanks for your response. After some more troubleshooting the problem is the following: the URL is returned correctly by the following code: import mx.managers.BrowserManager; import mx.managers.IBrowserManager; import mx.utils.URLUtil; import mx.utils.ObjectUtil; private var

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
Is there a particular row you want to update? If a row is selected, you would use... Profit.selectedItem[datafieldname] --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: From within the custom component DataGrid Column I tried this code as you suggested at the initialize event

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
Not sure why you have all the Application.application stuff on there. Just reference the datagrid by it's id. mx:DataGrid id=mygrid mygrid.selectedItem[columname] = some value --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: From within the custom component DataGrid Column I

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
so if it's doing it row by row, then it would need to be a labelfunction event right? where would you suggest the code go? there needs to be an if (datagrid.seleteditem[Kind]==LONG)datagrid.selecteditem[Profit]=Profit; then another line that stipulate the other option: if

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick p...@... wrote: Not sure why you have all the

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
I am trying to set the value of a column based on the value of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick p...@... wrote: You access the value in a column of a datagrid like this...

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
if you just did dataGrid.selectedItem then that would be the selected row. add [columnname] to get to the column, so: dataGrid.selectedItem[columnname] it's not the label, it's the data column name. --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: yes the datagrid is bound to an

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
From within the custom component DataGrid Column I tried this code as you suggested at the initialize event but it errors: if(Application.application.CnvPos.dgOrdExt.selectedItem[Kind]==LONG) Profit.dataField=Profit; I don't think the selecteditem field is the answer.

[flexcoders] Trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in

2009-07-12 Thread yonghan79
Hi all,i'm trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in..I'm trying to use 2 viewstack,one for user,one for admin and i got a component where the login form is in the component..What should i do to define the dataprovider on the mainbased on user log in??Thanks a

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
Ok... In the parent component to the datagrid I used an initialize event: public function initDg():void { if(dgOrdExt.selectedItem[Kind]==LONG)dgOrdExt.Profit.dataField=Profit; if(dgOrdExt.selectedItem[Kind]==SHORT)dgOrdExt.Profit.dataField=ShProfit; } it does not work. but if I replace the

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
You can't use selectedItem because there is no selectedItem. You haven't clicked a row. Try looping through the grid. In the end, I really don't understand why you don't do this in the dataCollection, or even in the source data. for (var i:Number = 0; i mygrid.numChildren; i++) {

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem[dataColumn2] --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I am trying to set the value of a column based on the value

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
yes the datagrid is bound to an array collection. I don't want to select any item, I want to change the value of a column's DataField to a one of two values based on the value of another column's output. I don't want to have to 'selecteditem' but I can try that code below are you suggesting

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
now we're getting somewhere! but will this update the value of the col2 or the value of col2 DataField? I am trying to change the value of col2 DataField to Profit not the value of col2 itself. Can I use: dgOrdExt.getChildAt(i)[Profit].dataField = Profit CS --- In

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
That'll update the value of the cell. You can't do what you're trying to do. You can't have a column with a different dataField per row. The dataField for the column is the same for every row. Is this data coming from a database, through a view? You really should do this there. You can

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
--- In flexcoders@yahoogroups.com, postwick p...@... wrote: thank you, sir... I appreciate your help, I shall do as you say !! Craig That'll update the value of the cell. You can't do what you're trying to do. You can't have a column with a different dataField per row. The

[flexcoders] Loading External wysiwyg editor

2009-07-12 Thread Jonathan Ackerman
Hey All, I have been playing with some options to try and get a better editor to work in Flex. As we all know, the RTE that comes as a standard control in Flex is a but limited, and I thought to try and get one of the javascript based editors to load. Does anyone know if it is possible to