![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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).
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Do Fun Shit.
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Sep 2006
Posts: 2,746
|
use flash softwares it can be create the a sequence you want in that softwares
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
|
Quote:
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> I'm sure someone on GFY knows action script enough to write up something like this for you.
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
|
Quote:
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.
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |