ActionScript 3.0 :: Playing External FLV On Clicking Video Component?

Oct 20, 2008

I have a button on stage names voices. When it is click the video component should play voices.flv.

Here is my code.
import fl.video.FLVPlayback;
import flash.events.MouseEvent;
voices.buttonMode = true;
voices.addEventListener(MouseEvent.CLICK, video);
function video(event:MouseEvent):void {
flvplayback.source = this.event.target + ".flv";
}

I get this when I click on the button:
Error #1010: A term is undefined and has no properties.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Playing An Audio Clip From Local Library, When Clicking On An External SWF Button

Mar 7, 2007

I currently have random external swfs of "Buttons" loading and unloading into mc_containers into my main movie. These load and unload every couple of seconds.

What I would like to do is have sounds associated with these.. So if you was to click on one of the buttons, it would play a sound.

I have tried this by placing the sound in the button "down" section. However, it starts to play the audio and then as soon as the SWF unloads to load the next, the audio stops.

My question is: Is there a way that when you click on the external SWF loaded button - that it would then link to an audio file in the "main" timeline/library ? This way the audio would continue playing even though the SWF has unloaded.

View 1 Replies

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

Professional :: Video Component Disappears But The Audio Keeps Playing?

Jan 12, 2010

when a video is playing..and i click a button to play to a different label in the main time line..the video component disappears but the audio keeps playing.. all so the volume component, the slider indicator stays stuck to the stage.. what AS3 is needed..to stop the audio and fix the indicator..

View 5 Replies

Get A Video Placed On Stage In An FLV Component To Loop To The Beginning Once It's Finished Playing

Jun 29, 2009

I'm trying to get a video I've placed on stage in an FLV component to Loop to the beginning once it's finished playing. However, once it plays through it stops and doesn't loop round, although the trace statement I'm calling in the loopVideo function is appearing in the output window? Here's my code...

[Code]...

View 3 Replies

ActionScript 3.0 :: Embedded Video And External Video With Playback Component

Nov 9, 2010

I have trouble in choosing between external video with playback component and embedded video . I have tried adding video to dynamic page and everything is perfect .This video I have imported using the option File ->import video -> external video with playback component. If I try to execute flv on another system , the video is not playing eventhough it is in library.

So, I have imported video using the option of embedded video and this worked fine on another systems as it embeds video. The video plays for only 2 min 54 sec. I have compressed the bit rate to how much ever I can in premier pro. It resulted in reducing the size of the file but still I see the video occupying more than 3500 frames in the timeline. I feel this is not optimal.

View 1 Replies

IDE :: Video Streaming - Loaded An External Video With Playback Component?

Feb 18, 2010

I have loaded an external video with playback component in Flash CS4.

Now the question is do I need to add streaming script or not?

View 2 Replies

Actionscript 2.0 :: Playing An External Video File?

Apr 3, 2009

I would like to assign AS to a button, so when mouse clicks on that button,external Quick Time video file would open in a new window. Is it gotoAndPlay? Or getURL?What would be the correct AS?

View 5 Replies

ActionScript 3.0 :: Playing A External Video With A Text Button

Mar 29, 2010

I am trying to start an external video with playback component (instance name- movie_flv) upon clicking on a text button I created (instance name- play_btn). Here is my code that I have so far

play_btn.addEventListener (MouseEvent.CLICK,playClick);
function playClick(event:MouseEvent)
{
trace ("button was clicked");
}

The trace function works but when I try to insert "movie_flv.play();" underneath the trace function, I get this error message: 1120: Access of undefined property movie_flv.

View 1 Replies

Actionscript 2.0 :: Pause External FLV Video From Playing At First Load?

Jun 26, 2010

How do I pause not play the external FLV video until I hit the "Play" button? I don't want my video to play immediately Couldn't figure out which code to edit or add in my AS.Below are my codes

Code: Select allvar nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[code].....

View 2 Replies

ActionScript 2.0 :: Detect Which External Flv Is Playing In A Video Array?

Apr 8, 2011

I'm using a video array to load external flvs randomly for a movie quiz game I am building. Is there a way to code my actionscript so that I can identify which flv is playing randomly so that I can choose and use a specific animation that is to go with that video?This is my code:


