PDA

View Full Version : [urgent] setMask trouble



oscar alexander
April 7th, 2003, 07:29 AM
Hey peeps,

I'm working on a project right now, where I need to simulate a "scratch-effect" with Flash, however, the setMask method just doesn't seem to work for me...

Could you please examine my code and tell me what the *beep* I'm doing wrong? :sigh:

SWF-file: scratchtest.swf (click) (http://www.misterwhizz.com/oscar/scratchtest.swf)

Source-file: scratchtest.fla (rightclick and save) (http://www.misterwhizz.com/oscar/scratchtest.fla)

Thanks in advance!

Alex

pom
April 7th, 2003, 08:08 AM
There are fans of Alizée in the Netherlands??? :P

And I couldn't take a look at your file, but you can't mask a picture with lines that are drawn with the lineTo method. Only fills. Or clips that you attach.

pom :)

oscar alexander
April 7th, 2003, 08:11 AM
Err... yes. Shouldn't be a surprise though, since she's one of the prettiest girls ever to walk the face of God's green Earth :)

Thanks for the tip!! I'll try to fix it with circular fills then.

oscar alexander
April 7th, 2003, 08:15 AM
Wait a minute... how exactly would I go about creating a 10px back circle?

pom
April 7th, 2003, 08:18 AM
Agreed, but her lyrics are... hum... err... absolutely dumb.

pom
April 7th, 2003, 08:20 AM
Creating a circle is a bit complicated, and it uses very specific numbers. Try it with a square first (easy, right?) or search the forum a bit.

oscar alexander
April 7th, 2003, 08:20 AM
I'd have to agree with you on that ;)

Where are you from anyway? And how do I draw circles in Flash dammit? :)

oscar alexander
April 7th, 2003, 08:21 AM
Ok. I'll try attaching circular clips than... Might be a little cpu-intensive though :(

pom
April 7th, 2003, 08:26 AM
http://chattyfig.figleaf.com/flashcoders-wiki/index.php?CodeAndOnlyCode

Pretty much any shape you want here :)