Get variable from a Component
i have main .mxml there filterfunction @ main. want retrieve variable component. variable should come textbox changes when item clicked on dg in component. statement like:
public function processfilter(item:object):boolean {
if (mytext.text == item.proxy || item.proxy =="") {
return true;
} else {
return false;
}
}
the mytext in differnet component named detailscomponent.
so thought add mytext : detailscomponent.mytext.text
but no go
thoughts?
george
hi george,
do have detailscomponent placed in main mxml file..???
if have placed component in main mxml file giving id then...you access mytext below...
//in main mxml file
<comp:detailscomponent id="mydtlscomp" />
// mytext text property can access as
var mytext:string = mydtlscomp.mytext.text;
thanks,
bhasker
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment