FORUMS: list search recent posts

simple actionscript, rollover for multiple movieclips

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Crystal Coffelt
simple actionscript, rollover for multiple movieclips
on Mar 20, 2009 at 4:26:04 am

Hi, I'm a little rusty on the actionscript.
Here is my code. I want this one applied to multiple movieclips.
Is there a way to simply do that so I don't have to copy and paste the code 106 times (ouch)

Also.... I would like to apply a easing in/out zoom affect to the same movieclips on rollover. What would be my best bet?

import fl.transitions.easing.Strong
import flash.filters.GlowFilter;
var filt:GlowFilter = new GlowFilter(0xFFFFFF, .5, 30, 15);


twofinger_mc.onRollOver = function() {

this.onEnterFrame = function() {
twofinger_mc.filters = [filt];
}
}

twofinger_mc.onRollOut = function() {
this.onEnterFrame = function() {
twofinger_mc.filters = [];
delete this.onEnterFrame;
}
}


Thanks... I'm trying to finish this thing tonight, rahh, LOL.



Return to posts index

Crystal Coffelt
Re: simple actionscript, rollover for multiple movieclips
on Mar 20, 2009 at 4:45:56 am

oh, tee hee....

I can acheive multiple rollover events by changing the following line:
twofinger_mc.onRollOut = function () {

to

twofinger_mc.onRollOut = my_mc.onRollOut = function() {


now, about adding a zoom to all the movieclips on rollover... easing in / elastic something to the sort.



Return to posts index

Crystal Coffelt
Re: simple actionscript, rollover for multiple movieclips
on Mar 20, 2009 at 4:47:07 am

Here's the entire code... fyi



import fl.transitions.easing.Strong
import flash.filters.GlowFilter;
var filt:GlowFilter = new GlowFilter(0xFFFFFF, .5, 30, 15);


twofinger_mc.onRollOver = function() {
this.onEnterFrame = function() {
twofinger_mc.filters = [filt];
}
}

twofinger_mc.onRollOut = my_mc.onRollOut = function() {
this.onEnterFrame = function() {
filters = [];
delete this.onEnterFrame;
}
}

bottleLoader.tonalaAnejo.onRollOver = function () {
this.onEnterFrame = function() {
filters = [filt];
}
}





Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]