So this is a little shady, but should work. You can set the phase attribute of a button with Actionscript. It's marked as mx_internal, so the usual disclaimer goes along with doing this: it's subject to change in future releases, yadda yadda... But if you want something that works, here you go. Note that you need the use namespace and import statements that you see below.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"> <mx:Script> <![CDATA[ use namespace mx_internal; import mx.core.mx_internal; import mx.controls.ButtonPhase; ]]> </mx:Script> <mx:Button label="Button 1" id="b1" /> <mx:Button label="Button 2" id="b2" rollOver="b1.phase = ButtonPhase.OVER" rollOut="b1.phase = ButtonPhase.UP" /> </mx:Application> On 4/1/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
when you dispatch an Event that way does your handler still fire? You may have to manually switch the normalskin to the value of the overskin. This would be nasty tho. Good question, perhaps Ely or Alex can elaborate? On 01/04/2007, at 3:46 AM, dantmcgowan wrote: and I use dispatch event to simulate the mouse over: myButton.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));

