);
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 to
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();
mc2.mcbounc
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf 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 G
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 C
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 c
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
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 =
mouse;
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 th
Coker Todd wrote:
> so the new code reads:
>
> MovieClip.prototype.mcbounceload = function () {
> bounce = 0.4;
> speed = 0.9;
> xpos = _x;
> ypos = _y;
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
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 = y*bounce+(ypos-_y)*spee
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 tod
11 matches
Mail list logo