Drawing API

OK, this is alot to ask, but worth a try!!

I have an image of a map. I want my user to be able to draw a line on the map. I have seen the tutorial how to do this and it works great, but…

I need to restrict where the the user can draw (for example if the map was of the US, I only want them to be able to draw on Georgia. The rest of the map should not allow drawing.

In addition, when they stpo drawing and release the mouse, I need the movie to go to another frame in the movie.

To give some background, this is a simulation of a piece of software that allows users to draw on a particular US state and then when they relese the mouse it takes them to a new view of that US state (hence the need for the move to another frame.)

I know this is a long shot, but I also know some of you flash geniuses (geniusii??) could help me.

insert begging smiley!

colin

Just use hitTest with the drawing API. It should do what you need.

I will try looking up hit test.

Thanks for that.

Im beginning to think this might be out of my ability boundary!

Naw, especially if you got the Drawing API under control! I’m sure you can handle it.

Not really under control!!!

but it did draw!..thats a positive right!

I will give it a bash though…Scottish mentality…never admit defeat!

cheers again.

I agree with DigitalPimp - the API’s the harder of the two.

You know what else you could do’ you could make the state into a button and then apply your gotoAndPlay(“whatever”); on the button. The drawing API will draw right on top of the button. Would that work?

That would work Freddy or check clipEvent for mouse up. :p:

maybe.

you folks are quality!