Try using public instead of private for your function.


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Tuesday, February 20, 2007 10:48 PM
To: [email protected]
Subject: [flexcoders] Bubbling Events???

Hello everyone,

I'm trying to get an event in a component to register in my main
application. The info gets passed correctly to the application page,
but it says that it can't find the "Variable" that I specified (even
though it's an event).

The btnHover is the event that successfully passes a TextEvent, i just
cant get it to call tileHover (it says it's not there)! 

<Application>
Private function tileHover(event:TextEvent):void{
//do something
}

//some code
<qs:DragTile id="cmp">
<qs:itemRenderer>
<Component>
<qs:BitmapTile btnHover="tileHover(TextEvent)"/>
</Component>
</qs:itemRenderer> 
</qs:DragTile>

</Application>

Thanks so much in advance,

Nate



 

Reply via email to