Hi there,

I think, not sure ;), this is a simple question, but I am little
confused how implement it.
In my ProdutoThumb, I have a TextInput, NumericStepper and I will have a
button. What is the best way to get the respective events in my app? I
mean, how I will get the change in the textInput, NumericStepper and the
click on the button.

Tks!

Fernando


****************
My app:

<mx:TileList selectionColor="#FFFFFF" rollOverColor="#FFFFFF"
                                        id="list" width="100%"
height="100%" dataProvider="{objProdutoProposta}"
cellRenderer="ProdutoThumb" itemWidth="500" itemHeight="90"
                                        dragEnter="doDragEnter(event)"
                                        dragExit="doDragExit(event)"
                                        dragDrop="doDragDrop(event)"
                                        dragOver="doDragOver(event)"
        
dragComplete="doDragComplete(event)"
                                        />



*****************
ProdutoThumb.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml"; width="100%"
height="100%">

        <mx:Script>
                <![CDATA[
                        var objProduto: Object;
                        function setValue(str: String, item: Object){
                                if (item == undefined){
                                        visible = false;
                                        return;
                                }
                                else{
                                        objProduto = item;
                                        visible = true;
                                }
                        }
                        
                function hideWhenChanging()     {
                        image.addEventListener("contentPathChanged",
mx.utils.Delegate.create(image, function() { this.visible=false; }));
                }
                
                ]]>
        </mx:Script>
        
        <mx:Canvas width="20%" height="80" clipContent="false">
                <mx:Image width="90%" id="image" visible="false"
source="/images/produtos/{objProduto.SPRODUTOIDOFFICER}"
complete="event.target.visible=true;"
creationComplete="hideWhenChanging()"/>
        </mx:Canvas>
        
        <mx:VBox width="80%" height="80">
                <mx:Label textAlign="left" text="{objProduto.STITULO}"
width="100%"/>
                <mx:HBox width="100%">
                        <mx:Label text="Qtde:" width="15%"/>
                        <mx:Label text="Vl.Rev.Unit." width="35%"/>
                        <mx:Label text="Vl.Cli.Unit." width="50%"/>
                </mx:HBox>
                <mx:HBox width="100%">
                        <mx:NumericStepper value="{objProduto.NQTDE}"
minimum="1" maximum="150" width="15%" />
                        <mx:Label text="{objProduto.NVLREVENDAUNIT}"
width="35%"/>
                        <mx:TextInput id="txtVlCliente"
text="{objProduto.NVLCLIENTEUNIT}" textAlign="right" width="50%"/>
                </mx:HBox>
        </mx:VBox>

</mx:HBox>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to