Flash :: Add Button-like Behavior To A Video Player Button Component?

Feb 23, 2011

I'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]....

View 1 Replies


Similar Posts:


Php :: Mute A Flash Video Player When User Click On A Social Button?

Sep 19, 2011

How can I mute the video on the a page to do the following: Once user clicks on any of the social buttons, the flash video should mute automatically.

View 1 Replies

Actionscript 2.0 :: Flash MP3 Player - Previous Button And A Volume Scrolling Button?

Apr 18, 2009

I am completely new to this with flash and action script. I checked the Flash MP3 Player tutorial and I wonder how I'm doing a previous button and a volume scrolling button in action script?

View 1 Replies

ActionScript 3.0 :: Video Player - How To Get Rewind Or Start Again Button

Jul 21, 2011

I am creating a video player with my own buttons, play stop are easy, but I can't for the life of me get it to rewind or start again (not loop). It may be worth noting that the flash video is store within a movie clip! The flv instance is flv_close and the movie instance is mv_close.

View 4 Replies

ActionScript 3.0 :: Capturing Video Player FullScreen Button?

Jul 30, 2010

How do you capture the event on the Video Control Skin when the Full Screen button is clicked.

View 3 Replies

ActionScript 3.0 :: Interactive Video Player - Button Linking

Feb 18, 2011

I'm trying to make an interactive video player where you have a choice of 3 buttons and each button links to a different frame that has a video player embedded in it. Once on of the frames are brought up, I have a button to take you back to the main screen. However, after clicking back to the main screen, I'm running into the following output error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at memorialsample_fla::MainTimeline/frame1()[memorialsample_fla.MainTime line::frame1:4]
at flash.display::MovieClip/gotoAndPlay()
at memorialsample_fla::MainTimeline/gotoMain2()[memorialsample_fla.MainT imeline::frame2:11]

Once the above output error occurs, the buttons are no longer active and no longer work. Here's a look at my code that I have going on:
Frame 1:
stop()//Link to Frame 2btn_MJ_Main.addEventListener(MouseEvent.CLICK, gotoMJ) function gotoMJ (e:MouseEvent){
//btn_Beach_Main.removeEventListener(MouseEvent.CLICK, gotoBeach)
//btn_MJ_Main.removeEventListener(MouseEvent.CLICK, gotoMJ)
btn_Cloud_Main.removeEventListener(MouseEvent.CLICK, gotoCloud)gotoAndPlay(2)
[Code] .....

If you want to see the actual SWF for a better visual at what I'm doing, you can see it here: [URL]. Scroll down to the Flash object, it says "Memorial Tribute Samples". I have the videos streaming, and am not sure how I could get the FLV videos to stop playing when I click the flash's "Return to Samples" button. Right now, the users would have to pause the video if they don't want it to play in the background as they go back to the first frame.

View 2 Replies

ActionScript 1/2 :: How To Get Fullscreen Button Into Video Player Skin

Jul 18, 2011

Any way of building in a fullscreen button right into the skin of a video player using actionscript 2? Or perhaps have access to a source file? I've seen the skins with fullscreen with AS3 with CS3, but I need tut on skins with fullscreen using AS2.

View 1 Replies

ActionScript 2.0 :: Button Switch IF Statement For Video Player?

Oct 2, 2008

I am working on a video player that will have different Languages. The problem that i am have is that i can get the video to switch but i cant get the video to switch back. I have uploaded the file and here is the code that i have have a problem with.

