Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-29-2010, 11:51 PM   #1
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
how do i make SWF movies that play on mouseover?

i don't want a Flash player that loads an FLV - i want to create SWF's out of videos and then have them play on mouseover. how do i accomplish this?

thanks
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 12:34 AM   #2
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
Old 11-30-2010, 12:51 AM   #3
Realgfs
Confirmed User
 
Realgfs's Avatar
 
Join Date: Feb 2008
Posts: 438
Just google "On MouseOver Goto and Play frame XX"
__________________
Learn how to make the BIG BUCKS as an affiliate at RealGfsBucks.com!

Jake : RealGfsBucks.com : ICQ 406694196 : [email protected]
We give you the best tools to promote Real Girlfriend footage! We supply you with the latest FLA videos, peel ads, RSS feeds, blogs, content packs, awesome banners and of cause crazy hot amateur teens
Realgfs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 08:59 PM   #4
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by potter View Post
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).
no not trying to stop people from stealing videos -trying to do something like this tube site does http://www.empflix.com
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:05 PM   #5
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
javascript ftw... not that much to it eod... make sure you've got a good streaming setup for your flv's or mp4's to avoid bw overages.
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:12 PM   #6
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by munki View Post
javascript ftw... not that much to it eod... make sure you've got a good streaming setup for your flv's or mp4's to avoid bw overages.
take a look at the animated gif in my sig - what i want is something like that, but a still image and then when somebody mouses over it the video plays, stops on mouse out
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:18 PM   #7
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Don't know why you'd be going that route at this point in the game.. Things like the iPad don't support flash.. HTML5 is phasing flash out as well to play videos directly. For long term you'd be better off encoding them H264.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:26 PM   #8
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by Tempest View Post
Don't know why you'd be going that route at this point in the game.. Things like the iPad don't support flash.. HTML5 is phasing flash out as well to play videos directly. For long term you'd be better off encoding them H264.
its not for members area content, have all sorts of formats for members. these mouseovers would be used on a tour rather than using animated GIFs - when you convert even short videos to animated GIFs they are too big, much bigger than an SWF.
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:36 PM   #9
Twoface31
Confirmed User
 
Twoface31's Avatar
 
Join Date: Sep 2006
Posts: 2,746
use flash softwares it can be create the a sequence you want in that softwares
__________________

Email: [email protected]
HentaiG4h * Lusty Life
ICQ: 291-953
Twoface31 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:40 PM   #10
VGeorgie
Confirmed User
 
Join Date: Nov 2008
Posts: 359
There are onRollOver and onRollOut events in ActionScript, but it might be easier not to do these as SWFs with embedded videos, but instead animated GIFs. See how xhamster does it. They are just keyframes played slowly. They aren't full motion video.

Last edited by VGeorgie; 11-30-2010 at 09:41 PM..
VGeorgie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 09:59 PM   #11
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by Mutt View Post
no not trying to stop people from stealing videos -trying to do something like this tube site does http://www.empflix.com
And you're only going to need to do it once, or maybe twice or something on a tour page? Not thousands of times over like they do on that tube site? Because what they do on the tube site is overkill for what you would need then. Unless I'm mistaken - the CMS for that tube site makes a sort of thumbnail video when the user adds a new video - and that thumbnail is a snapshot type thumbnail with a few screens from the video taken from throughout the video at whatever timed interval.

Your best solution (IMO), is going to have someone write you a flash video player in action script (Actionscript > Timeline Bullshit). The Flash video player plays an FLV from a URL when the SWF is moused over. The URL for the FLV is a flashvar.

This would allow you to reuse the SFW anywhere and as many times as you want on any website you ever have. All you have to do is make an FLV video out of whatever video you want, and when you embed your SWF and set the flashvar to where you have uploaded the FLV.

So it'd be like this:
Code:
<object width="550" height="400">
<param name="movie" value="/location/to/your/player.swf">
<param name="FlashVars" value="flvurl=/location/to/your/video.flv">
<embed src="/location/to/your/player.swf" width="550" height="400" FlashVars="flvurl=/location/to/your/video.flv">
</embed>
</object>
Everytime you make a new movie and embed it to your website, you'd just change that url variable in the flashvar to point to the FLV.

I'm sure someone on GFY knows action script enough to write up something like this for you.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 11:14 PM   #12
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by potter View Post
And you're only going to need to do it once, or maybe twice or something on a tour page? Not thousands of times over like they do on that tube site? Because what they do on the tube site is overkill for what you would need then. Unless I'm mistaken - the CMS for that tube site makes a sort of thumbnail video when the user adds a new video - and that thumbnail is a snapshot type thumbnail with a few screens from the video taken from throughout the video at whatever timed interval.

Your best solution (IMO), is going to have someone write you a flash video player in action script (Actionscript > Timeline Bullshit). The Flash video player plays an FLV from a URL when the SWF is moused over. The URL for the FLV is a flashvar.

This would allow you to reuse the SFW anywhere and as many times as you want on any website you ever have. All you have to do is make an FLV video out of whatever video you want, and when you embed your SWF and set the flashvar to where you have uploaded the FLV.

So it'd be like this:
Code:
<object width="550" height="400">
<param name="movie" value="/location/to/your/player.swf">
<param name="FlashVars" value="flvurl=/location/to/your/video.flv">
<embed src="/location/to/your/player.swf" width="550" height="400" FlashVars="flvurl=/location/to/your/video.flv">
</embed>
</object>
Everytime you make a new movie and embed it to your website, you'd just change that url variable in the flashvar to point to the FLV.

I'm sure someone on GFY knows action script enough to write up something like this for you.
that makes sense but why not just dump the video into Flash and do the mouseover code in Actionscript and output as a self contained SWF file to embed on the web page?
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2010, 11:37 PM   #13
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by Mutt View Post
that makes sense but why not just dump the video into Flash and do the mouseover code in Actionscript and output as a self contained SWF file to embed on the web page?
I tend to think down-the-line type of scenario. Where as creating a self contained SWF is the easiest and quickest right now. Six months from now it might not hold up under new circumstances or in a different situation. I always try to go down the path that is more future proof. Specially with Flash too. It's just going down the drain so fast these days. jQuery and HTML5 are the future.

What if in a year you change it to have controls, or something else in the player? You have to rebuild however many SWF files one by one. Instead of just rebuilding that one single SWF player. Could be a number of things too with that logic. Any little change like a sparkly flash when the video starts, etc anything you can imagine - would be rebuilding every single one ever made instead of the one single player file. Or what if someone else took over the project. Anyone can make videos in FLV format and upload them. But not everyone could take a .fla Flash Project and go rebuilding new self contained SWFs in Flash. Even people with step by step instructions can screw that up.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2010, 02:05 AM   #14
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
Quote:
Originally Posted by Mutt View Post
take a look at the animated gif in my sig - what i want is something like that, but a still image and then when somebody mouses over it the video plays, stops on mouse out
Exactly what I thought... you could easily pop that together with js

Use a hidden div... load after pageload is complete to keep page speed up
On mouseover show div using css and trigger js to load player
On mouseout unload player and rehide div
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.