|
I just wanted to mention that vars defined
in the <mx:Script> of an <mx:Application> aren't global variables.
They are instance variables of that application, in the same way that vars
defined in the <mx:Script> of a component are instances variables of that
component. If the application's vars were global variables, you could reference
them from component scripts without using parentApplication. - Gordon From: In the click event method, you could set a
global variable (defined in the script section of your mxml file) to be a value
that represents the pushed button...something along the lines of the following:
function click (event) {
pushedButton = ~buttonPushed~ } <mx:Canvas height="480"
width="640" id="mainCanvas"
creationComplete="drawLines ()"> </mx:Button
click="click()"/> </mx:Application> From: How does one determine which
button the user clicked when showing an YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Handling mx.controls.Alert.show() Yes/No Opt... Gordon Smith

