PDA

View Full Version : Dynamic setMask... again and again...


rzazueta
05-24-2004, 07:15 PM
I just did a search through both the Flash MX and the ActionScript.org sites and am just not seeing what it is I'm doing wrong. But that's why there's a community for these things.

All I have is one frame with two movie clips being linked from the library. The first movie clip (col_sanders) is nothing but a single frame movie clip with a bitmap. The second movieclip, circMask, is nothing but a small black circle.

What I'm trying to do is load both dynamically and resize the circleMask dynamically. To test it, I've written the following code on the first frame of the main stage:

_root.attachMovie("col_sanders", "movie1", 1);
_root.attachMovie("circMask", "mask1", 2);
_root.movie1.setMask(_root.mask1);
_root.mask1._width = 360;
_root.mask1._height = 360;

All I keep getting, though, is a black circle the size I specified sitting on top of my JPG image -- absolutely no masking. Am I insane? What am I doing wrong?

Thanks!

Rob Z.

farafiro
05-25-2004, 04:35 AM
this looks fine, post the fla if u can

rzazueta
05-25-2004, 11:33 AM
I sense we're about to have a "dumb newbie" moment, here ;-) It's just been a bit more than a year since I last tackled this stuff, so I'm behind the curve.

Excuses, excuses...

Zipped fla attached. Image in it is copyright 2000 me ;-)

CyanBlue
05-25-2004, 11:39 AM
Um... There is no way we know if it is copyrighted or not if we are not able to open it up, right??? :)

Moving to FMX 2004 forum... Please post your question to the right forum... :)

rzazueta
05-25-2004, 12:06 PM
Sorry. Apologies... forgot we upgraded...

farafiro
05-26-2004, 02:39 AM
execuse me rzazueta
what version of flash you have??
u r setting it to be published to Flash 5, so it doesn't work
;)

rzazueta
05-26-2004, 11:15 AM
execuse me rzazueta
what version of flash you have??
u r setting it to be published to Flash 5, so it doesn't work
;)

<sigh> I'm going to go over here, sit in the corner and beat myself over the head with my "Learn Flash MX in 24 Hours" book for a while, if you don't mind...

I have Flash MX 2004, but I apparently messed with the settings at some point and, yes, saved down as Flash 5. I bumped it up to Flash 6 and everything works as expected. Thank you all for your help. Stupid newbie question indeed. ;)

Thank you all for your prompt help!

Rob Z.

farafiro
05-27-2004, 12:48 AM
nop, anytime mate

<sigh> I'm going to go over here, sit in the corner and beat myself over the head
lemme do that
go to the corner u young boy, face to the wall, hands up
put that Flash book over the head
and don't fall it down
;)