Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
I 'm trying to understand

I 'm trying to understand

2004-02-27       - By Marcelo Simon

 Back
Reply:     1     2     3     4     5     6     7  

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)