lang.onRelease = function() {
if  play = English)
{

[Code].....

View 1 Replies

ActionScript 3.0 :: Video Component Audio Can't Stop When I Use Back Button

May 20, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play, I'm not an expert on as3.

I have tried a lot of code in the function below ( like "stopAll();" ) but nothing seems to work.

View 1 Replies

ActionScript 3.0 :: Back Button Stopping Audio On A Video Component

May 16, 2010

I am putting together a basic video portfolio and have everything working except when I click the back button to get back to the thumbnail page (contained on frame 1) the audio from the video continues to play.[code]

View 4 Replies

ActionScript 3.0 :: Flaky Button Behavior Under CS5?

Sep 14, 2010

I'm running an app written in CS4 where most of the buttons still work. I have a popup, which goes to a certain frame with buttons on it. The following code is applied in that frame on that MovieClip popup.This

Code:
this.book0_btn.label_txt.text = "speed_: Slow";

[code]....

View 1 Replies

Javascript :: Disable 'Download This Video' Real Player Button In Browser?

Oct 29, 2010

Is there any way to disable the "Download This Video" button from RealPlayer. It seems that when users have RealPlayer installed on their machines, it automatically adds a "Download This Video" button to any SWF that loads an FLV.

Edit: My intention isn't to prevent someone from downloading the SWF or FLV, I would just like to remove the ugly button that RealPlayer adds on top of my Flash content.

View 1 Replies

ActionScript 3.0 :: Video Player - Play Button And If Drag & Drop The Scrubber Of Progress - Bar

Jun 30, 2009

I'm building a flv_video AS3 player. I'm using steaming-video.The player is working fine, but there is something that I want to improve. Currently when I push play button and if I drag&drop the scrubber of progress-bar somewhere in the area that is still not buffered, the player doesn't start to play from that position. So I want to do it.

View 2 Replies

ActionScript 3.0 :: Multiple Flv Player - Load A Different Video When A Button Is Clicked In The Exact Same Place As The Old One

Jun 26, 2009

im creating a portfolio website that primarily uses flv videos for graphics. For example, if you click to go to another section of the website a video plays that actually walks you to that area. What I want to do is be able to load a different video when a button is clicked in the exact same place as the old one. I currently have a working class that plays a video

[Code]...

I want to some how be able to change the variable flvName on the click of a button on my stage and recall the class to change the video. If you can think of an alternate way of doing what i need to do id love to hear it.

View 0 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

ActionScript 3.0 :: Fullscreen Button On The Playback Component, Which Will Allow The User To Toggle The Video Fullscreen?

Apr 13, 2009

I like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I�d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.I cant, for the life of me, figure out how to do this with various settings�it should be easy! This is what I have--is there a better way to do things (without a custom movie player)? My inital settings are as follows:

Code:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;

Then I have a function which should work--but my button won't appear in fullscreen--Can I apply this function to the built-in fullscreen button?:

Code:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )[code]....

View 9 Replies

Professional :: Toggle Button Via The Button Component?

Oct 18, 2010

