PDA

View Full Version : Scratchcard from flash v8 to v6


Ralla
12-12-2005, 08:13 AM
Hi, I've made this Scratchcard:

http://pxit.dk/flash/skrabelod.swf

Here's the code:

onClipEvent(load) {
_root.createEmptyMovieClip('square',0);
function drawSquare() {
x = _root._xmouse;
y = _root._ymouse;
with(_root.square) {
moveTo(x-25,y-25);
beginFill(0x000000)
lineTo(x+25,y-25);
lineTo(x+25,y+25);
lineTo(x-25,y+25);
endFill();
}
}
this.setMask (_root.square)
}
onClipEvent(mouseMove){
drawSquare();
updateAfterEvent();
}

Now, my probkem is: I need to have this exported to flash player 6, which is not possible at the moment, because of the actionscript. Do any of yuo guys have an idea of, how to make the same effect and export it to flash player 6?

Ralla
12-12-2005, 09:47 AM
I solved it - it was one of my gradients from v8 that wouldnt convert to 6 :|