Jump to content


Draw Program Question


  • You cannot reply to this topic
9 replies to this topic

#1 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 09 April 2006 - 12:08 PM

I have created a basic Paint program using MAcromedia Flash 8, but it paints on my other movieclips. What is the function for it not to draw on it.


I'm using booleans to see if paint = true/false.

Example of what I'm using

mouseListener.onMouseMove = function() {
	if(paint) {
		board_mc.lineTo(_xmouse, _ymouse);
		updateAfterEvent();
	}
};

The swf of this is located here http://www.deviantar.../view/31524959/

Edited by travmanx, 09 April 2006 - 12:10 PM.


#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 09 April 2006 - 12:51 PM

Create a paint movieclip with the desired dimensions and set it a level lower then all the other movieclips..

#3 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 09 April 2006 - 01:26 PM

View Postfunkysoul, on Apr 9 2006, 05:50 PM, said:

Create a paint movieclip with the desired dimensions and set it a level lower then all the other movieclips..

I have

this.createEmptyMovieClip("board_mc", 999);

How do i set dimmensions.

I did have
board_mc.width = 550;
board_mc.height = 320;

but didn't do nothing

#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 09 April 2006 - 03:35 PM

you forgot the _

board_mc._width = 550;
board_mc._height = 320;


#5 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 09 April 2006 - 04:10 PM

View Postfunkysoul, on Apr 9 2006, 08:35 PM, said:

you forgot the _

board_mc._width = 550;
board_mc._height = 320;


ah yes forgot that, i'lkl try now

#6 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 09 April 2006 - 04:13 PM

eh now i can't draw.

#7 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 09 April 2006 - 04:54 PM

you probably need to change your painting script to paint on that movie...
_root.yournewmc.blahblahblah....

#8 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 10 April 2006 - 02:15 PM

View Postfunkysoul, on Apr 9 2006, 09:54 PM, said:

you probably need to change your painting script to paint on that movie...
_root.yournewmc.blahblahblah....

can i send you my .fla of it and you can tell me what needs to be done?

#9 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 10 April 2006 - 04:23 PM

you can also put this line of code on the onMouseDown function after the updateAfterEvent

	if(_ymouse >300){
		isDrawing = false;
	}

But the fla that I sent you works much better...

#10 travmanx

    Young Padawan

  • Members
  • Pip
  • 25 posts

Posted 10 April 2006 - 08:24 PM

View Postfunkysoul, on Apr 10 2006, 09:23 PM, said:

you can also put this line of code on the onMouseDown function after the updateAfterEvent

	if(_ymouse >300){
		isDrawing = false;
	}

But the fla that I sent you works much better...


Thanks man, wish i could repay you somehow:)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users