no.. you can not make a .php file be flash. you can only include that .swf file by using an include.
the code that you have above is html. which is ok!. Lots of people mix php and html together. However.. depending what kind of site you are going to do.... it is recomanded to keep your html apart from the php (two different files).
did that help ya?