PDA

View Full Version : motion and properties


superramesh
12-06-2001, 03:27 AM
hi there,

So I have a simple problem (I think) and need you all to help!

I have a screen with several buttons on it, one in the center and 10 or so on the periphery.

When the center button is clicked, it triggers a quicktime movie, which I already have working.

However, what I want to have happen is when a peripheral button is clicked, it moves to the center, and a number of new buttons are instantiated based on a database call, etc.

I have all these buttons as diff instances of the same symbol, but the key is that I only want the movie to trigger when the center button is pressed and with a periphery button i want it to move into the center and become the focus button. I want this movement to be elegant and dynamic, and I also want when this move happens to make a php call to a MySQL database?

Can anyone help me out? How do I even start to approach this problem? Any sample code out there that can give me an essence?

thanks a lot!

pls let me know
ramesh

Ricod
12-06-2001, 07:57 AM
So, I don't know the actual code yet, but am finding out (I have an example of Robert Penner in javascript, but I'm sure sure there's a php equivalent)

What u need to do is either script the motion or tween it. (I assume u know both/either) Check this tut for scripted motion :
http://www.actionscripts.org/tutorials/intermediate/Motion_using_Actionscript/index.shtml

In the PHP script u put the stuff to retrieve the data from ur mySQL database (Can u do that in HTML ? If not you'd better start by looking at a few tutorials about mySQL/PHP combo's. Check either http://www.webmonkey.com or http://www.devshed.com (I used the latter, since it was a little easier to comprehend)) and send that data back to flash ! (There's also a tutorial for that ! Isn't that great ?) Check :
http://www.actionscripts.org/tutorials/intermediate/php_send_mail/index.shtml
for sending data from flash to PHP. And :
http://www.actionscripts.org/tutorials/intermediate/loadVariables_script_interaction/index.shtml
to send variables from PHP to Flash.

This is too large a subject to just explain here in a post. Once u get stuck, just post it ! It'll take some time, but in the end u'll know what ur doing ! Good Luck ! :) We need more PHP/mySQL ers here !