ActionScript 3.0 :: Any Way To Put Button On Video?
Feb 13, 2009I want to put a button on my video, I see it all the time, just don't know how to do it.
View 1 RepliesI want to put a button on my video, I see it all the time, just don't know how to do it.
View 1 RepliesThe stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
[Code]...
I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.
View 2 RepliesI'm trying to create a simple "universal" media player which presents the same user interface (or as similar as possible) for video and audio playback. Unfortunately, FLVPlayback seems not to be able to handle audio files as far as I can tell, so I'm using a Sound and SoundChannel.
My video playback is handled using an FLVPlayback component which is "wired" to standard controls on-the-fly when needed. What I want to do is wire them to the Sound / SoundChannel when I'm playing a sound so that the same UI widgets work in both cases. I'd like to avoid building all my components from scratch because the FLVPlayback component does a lot of nice stuff "for free" but it's starting to look tricky.
The standard PlayPauseButton is a MovieClip with two layers, one containing the Play button (and with the instance name play_mc) and the containing the Pause button (pause_mc). Inside one of these is a movie with some code like this:
stop();
this.upLinkageID = "PauseButtonNormal";
this.overLinkageID = "PauseButtonOver";
this.downLinkageID = "PauseButtonDown";
[Code]....
when the video reaches 1 minute, a button appears. is there a way to hide the button again if the user uses the seek bar to go back to the 30 second (or any time before 1 minute) point?
View 2 RepliesI am trying to load a video which is in the same folder as the flash file using a buttons but its not loading.
Here is the code I am using:
_root.Cross.onRelease = function() {
_root.gotoAndStop(9);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
Gamevid.attachVideo(ns);
ns.play("gta.flv");};
I'm very basic at flash, but sofar I've created a little portfolio page with a video background as a front page. I want to add a button to the background which will turn of the current video and play another video and when the button is pushed again it will play the first video again.[URL]
here's my as for the videobackground:
import VideoBg;
var videos:Array=new Array('videos/bird_short.f4v');
var num:uint=1;
[Code].....
I'm working on a simple Video player that plays upon click. Than, once the movie is done playing, the oplay button re-appears and you can re-play the movie.I'm trying to add a Pause button when a user puts a mouse over a movie.. So, the pause button should appear once the Mouse is over the Movie and dis appear when the MOuse is moved..Below is the script so far:
import fl.video.*;import flash.display.MovieClip;
var myVideo:FLVPlayback = new FLVPlayback();var playbtn:playBtn = new playBtn();var staticpic:staticPic = new staticPic();
[code].....
I'm trying to work on a flash project. Essentially, when I press a button it initiates a video symbol. Once that video symbol is loaded, there are 3 buttons to choose from. When I click one of the buttons, it should do a gotoAndPlay. Instead, what does happen is I click the first button:
[Code]....
Am a novice so not completely sure if i am doing things rite! I have a video in my time line onto which I would like to place a button/watermark reading "click here" with a click-through URL. This needs to be visible always whilst the video is playing. To do this i have created a button on the video, created a new actionscript layer and put the following code:
[Code]...
I'm trying to figure out how to get my replay button to appear at the end of my external flv video. From what I've researched so far the best way to do it would be with netstream or cue points (both of which I don't know). I am not the best actionscripter
View 4 RepliesI created an FLV of my movie and am using the Slideshowpro for flash component to play the FLV in my SWF. (Not the built in FLVPlayback component) The video is about 2 minutes long.At the end of the video playing I would like a button to pop up that people can press to send an email to request more information. I have no idea what the best way to go about doing this would be and I do not know AS well at all.Currently my only thought is to make my player.swf (the one that plays my video) as long as my video (appr. 2 minutes) and then fade in a button towards that people can use. This would probably work but it is probably not the most efficient way of accomplishing this.Does anyone have any suggestions? I have been searching for things like adding annotations to flash movies just as YouTube does but have not found anything so far.
View 4 RepliesI'm trying to built a flash site with a flv video as background. The video and the buttons are in different layers in the main timeline. The problem is that when i open a certain button, i want the video to stop.
View 1 Repliesi have a problem with a back button when i click BACK the video of the FLV video component continue and also when i'm back in the home page i can hear the sound...how can i stop it here is the code of my back button
stop();
back_btn.addEventListener(MouseEvent.CLICK,backvid eo);
function backvideo(event:MouseEvent):void {
gotoAndPlay("1");
}
the video instance name is my_video I try to put my_video stop(); but nothing
I would like to create my own mute button in as3. I have created a video object which plays my video fine. I'm having trouble finding information on how to create a mute button that mutes the audio but the video continues to play. All documentation that I've read relates to controlling sound from an loaded .mp3 file.
View 8 RepliesWhen I import flv video on Flash CS4, I have a option to choose a skinning. When I choose SkinUnderAll, a lot of contorl buttons are available including full screen mode button. However, it does not include movie mode button. I am not exactly sure if it is called movie mode button. When you press it, a video clip will be displayed in center and surrounding area become transparent black. How can I obtain such a button?
View 3 RepliesI'm using the FLVPlayback component and I need a rewind button. I don't want it to go back to the beginning of the video, only go back a couple of seconds everytime the button is pressed.
View 16 RepliesI have created a SWF file with a button which is action scripted to load a FLV video. However I am still not sure that I am filepathing the inserted FLV file correctly. I have set the absolute file path including http://www.etc..com however the movie does not load. Is the _root correct? Should this be cleared?
View 2 RepliesI am importing video into flash via FLVPlayback Component..
What I would like to do is have a button after the video is done playing that offers to re-play the video and may be another button with some other action.. I"m sure it's some kind of "if" statement... (to see when the video is done playing)
What is the best way to switch a video to fullscreen from a button in AS3? Like the fullscreen button in FLVPlayback component - I'm aware the FullScreen tag needs to go into the HTML...
View 1 RepliesI'm working on a flash video.. I have no problem converting/linking the video, etc - however, need to have a replay button as well as another button (to go to another page and such) after the video is done playing. I'm assuming that I need to check for when the video is done playing and than make the buttons visible?
View 3 RepliesI'm new at actionscript and not sure how to do this. I have a button named btnPlay and an flv video named valerie.flv. I would like it when the button is pressed, the flv video plays in the same flash file through the standard flv player.
View 1 Repliesi wanted to do a simple action that when you press a button a video appears, it's just that. But I don't have enough knowledge about flash and it's scripts.
View 4 RepliesI'm working on a flash video.. I have no problem converting/linking the video, etc - however, need to have a replay button as well as another button (to go to another page and such) after the video is done playing... diret me to a tutorial about this? I'm assuming that I need to check for when the video is done playing and than make the buttons visible?
View 1 RepliesIm looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen. If anyone knows which code i should attach to this button to pop up the vide
View 4 RepliesAm I missing something or it is just flash? Well I have a PlayerVideo which extends Sprite and have 3 children:1. flash.media.Video2. flash.display.Sprite as PlayPause button3. flash.display.Sprite as MuteUnmute buttonThe thing is that when I have video attached to PlayerVideo, button mouse events are not working, when not Sprite buttons are working okHave anybody ever had something similar ? Mybee some workaround?I have tried wrap with MovieClips and Sprites, but it is the same effect,
View 2 RepliesI'm trying to get a flash menu up for my website but I can't seem to figure out if.else statements to work for me.
Here's the problem. I want the menu to play a video when you rollover a button. After you click the button I want that video to keep playing. If you just roll off of the button without clicking I want it to play a different video.
I have an embedded video in Layer 1. I create a new Layer 2 and wish to add a button to stop the embedded video.I change the Instance Name of the embedded video to my_video. I then add the following ActionScript to the button:
on(click) {
my_video.stop();
}
[code].....
I have 1 flash file in which has an animation playing. Once you press the play button I made it clears the animation and loads a .swf (we'll call it 2.swf).[code]The 2.swf has a .flv inside of it which is loaded from our server (not embedded).I'd like once the .flv stops playing for a button I named replay_btn to show up and be able to load the .flv one more time.I tried load commands but am probably doing it wrong.
View 2 RepliesI am building a website for a project of the university. as i am not a programmer i bought a template from flashden. i need to do some adjustements and alleready asked the author to help, but he has no time to do. i thought maybe i'll get some help over here.
I need a fullscreen video as an intro for that page. there should be a skip button and when the video has finished playing you should get to the page... the page uses a percentage preloader and i want the same preloader for the video, so that it looks like it belongs to the page.