Flash Frustration!!!

Hello, hello, hello!

Can anyone help me with this simple piece of code? Written for Flash in AS 2.0. Here’s the bare bones of the image i’m working on….

Flash Frustration!

When writing the code to make my brush leave a trail, I have succeeded!! However, Flash doesn’t want to repeat the process. 😦 I’ve tried everything, and the code that I KNOW works, won’t work when placed in any other file. Very frustrating.

I have made symbol a button and applied this code to it, in order to leave the trail.

onClipEvent (load) {
_root.createEmptyMovieClip(“line”, _root.getNextHighestDepth());
line.lineStyle(5, 0x000000, 100);
var drawing = false;
this.onMouseDown = function() {
drawing = true;
};
this.onMouseUp = function() {
drawing = false;
};
this.onEnterFrame = function() {
if (drawing == false) {
this.line.moveTo(_xmouse, _ymouse);
}
if (drawing) {
this.line.lineTo(_xmouse, _ymouse);
}
};
Symbol.startDrag(“true”);
Mouse.show();
}

I know it’s basic but even when i copy & paste into new file it won’t work, so if any Flash gurus have a solution, let me hear it cause my MacBook is in grave danger of being shattered into smithereens! 😀

Thank you please! 🙂

Advertisements
This entry was posted in Blog. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s