DOH! (slaps himself on the head)
I really should avoid continuing to work when I'm already dead tired. :(
Thanks guys.
Thanks for responding, Tracy.
Let's say this is an application that allows generation of license numbers.
Imagine this:
You have 3 columns in the datagrid. The first and second columns are the
first and last names of a person. The third column is a button (which is
really part of an MXML
.iterate through each row. You absolutely *cannot* do that, because all
the DG rows do not exist, only the rows currently visible exist.
You need to have your renderer update the dataProvider with the generated
value, then iterate through the dataProvider. This should not be
difficult.
Tracy
Here is one way to do it. Let's say this is your mxml:
mx:TextInput id=txt width=200 keyDown=txtKeyDownHandler(event)/
Then your keydown handler would be:
// Waiting for return key
private function txtKeyDownHandler(event:KeyboardEvent):void
{
if (event.keyCode == 13)
{
// do
There is a possible benefit to having a try/catch with an empty catch block
-- that your application won't stop execution. If the problem that occurred
in the try block does cause a subsequent problem down the road, that's a
different story.
In the application
where the component resides, I have a 3-element array of strings called
"myArray"that needs to be passed to my component. So my code
is:
myComponent
xmlns="*" arrObj="{ myArray}"/
where "myComponent"
is my custom component, and "myArray" is the 3-element array of
I have a
mx:Text control where i'm equating its htmlText property with a
full-fledged html document. The results didn't come out too well. I'd like to
say it doesn't support the table tag, but in the final rendering, it
seems that boldfaced and italicized text are coming out right, and I
How can Iget the
mouse xy-coordinates? I'm trying to drop an object into a Canvas, and I'd like
the object to position itself where it is dropped, and I can't do that unless I
knew what the mouse xy-coordinatse are at the time.
Thanks.
If I had a
mx:Canvas id="cvs" which had 3 buttons, how can I access references to
these 3 buttons programmatically?
I have tried
:
for (var p in
cvs)
alert(p);
But I seeno
property I can use to iterate through the children, nor do I see the "id" of
these 3 buttons.
Thanks.
Here is an example
where I am creating a button using mxml:
mx:Button
id="btnOK" label="OK" click="btnOKClicked(event, 'hello', 'blue', 'bird');"
/
Notice mythat the
click event refers to a function, btnOKClicked, passing 4 parameters to
it.
Here is an example
of me creating the same
How can Ichange the
mouse cursor to a hand, just like the hand cursor we get when the mouse is
hovered over a mx:Link control? And how do I change it back to the normal
cursor?
Thanks.
Does Flex's
drag-and-drop support dropping of mx:Button or mx:Text objects into a container
like a mx:VBox? Or am I limited to dragging only items from a Tree, a List,or a
datagrid?
When I try to drag a
mx:Text control onto a mx:VBox, everything seems to go find until the DragDrop
event
I am posed with a
requirement where a display of mixed fontweights and fonts is needed. For that
reason, I chose to use a mx:Text control via its htmlText property, applying the
appropriate HTML to accomplish this. More specifically, the mx:Text box was
supposed to contain a company name on
13 matches
Mail list logo