I'd like to learn how to use Components in Flash, and the documentation and tutorials I find are beyond my comprehension. I usually go to FlashKit and just rehash someone's code... but again, I'd love to learn how to use Flash Components.So I did a tutorial on the toggle button, but it was:1. Click button, and a window pops up at different location on canvas2. Click button again, and the same window dissapears.This is for a videogame, and I'd like a button to be click and that same button be populated with a new graphic. What I mean is, the graphic is a skull, and I'd like to have it start as a dark skull (as if a negative value) and when you click it the skull appears... click it again and it's gone (or that negative or dark skull representing it's off).So this differs from the tutorial I did because the pop-up window is the button itself, and the window that pops up would obstruct me from click it again.

View 3 Replies

Add Video Play / Stop / Pause Button To Flash Video

Dec 7, 2009

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 Replies

ActionScript 3.0 :: Add The (list) Component To A Video Player?

Sep 5, 2008

i'm trying to add the (list) component to a video player...i have all of my info being read from a basic xml page.i want it to play three videos

<vid desc="video2 dark knight"
src="video/DK480p.mov" />

i can get the list to display the desc but i can not get it to play any video when i click the list.

View 1 Replies

Professional :: SWF Player Component - Converting Images To FLV Video

Aug 5, 2009

I am loading an external swf file into my swf file in CS4 with AS2. The reason I am doing this is that the external swf file contains a sequence of images and I tried to convert it to flv video but using many tricks and software out there (like converting to AVI and then to FLV) but there was always LOSS in quality. My question is! Is there a SWF player component much like FLV player component, because I need to give the user the ability to stop, pause, rewind etc.... the loaded external swf file?

View 2 Replies

Php :: Flex-load Different Videos In Video Player Component?

Jul 17, 2011

As some Internet tutorial suggested I've built a simple server-client application for FLV Video Player using PHP and Flex. The problem I encountered is that I can't change the source of the video in the mxml file using Notepad++. The source could be changed if I run Flex but It's not a good idea because I want to run different videos through this player.how to run different videos with this Flex Video Player component because my application works only for this given in the source of FlexPlayer.mxml-maybe I shouldn't use this mxml file for the different Video Sources?

<s:VideoPlayer id="Player" left="0" top="0" width="493" height="382" chromeColor="#2875DE"
color="#000000" skinClass="MySkin" source="Video Source/Coldplay - Clocks.flv"/>
</s:Application>

[code].....

View 1 Replies

Flash :: FLVPlayback Component And A Playpause Button ?

Jun 16, 2011

I'm using a FLvPlayBack component and I have the skin setting set to none. I've dragged a PlayPauseButton from my library to my stage in a movieclip. The button pauses and plays the video, but now what i want to do is mimic the "autohide" feature in a normal skin.how i might accomplish this?

View 2 Replies

Flash - Put A Button Component Getting Error Message?

Oct 18, 2011

I was to just put a button component and the script below for the page to go back to home when pressed:

[code]...

For some reason, it's giving the following error messages below Don't know why this is happening - it is supposed to be a simple script to work quickly error-free right?

View 1 Replies

Little Video Player (1 Playback Component, 3 Buttons Linked To 3 .flv Files) Not Working In The Published Html?

Oct 12, 2009

everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version. There is a playback component with one of the skins right above the three buttons.

Here's the ActionScript: btn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);

function vid1(e:Event):void{vidPlayer.source = "Video1.flv"};function vid2(e:Event):void{vidPlayer.source = "Video2.flv"}; function vid3(e:Event):void{vidPlayer.source = "Video3.flv"};

It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file  via Dreamweaver and in the published .html it doesn't run. What up?

View 1 Replies

Flash Player Setting - Allow Button To Access Client Web Cam

Aug 8, 2010

I am building a flash app that will asks the client to access their web camera. Users on Windows (Firefox, Safari, Chrome browsers) are able to click the allow button. However, users on Linux/Mac (Firefox, Safari, Chrome) either need to click several times until they can click allow, or they can't click at all. [URL]

View 1 Replies

Mediaelement.js The Flash Player Won't Hide The Play Button?

Feb 1, 2012

I have set the features to be empty which works fine except in the flash player. It still shows the big play button.I realise I can manually hide this but I'd rather find the proper solution

$('video').mediaelementplayer({
features: [],
success: function (me) { [code]..........

View 1 Replies

ActionScript 2.0 :: Script For Button Not Working For Flash 8 Player?

Apr 4, 2007

The buttons work in flash player 6, but i have recently added some filters to the site and changed the settings to flash player 8, now the button links do not work! The buttons are movieclips with script!

Here is the script:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame(); }};
this.onRollOver = function()
[Code] .....

View 1 Replies

ActionScript 2.0 :: Creating Exit Button For Flash Player?

Dec 10, 2004

How to create a button that will exit out of flashplayer?

View 1 Replies

ActionScript 2.0 :: Making The Simple Player Using The Player Component Preinstalled In Flash?

Jun 3, 2010

I am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:

Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)

This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:

Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};

But this is not working.

PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.

View 2 Replies

Flex :: Remove A Component Using A Button In The Component?

Sep 29, 2010

I'd like to use a button within a component to remove it. So, you click it and the component is gone. But, I haven't figured out how you reference the component from within the component. What should I put in click=""?

My component: popCanvas

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel width="200" height="200" title="hello"
click="remove=">

[Code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved