it seems i always get to a standstill in flash when i try to make something mask.
the file i'm working on has 5 animated movie clips, what i'm trying to do is make each one a mask and have the masked image reveal more as the movie clips expands. the code to expand and retract is already made and works, until i apply the mask property to the image i'm working with.
here's a snip of the code, i'm new to as3 so it's probably not very concise at all.
box1_mc.addEventListener(MouseEvent.MOUSE_OVER, box1Over);
box1img_mc.mask = box1_mc;
function box1Over(event:MouseEvent):void {
box1_mc.addEventListener(MouseEvent.MOUSE_OUT, box1Out);
box1_mc.removeEventListener(MouseEvent.MOUSE_OVER, box1Over);
myLogoTween = new Tween(box1_mc, "width", Bounce.easeOut, box1_mc.width, box1_mc.width = 220, .5, true);
myLogoTween = new Tween(box1_mc, "height", Bounce.easeOut, box1_mc.height, box1_mc.height = 125, .5, true);
}
function box1Out(event:MouseEvent):void {
box1_mc.addEventListener(MouseEvent.MOUSE_OVER, box1Over);
box1_mc.removeEventListener(MouseEvent.MOUSE_OUT, box1Out);
myLogoTween = new Tween(box1_mc, "width", Strong.easeOut, box1_mc.width, box1_mc.width = 160, .5, true);
myLogoTween = new Tween(box1_mc, "height", Strong.easeOut, box1_mc.height, box1_mc.height = 65 , .5, true);
}
-
- box1_mc.addEventListener(MouseEvent.MOUSE_OVER, box1Over);
- box1img_mc.mask = box1_mc;
-
- function box1Over(event:MouseEvent):void {
- box1_mc.addEventListener(MouseEvent.MOUSE_OUT, box1Out);
- box1_mc.removeEventListener(MouseEvent.MOUSE_OVER, box1Over);
- myLogoTween = new Tween(box1_mc, "width", Bounce.easeOut, box1_mc.width, box1_mc.width = 220, .5, true);
- myLogoTween = new Tween(box1_mc, "height", Bounce.easeOut, box1_mc.height, box1_mc.height = 125, .5, true);
- }
-
- function box1Out(event:MouseEvent):void {
- box1_mc.addEventListener(MouseEvent.MOUSE_OVER, box1Over);
- box1_mc.removeEventListener(MouseEvent.MOUSE_OUT, box1Out);
- myLogoTween = new Tween(box1_mc, "width", Strong.easeOut, box1_mc.width, box1_mc.width = 160, .5, true);
- myLogoTween = new Tween(box1_mc, "height", Strong.easeOut, box1_mc.height, box1_mc.height = 65 , .5, true);
- }
-
-
the swf and fla are here ->
http://drop.io/cdnflashany help would be greatly appreciated, i'm out of ideas