Controlling movie thru external files

hi everyone…
im new to flash programming stuff. im was searching something for a project,
ok basically i need something like this…:

lets say there is and image file… or php or asp file… if someone tries to see this image over the browser, or file… under any condition, my flash movie, for ex. starts to play,

so i think i need something like external data to control flash?

what is the structure for this?
what kind of stuff i need to work on this kind of flash programming,

thanks to all…