I 'm trying to understand 2004-02-27 - By Marcelo Simon
Back I'm doing a lot more actionscript programming later and I got stuck with some mc's acting as buttons. I figure out what was wrong, but I didn't understood why. So can someone explain this to me
Having this code :
this.movieclip.onEnterFrame = function() { this.gotoandPlay("something") }
this.movieclip.onPress = function() {` gotoAndPlay("something") }
why I shoud use this. on the enterFrame function ( it's not needed since is in the same timelime but I was teched to use ), and when the mc has any button event handler ( onRollOver, onRollout, onPress ... ) using THIS. don't work at all, I have to use only the function/code ?
i~ve just learned that it should be coded this way, by trying to figure out what was wrong with my code for some hours... now I want to understand
if someone can clarify me, please
GriLLo
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ 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)
|
|