noaaprogrammer
Programmer
I am attempting to create a Flash game that interacts with a MySQL database using PHP. I created a 600x600 pixel .jpeg in Fireworks, and would like to import it into Flash. I want the user to click on a spot of the image, and I want Flash to send the coordinates of the mouse click to a PHP file. Does anyone know how to do this?
I imported my jpeg as a button so that I could use the "onMouseEvent" function. I added getURL function to it for when the mouse is pressed, and put "handle.php?_xmouse". When I run the movie, I can click on the image, and it will call the PHP file. But it isn't passing the x mouse coordinate. It just passes the literal string "_xmouse".
I imported my jpeg as a button so that I could use the "onMouseEvent" function. I added getURL function to it for when the mouse is pressed, and put "handle.php?_xmouse". When I run the movie, I can click on the image, and it will call the PHP file. But it isn't passing the x mouse coordinate. It just passes the literal string "_xmouse".