Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-17-2011 06:35 AM
Alright, I'm in a pickle. I want to Click a button (A label to be exact).
So I've got my Label
I've got and event listener for the label click
And now I want to take the Text String of the label and use it in a dispatch event while sending a page change event (2 dispatch events at once to a 2nd page)
On this second page I Need to know what the string of the button pressed was so I can further process events.
Basically this is my event flow:
I have everything working perfect except for the string button dilemma. There will be many buttons (rather labels) involved.
Solved! Go to Solution.
03-17-2011 07:43 AM
Every event has a "target" attribute. The target is the object that originally dispatched the event. For example, a LabelButton dispatches an event on click, you can cast the target back to that object to know some things about that target (assuming the target is still in memory).
private function ButtonClicked( event : Event ) : void
trace( 'button ' + LabelButton( event.target ).label );
If you are passing an intermediate event and you want to carry information with that event, then you can create your own Event class by extending the base Event class and adding attributes that you want to carry along. You may also want to look at the meta event class which allows you to attach meta information with the event class being dispatched.
03-17-2011 07:50 AM
03-17-2011 09:43 AM - edited 03-17-2011 09:47 AM
nvm this post