Missing basic understanding of events


i'm new flex, i've got 95% of need data-streaming prototype using blazeds.

 

i'd appreciate insight on last 5%:  events (dispatching , listening)

 

i have datagrid being populated 1 set of data - car makes (chrysler, ford, gm).

 

i have datagrid being populated car models (300c, mustang, camaro).  dataset being pushed blaze imessage event.

 

when flex app renders car makes datagrid, text not enabled.

 

what i'm trying accomplish this:  once receive message car models stream it's done make, want enable make's  text.

 

here's actual datagrid:

    <mx:datagrid id="dgmake" x="25" y="180" width="109" height="397" dataprovider="{initml}" textalign="center">
        <mx:columns>
            <mx:datagridcolumn headertext="makes">
                <mx:itemrenderer>
                    <mx:component>
                        <mx:text textalign="left" width="90%" text="{data.make}" enabled="false"/>           
                    </mx:component>                       
               </mx:itemrenderer>
           </mx:datagridcolumn>
        </mx:columns>
    </mx:datagrid>

 

if walk me through basics of setting listener, i'd grateful.

-chad

usually enabling accomplished via field in data, not setting listener.

 

you create [bindable] boolean var , set value true after make data has been processed.

 

<mx:text textalign="left" width="90%" text="{data.make}" enabled="{myvar}"/> 



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts