Inserting An Advertisement In The Flash Player While The Video Buffers
Hi!,I have a web site with videos and they will be streamed thru a flash player. Now my requirement is basically a skin with the following feature..A JPEG advertisement is displayed while the video connects and buffers. Once the video is ready, the JPEG is removed and the video plays. At the completion of the video, the JPEG is replaced. I shall be using a banner ad management software so as to make a geo targeting ad..Well my requirement is that I need to have static advertisement displayed while the video connects and buffers. JPEG is removed and the video plays. At the completion of the video, the JPEG is replaced. Can anyone help me as to how it is done OR give me script for the same.Please feel free to contact me on my email.. sukhmaniaps@rediffmail.comregards,Ajeet Text
Adobe > Flash General Discussion
Posted on: 08/18/2007 11:31:47 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Inserting Video In Flash
Hi can somebody help me with this...
i have a couple of video that i want to insert in a specific place but i dont know how to do it.....
i will have a button for each of the videos....
[F8] Inserting Youtube Video Into Flash
i am making a web page with flash. it uses actionsript2. i was wondering if i can put an utube video into my flash page, with out using frames. can i load a html page via xml or java script. the html page would have the youtube video Embed.
the reason i want do that is to save bandwidth. my swf is for flash player 7
Inserting Flash Video Into HTML
Hi Everyone! I'm new here and am hoping someone out there might be able to help. I'm building my own website (never done it before, so all the jargon is new to me) and have purchased a ready made Flash video to use on my opening page. Unfortunately I simply cannot figure out how to get it there. I've got as far as seeing a video type box similar to the ones you'd see on YouTube but that's not how the file looks when I view it in its html format. I'm using one of Serif's DIY packages. Am not sure if this doesn't support it???? Can anyone give me some advice please????
Inserting Flash Video Into HTML Page
Hello,
This is probably a silly question, but how can you take a video you have encoded into flash and insert it into an HTML page? I tested the video with the "test movie" in flash and there it was, video and controls and all. How do you now take this to the HTML page to place it where you want on there?
Thanks again!
Rob
Flash Advertisement..?
Guys,
pls. chk this site out..
www.rediff.com
they have a flash advertisement, which covers the main part initially and after a while it reduces itself and sits as a small square add..!!
does anyone know how to do this.. or do you have the code for it..
would be great if you could post it.. im desp'ly lookin out for it..
thnkz in advance...
Flash Web Advertisement
I am very wet behind the ears when it comes to flash and this may be a dumb question but there is a banner ad on this site in the upper right hand corner that is activated on mouseover; www.codyenterprise.com and i was curious how it was done, as far as setting the document up in flash and actually placing it on the page.
Flash Advertisement
hi all!
i want to know how some sites are displaying advertisement using flash: while page is being downloaded then the ad is big in size, after some time the size become small.
and there exist 2 link, one for close and 2nd one for reply again. yahoo, rediff is using this type of ad.
any body help me.
thanks in advance.
Samser Mondal
[F8] 2 Flash Objects - Audio Player Passes Pause To Video Player
I have 2 flash objects on my html page.
One is a video player and the other is an audio player.
The video player starts playing by default.
I'd like to somehow set this up so that if someone clicks on the audio player, it automatically pauses the video player.
Please note that these are 2 SEPARATE FLASH OBJECTS on my HTML website. I'm not developing an all Flash driven website.
The audio player was added as an afterthought, originally there was only going to be a video player on the page.
How can I send a pause command from the Audio Player to the Video Player?
FOO
Develop Advertisement Flash
hello friends,
how to develop advertisement flash files.
i need flash file to flase size increase in browser load then resize and it original position(exmaple rediffmail first page left side advertisementbox(martrimonial,other add)
please anyone known reply me ur solution
thankyou.
thennavan.c
Advertisement Manager For Ads Within Flash
Hi Guys,
Im running a flash website, Im getting around 15,000 visits per day, and I have allocated 4 areas of the site for advertisements. I want to have 2 types of advertisements: pay per click, and pay per impression/view.
Ofcourse there are many php ad managers out there, but how can I display the ads inside of flash? I don't mind if I manage the whole thing in a php page, but at the end, I want the advertisements to be displayed within flash, and ofcourse have all necessary changes made when a user clicks on an Ad (pay per click), or when the Ad is displayed (pay per impression).
Thanks!!
Inserting Video
I am VERY new to this and get confused pretty easy, so here it is - I viewed some samples to get some idea of how things wrok. I made a small movie clip of boxes changing colors. I started another movie and added some buttons to go to a frame and stop. OK, my movie clip covers 5 frames - and you probably know what I'm going to say - when a button is pressed the movie clip stops - how do I keep this movie clip looping.
Thanks Tom
Inserting Video ? Help Please
Hi Folks.
This is my first post here, I hope someone can help.
I have a short video clip with audio that I want as the backrgound and to play over and over without any controls.
I have been looking and reading but I am at a loss, I have imported the video into the library but I cant get the video to play when I test my movie.
any help would be great.
Many thanks in advance.
edd.
Video Player Component Using Flash Player 6
I'm streaming video using Flash Player 6. The problem I am having is that the video will only play at a super small size, something like 180 x 60 (that's a guess). Is there a way to play the video at the 320 width that I redered it as?
I'm using Flash Player 6 because some code that came with my purchased Flash Template does not work unless it's published to Flash Plaey 6.
Thanks in advance!
Flash Player 10 Killed My Video Player
Hi Everyone,
I am new to this forum, but love all of the very valuable information that is available here on gotoAndLearn. I am hoping to get a solution for a couple of problems that have arisen in an application that I'm developing.
I am the developer for the web site at http://www.quired.com. I have a few different issues going on with my content. I just updated my flash player to version 10.0.12.36 yesterday. The update completely screwed up my application. The site runs off of a CMS that is built with PHP/MySQL. There are 3 Flash components: the Menu, the MediaSelector, and the MediaPlayer.
I will preface this by saying that in the past I had experienced problems with embedding multiple swfs in the same page with swfObject and AC_RunActiveContent. My solution to this was to embed the MediaSelector and MediaPlayer into individual .html or dynamic PHP pages and then use an iFrame and Javascript to load these into the main page as necessary. The idea is that the when the user clicks the menu, a Javascript is called that reloads the MediaSelector with thumbnails for videos, images, and audio clips that are linked to the page. When a user clicks a thumbnail from MediaSelector the MediaPlayer loads in with the clip that was clicked and the group of clips that the item is in. Now the user can continue to browse the site while still viewing or listening to the media in the group.
Before the update, I had experienced issues on a couple of older computers with older browser version and figured that the issue was more with the Javascripts that get called from within the swfs. The problem was basically that when the user clicked a thumb the player didn't update. Originally, we sent the user to a completely different page to view the media. The only changes that I made to the MediaSelector was the URLRequest in a navigateToURL().
My code changed from:
public function loadMedia(Event:MouseEvent):void{
var url:String;
var window:String;
//make sure it is a media item
if(Event.currentTarget.type_id < 4){
//if it isn't an image load the media player otherwise load the image with Javascript
if(Event.currentTarget.type_id != 3){
url = "../../../MediaPlayer/index.php?id="+Event.currentTarget.id+"&pageID="+requestID;
}else{
url = "Javascript: loadImageViewer('"+Event.currentTarget.id+"');";
}
window = "_parent";
}else{
url = "Javascript: loadBookInfo('"+Event.currentTarget.id+"');";
window = "_parent";
}
navigateToURL(new URLRequest(url), window);
}
To:
public function loadMedia(Event:MouseEvent):void{
var url:String;
var window:String;
//make sure it is a media item
if(Event.currentTarget.type_id < 4){
//if it isn't an image load the media player otherwise load the image with Javascript
if(Event.currentTarget.type_id != 3){
url = "Javascript: loadMediaPlayer('"+Event.currentTarget.id+"');";
}else{
url = "Javascript: loadImageViewer('"+Event.currentTarget.id+"');";
}
window = "_parent";
}else{
url = "Javascript: loadBookInfo('"+Event.currentTarget.id+"');";
window = "_parent";
}
navigateToURL(new URLRequest(url), window);
}
So basically only one line changed to call a Javascript instead of a URL. This worked fine in most updated browsers so I didn't think that there was an issue in the swf, but in the Javascript. I started to test the functionality in Safari and when I clicked the MediaSelector the swf disappeared and nothing happened. Also, my MediaPlayer wouldn't load in via the IFrame. I was thinking that this was an IFrame issue with Safari, but couldn't really find any information on it. I next tried to embed the swfs directly into the page using swfObject 2.1 and couldn't get them to work. I could right click in the area where they should be and it would tell me the Flash Object was loaded, but the swfs didn't show up. So, I then thought that possibly my Flash player wasn't up to date in Safari and downloaded and installed the update for Safari and Firefox. This didn't fix any of the issues that I was having with the swfs, but it did cause some new problems:
1) Videos in the MediaPlayer play, but are not visible. The audio is audible and the progress bar updates, but I don't get any image. I used the Video class to build this player. The progress bar autohides unless you hover over where it nests. In IE, it never comes into the screen when watching a video now. It does for audio though.
2)When playing an audio clip, I used the Bitmap Class to draw a waveform and add some filters, but now that I've updated the Flash Player the wave only shows up when the audio is paused or loading.
These issues are consistent in IE, Firefox, and Safari so it must be an issue with the new Flash Player. Somebody please help me figure out what to do about this. We are going to make a launch on the website next week and I can't have it breaking when people start updating their Flash Players.
Is there any way to force the player to run in a Flash 9 compliant mode? Sorry to write a book here, but I think that an understanding of how the app works will help in finding a solution.
[F8] Flash Advertisement Layer Cross HTML Table
Hi guy,
I read some Flash made advertisement can across the HTML table as Yahoo, it's look like a HTML layer.
The advertisement have a process such as a big preview with layer on the Yahoo Front Screen, after few action message then reduce to the advertisement's original section and preview last few shot action something...
How to make it, buy AJAX or Javascript or any item relate to actionscript
Thank
Inserting Video Clips ..Help
how can i insert video clips, MPEGS or avis.
Whenever i go to insert , a box comes up asking me if its ok to use a load of frames?
how do i go about it
thanx
Inserting Video Into Layers...
I have a small video recorded on Quicktime Format, and I want ito apply to a lyer in Flash... what is the best format to do it ? and the best way to change formats ? thanx in advance...
Video Player For Flash Player 7
Hello all,
I haven't worked much with video in Flash so any tips appreciated. I created a small swf that streams an flv in Flash 8 and used the FLVPlayback Component. Problem is that Player 8 just isn't very wide yet so I'd like to make this Player 7 compatible. Anyone have pointers to a player component or AS that I can trake apart and make work? Thanks!
FLV Buffers Then Pauses
I am progressively downloading video in my flv player and the init buffer is set to 10. Sometimes though it plays for a second then buffers then pauses then buffers even if it looks as enogh info has been buffered. I want to know if it could be cause how I have my function set up. Here is the code. If anyone nows a better more efficient way to do this please let me know.
ActionScript Code:
//Video Code
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(10);
ns.onStatus = function(info) {
trace(info.code)
if (info.code == "NetStream.Play.Start"){
netStreamStopRedundancyCheck = setInterval(stopRedundancyCheck, 10);
}
if (info.code == "NetStream.Buffer.Full") {
//Hide buffering message
bufferClip._visible = false;
}
if (info.code == "NetStream.Buffer.Empty") {
//Show buffering message
if (ns.time<duration) {
bufferClip._visible = true;
bufferClip.gotoAndPlay(2);
}
}
if (info.code == "NetStream.Play.Stop") {
//Action called when video stopes playing (end)
clearInterval(netStreamStopRedundancyCheck);
trace(ns.time+"; duration:"+duration);
if (ns.time>=(duration-0.01)) {
showEndInfo();
preview.gotoAndStop(1);
preview._visible = true;
largePlay.gotoAndStop(6)
largePlay._visible = false;
_global.playStatus = false;
videoEnd = true;
}
}
if (info.code == "NetStream.Play.StreamNotFound"){
_global.badStream=true;
}
};
stopRedundancyCheck = function(){
if ((ns.time > duration-0.39) && (ns.time > 0)){
movieControls.loader.progressbar._width = (duration/duration)*barWidth
showEndInfo();
preview.gotoAndStop(1);
preview._visible = true;
largePlay.gotoAndStop(1);
largePlay._visible = false;
_global.playStatus = false;
clearInterval(netStreamStopRedundancyCheck);
videoEnd = true;
}
}
Buffers: Outstreams Vs Instreams
hello;
I am terribly confused about buffers;
with regards to an incoming netStream ?
with regards to an outgoing netStream ?
can anyone shed any light please;
thanks
Shannon Burnett
[FMX04] Are Back Buffers Possible?
I'm attempting to create an effect system that will allow for motion blurs and a variety of other effects.
My attempt to create this system is by using a series of movie clips that are duplicates of a main movie clip, each a snapshot slightly farther back in time.
This doesn't work, as I think I may be lacking some fundemental understanding of how clip duplication works.
Below is code that should be creating a duplicate clip, 10 frames behind in time. The clip exists but the sub-clip isn't attached.
ActionScript Code:
// The main movie clip.var main_mc : MovieClip;main_mc = this.createEmptyMovieClip("main", this.getNextHighestDepth() );// Dynamic add a child movie clip of a squarevar obj_mc : MovieClip;obj_mc = main_mc.createEmptyMovieClip("obj", this.getNextHighestDepth() );MovieClip = new MovieClip();obj_mc.lineStyle(2, 0x000099);obj_mc.beginFill(0x5050FF); obj_mc.moveTo(0,0); obj_mc.lineTo(30,0); obj_mc.lineTo(30,30); obj_mc.lineTo(0,30); obj_mc.lineTo(0,0);obj_mc.endFill();var i : Number = 0;this.onEnterFrame = function(){ // Move sprite clip, increase amt before frame copy. obj_mc._x += 1; i++; // Wait 20 frames before duplication. if (i > 20) { i = 0; mc1.removeMovieClip(); main_mc.duplicateMovieClip("mc1", this.getNextHighestDepth() ); // ??? - clip is duplicated, but no child clip "mc1.obj_mc"? }}stop();
When duplicating clips, is it possible for dynamically added sub-clips on that clip get duplicated as well?
[CS3] Pause Flv On Frame 1 Whilst It Buffers?
Hi there,
The site I'm developing at the moment has an FLV at the beginning which is used as an intro animation. I'm streaming it in using netStream but I've run into a problem.
Is it possible to have th flv pause on the first frame of the video and then play once enough has been buffered? At the moment it shows a black screen sometimes.
I thought that a way to combat this would be to have a screenshot of the first frame that I display until it starts playing and then just remove it once the video gets to frame 2. However, I don't know how to track whether the playhead has gone past the first frame in flvs.
Can anyone shed any light?
Cheers
Matt
Playing Movieclip While Sound Buffers...
Maybe I'm too tired today or just because I'm a woman but can't find out in AS3 how to make a stupid preloader...
Code:
s = new Sound();
buffer = new SoundLoaderContext(4000, true);
s.load(new URLRequest("yeah.mp3"), buffer);
sc = s.play();
This is my code and I have a stupid small clock with two frames, 1st stopped, 2nd working. Just want the user to know that the sound is buffering... MC should stops when sound is playing, not when totally loads.
Any tips??
I feel really frustrated today.
Separate Buffers For Vid Clips On Same Timeline.
hi,
You'll probably laugh at me for the rookie way I set this up,....but here goes,....
I have a site I'm playing some video clips in. Basically just an ext .swf that has buttons and the following code on fr1.
Code:
stop();
b1.onRelease = function() {
gotoAndStop(5);
}
b2.onRelease = function() {
gotoAndStop(10);
}
b3.onRelease = function() {
gotoAndStop(15);
Then, in fr5, fr10, fr15, etc,.... I'm using separate keyframes to place repetitive code for each video clip, as follows...
(I know this is probably NOT the best way to do this, but it's about my level right now.)
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
---
ns.setBufferTime(45); // buffer 45s of vid b4 start playing
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible =false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible =true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
---
theVideo.attachVideo(ns);
ns.play("domino.flv");
etc....
My problem is that after you load-in any one vid, when you click on another button to watch another clip, onStatus() no longer works properly because the buffer is actually full from the prior video. I guess my question is how do I create a separate buffer for each vid clip?
Thanks in advance, as always. :)
Uploaded 4mb MP4 Buffers Indefinitely But Works Locally?
I can view my mp4 file locally within a swf but when I upload it to my host it will not play, it buffers indefinitely. This is only a 4mb file. Am I missing something simple here? All of the files are in the same directory, html, swf, player template, js file...
It is set to progressive download and not streaming too.
Thanks for any help.
Flash Video Player
I am creating/working on a Flash MX video player. When a user selects a video, I use the LoadMovie command to load a .swf file which contains my video. I want to preloading a part of the .swf file (video) and then have it play. When this happens, the movie(the video) starts, but without sound until all the video has preloaded and then the sound plays. I don't understand what's happening.
Here is my movie: http://www.whfs.com/hfs_video4.html
Thanks in advance!
Flash Video Player
I want to build or use a tutorial to build a flash video player with the flash mx componets. I need it to put a demo reel online.
Thanks LowTech Design
Flash Video Player
I am wanting to make a Movie player in flash. it will need the following
1. Able to play swf.'s or mpeg's or generic video format
2. Rewind, play, pause, fastforwad buttons
If anyone knows of a tutorial or something simmiliar that mite help please let me know!!
Flash Video Player Help
I was just wondering if anyone knew of a good flash video player tutorial. Essentiallly what I'm looking for is a tutorial that will show me how to make a custom player for movies in flash that has play, fast forward, rewind, go to end, go to beginning, and...most importantly, a progress bar that has a slider that can be moved around to change the position of the movie.
I actually already have some code that does this, which is recycled from someone at work who is no longer here. I just don't really understand it and want to start from scratch. I'm not having much luck finding relevant tutorials, so if someone could point me in the right direction I would be greatly appreciated.
Video In Flash Player
What im trying to do is view video in flash player that is coming from the video in on the g card.I want to have some kind of inerface with a place for the video.All this shuld be offline - no need of a server.Im not thay new to flash but i havent work whit video.Can someone help me at geting the video on stage.
Flash Video Player
I am looking for a flash video player to play flash video's of bands online, and I would like something similar to the one used by youtube. Does anyone have any suggestions?
Thanks!
Flash 8 Video Player Help
i do not use flash much and when i do i use the video player feature even less
i am almost ready to buy sqeeze because i can not get it flash to work correctly,
the video compressed fine and looks good here is my problem.
i upload the video to a server put the correct path in and make a swf if gets the video file size correctly when it reads file from the server so it is the right path but it does not load the video just a white screen
if i do a direct link the the flv file on my computer it plays just fine but i do not get the video buttons that i picked.
1. when i view as html it does not show 100% of the video it cuts it off and does not show the video player ( i have tried internal and external )
2. when i view it is SAflashplayer it defaults to like the above but if i select 100% and pull the window out i get it as the correct size. and it plays how it should look in html.
i have tried every setting that i can think of with scale and such but it always plays the same way no matter what i do.
if i bring the html file flash creates into golive and adjust it it just makes the video bigger but does not show the whole thing.
i am sure it is just me doing something wrong or i am missing a step some place any help would be great.
thanks
Flash Video Player
Hello!
I need some help on how to create a basic video player with flash, just with the basic buttons and maybe a preloader.
Is there any good tutorial on that?
Many thanks
Looking For Flash Video Player
Hi there,
I'm lookign for a good video player (FLV loader) with all the user interface needed (play/pause, time display, ...).
Do anybody here knows an open source project like that ?
Thanks
Flash Video Player, PHP, And XML
I'm the visual designer for a web site "Global Oneness Project" (http://www.globalonenessproject.org/videos.php ) that's currently "streaming" progressive download quicktime movies. The individual video pages (where you view a video) is currently a php template that calls a MP4 from an XML file. Our goal is to switch the embedded quicktime videos to embedded Flash videos that play progressive download movies.
Ideally I would like to create a single Flash Video player (SWF) thats embedded in a single php template (video.php), but will play different videos depending on what state of the php is being called. Basically, I want the site to work exactly like it does now but with Flash instead of Quicktime.
I'm assuming that this will be created with some combination of an external "AS" file, the XML data and the PHP logic but can't even begin to get my mind around what needs to be done.
I found a few examples of how to play multiple videos in a single player, but all of the examples use a playlist that's embedded in the SWF. The video player will only be used for player control and the user will choose the movie by selecting the correct PHP page within the HTML.
I'll be thankful for any direction you all can give or even a Flash developer who would be able to take this project on.
Thanks,
Shawn
shawnpcollins@mac.com
Flash Video Player
Hello, not too sure if this is possible so thought i would post the question on here!!
I have a database full of the locations of FLV files. These files are sat on my server in certain folders.
I wish to pull out the location of these, and play them within a flash player with a playlist.
Is this possible?
Could anyone point me in the right direction?!?
Thanks
NIck
Flash Video Player CS3
I have just started to use CS3 and need some help to create custom video player with custom controller, anyone steer me in the right direction to do this?
Video Player In Flash
hey,
i am newbie to flash. i wonder whether it is possible to run video player, such as windows media player, quicktime, realplayer in the flash. i know you can run those inside a html webpage, however, what about in flash?
if i want to play a video in flash, does it have to be converted to flash video format?
thanks.
Flash Video Player
I am starting a huge project that is going to involve making a video player to play movies for a website. I have been researching many sites to see what I would like the player to do but have no idea where to start once I know what I want the player to do. I have done some beginner to mid level flash coding but nothing really with video. I am looking for some place or some sort of direction to start learning what I will need to make this project work.
Thanks in advanced,
Derek
Flash Video Player
Hi all,
I have just completed a fully functional flv player built using actionscript as opposed to the FLVPlayback component. For pulling in the flvs I use an xml file which is displayed in a listbox component. I have chosen a vertical display for the controls instead of the usual horizontal and have created tool tips for the volume scrubber and an altered context menu for right click.
Anyway, would be good to hear what people think, people can have the swf and xml file if they want to use on their site, no drama...
Check my blog for more info..
Si
Flash video
Help Me With This Flash Video Player..
Hey all..
Just wanted to say that I've been checking this forum for a while and its such a great resource..
I came across this site Psyop, and I love the way they used flash in presenting theyr movies. There is no need for a quicktime plugin or anything. So my question is how did they do it? How did they make it progressive? is it a flv or a swf file that loaded trough a flash video player? or what? and how did they skin the player?
I need to create this for a project that I'm working on, so please do help me if possible. I tried to search the web for something similar but I didnt find anything..
Thank you..
Flash Video Player
hi 2 everyone!
Does anyone know where i can find tutorials on how to create a flash streaming video player?
(or even the player itself!) : )
Unfortunately, i've only downloaded components, with certain design that cannot be modified..
Thanx in advance!
|