View Single Post
Old 11-30-2010, 12:34 AM  
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
That's not really how it works. A SWF is an applet, or script. It's like a program. An FLV is a movie, like a .mov or .wmv file. The way flash video works, is you have a SWF program that plays a flash video (FLV).

Theoretically, in flash - you could write a flash script to - on mouse over, begin playing an embedded video (the video itself would be apart of the SWF file, along with the scripting). What you would have to do is create a flash video for each your movies - open the Flash program, drop the video file into the library, and save the flash file. It'd be like you have this single flash file - with some action script that states [[play movie1.flv in library on mouse over]], and every time you had a new movie you would name it movie1.flv open this flash file REPLACE the movie and then resave the flash file -- so you would be left with a new SWF with the video embedded in itself, which would play that embedded video on mouse over.

However that is really backwards from the way it should be done. The way it should be done is to write a SWF flash program that says [[play this flashvar on mouseover]], and that flashvar would be the flv. So your SWF would pretty much be a video player, but without any controls -- all it would do is play the movie on mouse over. You save your movies as FLVs, and set them as flashvars when embedding the code to your page.

Are you trying to stop people from stealing your videos? Because there is probably a better way than what you're proposing. I mean, if you're only going to make like 3 of these movies -- and update them once every six months. Then it wouldn't be so bad to do it the way you want to. But if you're talking about a lot of videos, then it would be a MAJOR pain. And there are plenty of SWF rippers out there that can pull apart all the components of a SWF file (so someone could get the video file out of it anyway).
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote