Newbie needs help in PHP/FLASH

Hi everyone , i am newbie a noob in PHP + Flash

i wanna make a flash application that take photos from my webcam and i can name it whatever i want and store inside a flash gallery database.

anyone can tell me how should i start? any tutorials? any source files i can download? anyone? thanks a lot !