http://scriptplayground.com/tutorials/as/Center-a-movieclip-on-stage-resize-in-AS3/
#  /  posted on May 26, 2010
Home / /community/ / Components Discussions / Fullscreen Video Background / Page 2
Started 4 years ago by flashblue
Last reply by flashblue
http://scriptplayground.com/tutorials/as/Center-a-movieclip-on-stage-resize-in-AS3/
Hi flashblue,
i have purchased the video background today and i have a question regarding the var params. I want to use the background as a background, means i want to overlay the flash-div by other content-divs (z-index). -in your set the embed flash in absolut in front. Is there a possibility to modify the way of embeding, e.g add the var param "wmode"?
THX. Frank
Open deploy/index.html on a text editor. Replace these codes:
var params = {
scale: "noscale",
allowFullScreen: "true",
menu: "false",
bgcolor: "#000000"
};
With:
var params = {
scale: "noscale",
allowFullScreen: "true",
menu: "false",
bgcolor: "#000000"
};
var params = {
scale: "noscale",
allowFullScreen: "true",
menu: "false",
bgcolor: "#000000",
wmode: "transparent"
};
so very nice, but i need a question. how can go to nex frame or in another frame, after the flv is playng? thanks a lot
dino
Open source/com/flashdo/flashblue/VideoBg.as. Go to line 182.
Change 1 in this code:
ns.soundTransform = new SoundTransform(1);
To 0:
ns.soundTransform = new SoundTransform(0);
I cannot view the pattern image on top of my video? Is there a way to scale the pattern over the SWF? Thank you in advance for your help...
Code:
var flashvars = {};
flashvars.pattern = "images/pattern.png";
flashvars.patternAlpha = "0.5";
var params = {
scale: "exactfit",
allowFullScreen: "false",
menu: "false",
bgcolor: "#000000",
allowfullscreen: "true",
quality: "high",
};
var attributes = {
id: "videobg_swf",
name: "videobg_swf",
};
swfobject.embedSWF("BeachChair.swf", "BackgroundSWF", "100%", "100%", "9", "swfobject/expressInstall.swf", flashvars, params, attributes);
swffit.fit("BackgroundSWF", 500, 500);
Please, send me your files to see the issue. Also, you wrote JS embed codes wrong. swffit for swf id "videobg_swf" not for div id.
Hello. I have a little problem for insert my video in a loop mode. Can you help me? (Sorry for my english...)
It loops the video.
Do you want to play the video only one time without looping?
i have insert my flv video with the new name, but the my video play only one time.
http://www.sudcreativelabs.com/test/index_scl.html and thanks!!!
I sent my test url... have you problem with my request? I do not think this is a code problem, but I think it depends on the video. you know a good software to edit the flv ?(in particular to insert the loop flv option) grazieee
I think so. Because, the video I used loops properly. You can use Total Video Converter.
Hi There - Could you tell me how to stop my video from looping? I just want it to play through once. Thanks
Hi, can you help me? My bg video should be looping, but it is stopping for a while. Why? You can find project here: http://xmax.demo.airstudio.pl
I think, the movie is the electricity / lighteningg effect. It loops regularly.
No, it's not movie problem. I tried run in locally on the computer, ani it's fine. Only on server is problem. I tried to resize movie to 0,5mb, but it didnt resolved my problem. Please, help me!
I think, FLV mime type isn't installed on your server. Please, add this line to your .htaccess file if your site is PHP:
AddType video/x-flv .flv
If your site is Windows driven - ASP.NET, please make these instructions:
http://it.toolbox.com/blogs/rymoore/adding-flv-mime-type-in-iis-4198
i can not resize the video, it is not fullscreen like your example...
how can i fix this, be as detailed as possible...
thk you
i like your background but i could not get it to work in css layers, can you provide a tutorial on that?
-thanks