on (rollover) + on (release) 2004-03-04 - By Andreas Weber
Back The code you posted does something like:
When clicked the first time I do A When clicked again I do B Whne clicked agian I do A
constantly alternating between two options.
> I'd like to be able > to use on (rollover) and on (release) on the one button.
is not quite the same - you would just do:
on(release){ trace('I do A'); }
on(rollOver){ trace('I do B'); }
Or - better - with the 'new' (Flash 6+) event handler model, from the parent timeline:
myButton_mc.onRelease = function(){ trace('I do A'); }
myButton_mc.onRollOver = function(){ trace('I do B'); }
-- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|