// video array set up
var videoArray:Array = new Array({vid:"question1.flv", ans:"school of rocketeers"},
{vid:"question2.flv", ans:"supermanhattan"},[code]......

View 1 Replies

ActionScript 3.0 :: Call To Main Timeline, After External Video Or Audio Is Done Playing?

Aug 3, 2011

I am curious if there is a way to call back to the main timeline using AS3 after a video clip or audio clip that is being loaded externally, is done playing? For instance: you get to a page with a video on it, but when the video is done playing, instead of just sitting there, it automatically takes you to a new page (framelabel).

View 9 Replies

ActionScript 2.0 :: Use Video Component Control To Set Volume For External Audio Clips

Mar 10, 2009

hope i'm explaining this the right way. i'm using the flash flvplayback component to play a video. i've stripped the audio from the flv and am playing it, along with another audio clip, on the timeline at the same time. volume has been set for both clips, but i need to allow people to adjust the volume from the volumeBar that exists inside the video player. it's built in as2.

View 1 Replies

ActionScript 3.0 :: Detect Cuepoints Playing From FLV Movie That Is Playing From FLV Playback Component?

Oct 9, 2009

I was wondering, what was the best way to for actionscript 3.0 to detect cuepoints playing from a FLV movie that is playing from an FLV playback component?

View 1 Replies

ActionScript 3.0 :: Stopping An FLV From Playing After Clicking To Another Scene?

Aug 8, 2009

I am a High school teacher working on a students work in CS4 flash Actionscript 3 and we are trying to stop the flv from playing when you click on the navigate to scene button. I can get the flv to stop but it is displaying in the background of the next scene.here is the code that i am using

import fl.video.*;
var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "1LEO_1 00-31-54.flv";

[code]......

View 3 Replies

ActionScript 1/2 :: SwapDepth In A Playing Movieclip (no Buttons/clicking)?

Dec 5, 2009

What happens is I've used the the bus and car mcs to drive on both sides of the road in the animation (they will go across the screen then flip over and drive back within their respective mc).When they first cross over they are layered right but because of the timing of each animation, there is a point where both are going the same way on the same side of the road. At this point the bus pulls up higher (to the side of the road to pick people up) and the car passes it. The problem is when the car passes it is registered as being behind the bus (which would be hitting people).So i'm trying to get the car to swapDepths and come to the front Only when driving on one side of the road, so only at a certain frame reference essentially - not the entire mc.

View 3 Replies

ActionScript 3.0 :: When Clicking To Go To Another Section / Stop Music From Playing

Nov 19, 2010

This is the code I'm using with mp3 sound. I looking for some code when I click off, the music stops playing.[code]

View 3 Replies

ActionScript 1/2 :: Stop Playing Embedded Swf When Clicking On A Link In The Parent Swf?

Apr 11, 2009

I have a flash website www.sitzmarkgolf.com. I have a couple of embedded swf's in my main flash page. When you click on a menu item to switch to another page the embedded swf's reload the home page again until they stop playing. Is there a way via as to stop these swf's from playing when you click on a link? sorry I am new to flash and as.

View 4 Replies

Flex :: Pop Up Panel By Clicking On GWT(or GXT) Component?

Oct 6, 2010

I have a web-application whose UI is implemented in GXT (ext GWT).Now I want to switch to Flex but as the application is so large that I cannot afford to start migrating the whole application at once.So I have decided to migrate slowly. So what I want is to bring up a Flex panel on the click of a GXT's button.Basically the idea is how to make Flex components listen to the events generated by GXT's component.

View 1 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

ActionScript 2.0 :: AS 2 Deactivate OnMouseDown When Clicking On Scrollpane Component

May 25, 2011

I have a CS3 scrollpane component with a movieclip loaded into it that the user can scroll up and down and side to side. In the movieclip I have a PNG and a drawing function that essentially lets the user drag and draw a yellow highlight box on the PNG. So onMouseDown the drawing function starts, onMouseMove the box size is set based on where the user puts the cursor and onMouseUp the box is actually drawn.

My problem is that if the user clicks on the scroll pane dragger bars (for lack of a better term) it draws a box where they clicked and dragged the scroll bar. how I could disable the onMouseDown if the user is interacting with the scrollpane?

I have tried setting X&Y conditions, but if they only work if the user is at the bottom right corner of the image. I also tried making an invisible button that would change a variable on rollOver and rollOut but that messed up my scrollpane somehow.

here is my drawing code if that helps at all:

PHP Code:

//
var myClipNames:Array = ["mc0", "mc1", "mc2", "mc3", "mc4", "mc5", "mc6", "mc10", "mc11", "mc12", "mc13", "mc14", "mc15"];
var i = 0;

[Code].....

View 1 Replies

ActionScript 2.0 :: Preloaded Video Already Starts Playing While Preloading (at About 30%), But Without Showing The Video?

May 2, 2005

I've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:

Code:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");[code].....

View 6 Replies

ActionScript 3.0 :: Multi Video Player - Audio From The Last Video Remains Playing Even When Prompted To Stop??

Jun 2, 2010

I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.

View 3 Replies

Actionscript 2.0 :: How To Detect When Video Finished Playing To Play Next Video

May 31, 2010

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();

[code]....

View 1 Replies

Actionscript 2.0 :: Detect When Video Finished Playing, To Play Next Video?

Aug 17, 2009

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();

[Code]....

View 1 Replies

ActionScript 2.0 :: Stopping Video When Clicking Away From Page?

Dec 23, 2009

Ok so i have a video on my page which plays automatically when the user goes on the pageWhat i want to happen is when the user clicks a button away from the page, the video and the sound all stop so it can't be heard in the background.Other pages have videos on, therefore can't use stopallsounds.

View 2 Replies

ActionScript 3.0 :: Video Does Not Play When Clicking On Thumbnail?

Sep 26, 2010

I'm trying to do a simple video gallery but it's not working. When I preview the .swf and click on a thumbnail, the video doesn't play I just get this loading bar. No code errors come up and my flash file (.fla), .swf, and videos (.flv) are all in the same folder.

Here's my code:
stop();
btn1.addEventListener(MouseEvent.CLICK,vid1);
btn2.addEventListener(MouseEvent.CLICK,vid2);
btn3.addEventListener(MouseEvent.CLICK,vid3);
btn4.addEventListener(MouseEvent.CLICK,vid4);
[Code] .....

View 7 Replies

IDE :: FLV Video Scrubber - Clicking And Dragging Left Or Right

Jun 8, 2007

I am playing flv files on a site. The way I am bring them is via the import video from the library (not using flv component). I am loading the videos via using netStream. So far so good. Everything works fine. I want to be able to scrub through the video by clicking and dragging left or right on the video itself. I plan to make the mouse cursor turn into a symbol that has a left and right arrow when you roll over the video hence letting you know that you can click and drag left or right to forward or rewind through the video. IS this possible? If so, how can I accomplish this?

View 5 Replies

ActionScript 3.0 :: Video Buttons Not Work Unless Video Playing

Jan 20, 2010

I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.

Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....

View 15 Replies

ActionScript 2.0 :: Put Together A Class For Playing Video Using The Video Object?

Aug 23, 2008

I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.

Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;

[code].....

I am getting the following error with this script.

Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.

View 3 Replies







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