RE: [Flashcoders] porting to Flash 8

2007-08-17 Thread Jesse Graupmann
); INIT_bounceMC ( mc5 ); onEnterFrame = bounceEnter; } INIT (); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of coker todd Sent: Thursday, August 16, 2007 10:42 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] porting

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Jesse Graupmann
AS 2.0 is case sensitive. You can start by changing Movieclip to MovieClip Not sure why you are using a function as a multiplier, so you might want to get rid of theMover reference inside itself. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of coker

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread coker todd
so the new code reads: MovieClip.prototype.mcbounceload = function () { bounce = 0.4; speed = 0.9; xpos = _x; ypos = _y; }; MovieClip.prototype.mcbounceenter = function () { x = x*bounce+(xpos-_x)*speed; _x += x; y =

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Kerry Thompson
Coker Todd wrote: so the new code reads: MovieClip.prototype.mcbounceload = function () { bounce = 0.4; speed = 0.9; xpos = _x; ypos = _y; snip That's not a bad way of updating AS1. Just be aware that it's still AS1. If you're going to need to maintain it, I'd go

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Jesse Graupmann
; this.ypos = _ymouse; this.mcbounceenter(); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of coker todd Sent: Thursday, August 16, 2007 8:15 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] porting to Flash 8 so the new

回复:RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread 方林勇
can u give me the fla file, thanks!i really don't know what do u want ?when i see your fla file ,maybe i'll know what do u want? 在2007-08-17,coker todd [EMAIL PROTECTED] 写道: so the new code reads: MovieClip.prototype.mcbounceload = function () { bounce = 0.4; speed = 0.9; xpos = _x; ypos =

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Kerry Thompson
Jesse Graupmann wrote: This works, but it's not really doing anything specific to AS2.0 :-) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread coker todd
Thanks Kerry, what would make it specific? --- Kerry Thompson [EMAIL PROTECTED] wrote: Jesse Graupmann wrote: This works, but it's not really doing anything specific to AS2.0 :-) ___ Flashcoders@chattyfig.figleaf.com To change your

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Kerry Thompson
coker todd wrote: Thanks Kerry, what would make it specific? As I said in my earlier e-mail, I would lose the .prototype. Everywhere. That's pure AS 1. I would subclass MovieClip. That's a pretty standard technique. Write a class (that is, a .as file) that starts something like this: class

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread Jesse Graupmann
Of coker todd Sent: Thursday, August 16, 2007 9:17 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] porting to Flash 8 Thanks Kerry, what would make it specific? --- Kerry Thompson [EMAIL PROTECTED] wrote: Jesse Graupmann wrote: This works, but it's not really doing

RE: [Flashcoders] porting to Flash 8

2007-08-16 Thread coker todd
rather than having onClipEvents on each MC, why wouldn't this work? this.onLoad=function(){ mc.mcbounceload(); mc2.mcbounceload(); mc3.mcbounceload(); mc4.mcbounceload(); mc5.mcbounceload(); } this.onEnterFrame = function(){ mc.mcbounceenter();