PDA

View Full Version : Mc interacting with another Mc's alpha


debijoy
10-28-2002, 11:23 PM
Hi everybody,

There's a mc animation (mc_balance) playing on stage.
There's another mc on stage (BGD_Mc) (this mc clip is not an animation)

What I'm trying to achieve is:

when "MC_balance" reaches frame 258 I would like mc_bdg to have its _alpha = 40 (possibly shading from 100 to 40)

Is there anyone who could give me hints on how and what actionscript I should write?

Cheers,

Debi

farafiro
10-29-2002, 07:29 AM
attach that code to the mc_bdgonClipEvent(enterFrame){
if(_root.MC_balance._currentframe==258){
this._alpha -=10
}
if(this._alpha == 40){
this._alpha = 40
}
}

debijoy
10-29-2002, 11:32 AM
thanks farafiro...

it worked...

the only thing is that mc_bgd's alpha goes down of - 10 every time mc_balance reaches frame 258...

...therefore mc_balance should hit frame 258 six times before mc_bdg's alpha is 40.

What I was trying to achieve was:

mc_bgd's alpha going down to 40 when mc_balance hits frame 258 the first time and possibly shading from 100 to 40 (kinda motion tweening effect...)

(all that, actually, via actionscripting)...

see what we can do...

cheers

dabijoy

farafiro
10-29-2002, 11:42 AM
nop, it shouldn't do that as it's onEnterFrame status, make a stop action in frame 258 and see the results

debijoy
10-29-2002, 11:55 AM
yes!!! it works... ! thanks

but my animation stops at frame 258... and, sorry I forgot to tell you, frame 258 is not the last frame of my movie...

mc_bdg should in fact shade down to 40 while mc_balance keeps playing until it hits tha last frame [and while hitting last frame mc_bdg's alpha should go back to 100 (but I think I can work that out once we've got the scripting for the previous one)]

cheers

debijoy

debijoy
10-29-2002, 12:09 PM
also, if i'm not bothering you too much, mc_bgd's alpha goes down to nothing and not to 40....

i'm sure we can work it out...

cheers

debi