[urgent] setMask trouble

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)

Source-file: scratchtest.fla (rightclick and save)

Thanks in advance!

Alex

There are fans of Alizée in the Netherlands??? :stuck_out_tongue:

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 :slight_smile:

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 :slight_smile:

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

Wait a minute… how exactly would I go about creating a 10px back circle?

Agreed, but her lyrics are… hum… err… absolutely dumb.

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.

I’d have to agree with you on that :wink:

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

Ok. I’ll try attaching circular clips than… Might be a little cpu-intensive though :frowning:

http://chattyfig.figleaf.com/flashcoders-wiki/index.php?CodeAndOnlyCode

Pretty much any shape you want here :slight_smile: