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
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
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
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
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
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
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
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
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
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
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
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
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
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...
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
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.
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
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
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++) {
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
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
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
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
--- 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
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
25 matches
Mail list logo