ActionScript 3.0 :: Multiple Videos On Player - Stop One And Start Other

Dec 19, 2009

I got roped into assembling a cd of videos to send out to jazz students for my video class and I'm a bit over my head code-wise, so I'm turning to the pros. The project has about 5 different videos that are all suppose to play (locally from the disk) when the corresponding button is clicked, and they need to be scaled and positioned on the video section of the background img. I can make the buttons work, scale and position is no issue, but can't get one video to stop and the other to start.

I thought I would simply just removeChild the current video and start up the next one. When I took the project I thought it would be simple, but I had never really worked much with video so when I dug into it I found myself a bit overwhelmed. How to work with local media (I found tons of stuff on streaming it from the web) all I need is to make one video stop and another play when a button is clicked.

View 1 Replies


Similar Posts:


Actionscript 3.0 :: Multiple Videos / One Player AS3

Jan 23, 2012

I was following a tutorial, but it was a little bit limited in options.So what I wanted is to have a few buttons and when we clicked on them they would play a different video. I found the cove above, but I wanted it to have at least one or two extra things.For example I didn't wanted the video to start immediately without any click on the button.And I would like to have a close button that would remove the video player from stage (I tried some things, but the best I got was only removing the video player but I could still ear the video playing).[code]

View 1 Replies

Open Source Flash PLayer That Will Play Multiple Videos?

Jan 6, 2011

I'm completely new to Flash and actionscript, so please bare with me. But I'm in a bind, so I thought I'd give this a shot.I'm needing to play a commercial before playing an actual video on my company's website. Once the commercials ends, I'd like for the video to start automatically. Is there an open souce (free) flash player that will let me do this?I've watched a tutorial on how to do so, but when I try to make it work with a player, it never works.

View 1 Replies

ActionScript 2.0 :: Timer That Start And Stop When Player Won

Oct 26, 2004

I want to start a timer when the game begins that counts up, but doesnt actually display the time during gameplay, but stops when a player has won and the screen goes to the player wins screen. From there I want that time to display in a text variable along with all the other statistics I have generated. The timer will also need a reset function when starting up the game again.

View 2 Replies

ActionScript 3.0 :: Start / Stop Drag On SWF Containing Multiple MCs

Apr 10, 2011

I have a movieclip named: F1. Inside F1 there are multiple movieclips (e.g. face_mc, lefteye_mc, righteye_mc, beard_mc, eyebrows, hair_mc etc). Now when I run the swf, the drag works fine when the mouse is on the face but if the mouse is on the eye/beard/mouth it only starts dragging that specific part only. For example, if the mouse is on the left eye and I start to drag only the left eye drags under the mouse.

Inside F1:
I tried grouping it but it didn't worked.
I also tried modify>combine objects>union....it removes everything but the face.

View 3 Replies

Multiple Flash Players - First Pause And Stop Then Start

May 1, 2010

I have a flash player that plays an MP3 from my website. On one of my pages i have around 20 of these flash players embeded on the website. i've seen on other websites so when the user presses the play on flash player #1 and then while that's playing, they press play on flash player #2, it would first pause and stop flash player #1 and then start flash player #2 and so on.

View 4 Replies

ActionScript 1/2 :: Using Start Button To Start And Stop The Scene Or Movie?

Nov 19, 2011

Here is the action scrip that I created. Correct it if you can.

Process.visible = false;
Cycles.visible = false;
stop();

[Code]....

View 3 Replies

ActionScript 2.0 :: Start Two Videos At The Same Time?

Oct 19, 2009

currently iv got 2 of the same movie clip. both containing an flvplayback component.One of them has a heavy blur effect, one of them doesnt.The blurred one is the 'reflection' of the other one, but the problem is they don't load at exactly the same time alot of the time. Is there any simple code that will make one wait for the other to load?

View 2 Replies

IDE :: Start 2 Videos When Clicking Button?

Apr 15, 2011

I would like to to have 2 vidoes next to each other on a webpage which start simultaneously so that the viewer can compare the two.

what HTML code to use in order to achieve this.

View 1 Replies

Flash :: Multiple Loadmovie() Ends Up With Multiple Videos Played At The Same Time?

May 24, 2010

i use loadmovie() to load youtube videos inside my flash website but when i load another video the old one doesn't stop, so i tried unloadmovie to destroy it but it seems that i did a mistake in my code

This is how the code looks to stop the old one an load the new:

vloader.unloadMovie();
vloader.loadMovie("http://www.youtube.com/v/Alw5hs0chj0&hl=fr&fs=1hJ-mPcGtC");

How to do that? use other objects or classes, i only want to edit that code.

Note: I have an empty MOVIE CLIP called "vloader" where i load the video player.

View 2 Replies

Flash :: Which Apps Are Available To Create Start Up Explain Videos

Jan 25, 2012

I was wondering if there is any easy tool to use in order to create a start up video? I know there is the Adobe After Effect option, which is extremely expansive.

any tool that allows you to create an animation, easily? for a startup site, a video that explains what the startup do?

View 1 Replies

ActionScript 3.0 :: Multiple Videos To Play With Multiple Buttons?

Feb 4, 2010

I am creating a stand alone DVD to be used with Flash player. I am wanting to add different videos that play with different buttons. The following is the code I have for the video to play when the corresponding button is clicked..... My problem is how do I get that video to "leave" and stop playing when another button is pushed to play a different video.
 
Educators_btn.addEventListener(MouseEvent.CLICK,clickEducators);
function clickEducators(evtObj:MouseEvent)
{
gotoAndStop("OE")

[code]....

View 2 Replies

Playing Videos In Flash Player?

Jun 15, 2010

i am working on a project. my project needs videos tv( Playing videos flash player).my reference site is I need that type of flash player.

View 2 Replies

ActionScript 3.0 :: Stop Moving MC - Fish To Stop Swimming After Clicked It And Start Swimming After Another Click

Jan 1, 2012

what wrong with the functin 'stopFish' Without this function the fish in the tank swims but when I add it, it doesnt anymore. I just want the fish to stop swimming after I clicked it and start swimming after another click.

View 1 Replies

Professional :: Videos Stop Playing After 4 Minutes?

Jun 22, 2011

Is there a setting for the length of time a video plays. Video streams are stopping after playing for about 4 minutes.

View 3 Replies

ActionScript 3.0 :: Stop All Embedded Flash Videos

Jul 19, 2010

I want to be able to stop all embedded flash videos on a page. For example, I have 3 flash movies on a page. If one is playing, I want it to stop if another is started.

I have just got back to programming flash after not doing any in a few years.

View 1 Replies

ActionScript 3.0 :: Stop Other Videos In A Video Wall?

Dec 9, 2010

So how to stop others videos in a Video Wall when clicking another video?

I'm having a video wall, which was created with a for loop so that every i a new VideoPlayer instance was created. The source was inputed through XML.

Code:
for (var i:int = 0; i < 3; i++)
{
video = new VideoPlayer(source);
this.addChild(video);
}

When I click the play button the clicked Video is playing great. And when I click another video on the wall it also starts playing. BUT HOW can I stop the other video(s) when another is clicked?

I know I need to kinda get access to the Netstream of all other videos and close them

Code:
netstream.close();

I tried is with a Custom Event inside the VideoPlayer class:

Code:
this.addEventListener(PlayerStopEvent.STOP, stopVideos);
function stopVideos(event:PlayerStopEvent)
{

[Code]....

From the output panel I can see the stopVideoPlayer function is being launched, but I'm guessing it's being launched only in the clicked video not in All videos, even though the code is in the VideoPlayer class.

When I tried using a timer event, to close the netstream after 5 seconds it worked for all videos.

How can I make this work? Or make an event similar to the timer event? Access the netstream for all videos?

View 5 Replies

ActionScript 3.0 :: How To Stop / Unload Youtube Videos

Aug 12, 2011

I have a swf file in which the you tube videos is coming. in this file everything works fine. The problem is when I click on any other navigation the other swf is loading but in background the video is yet playing. I tried a lot but it didn't work. I know on method that is:--

player.destroy()
player.pauseVideo();
player.stopVideo()
loader.unload()

But this is not working. my main navigation is in main file. and I am calling other swf separately. The video's swf too.

View 2 Replies

ActionScript 3.0 :: Stop Videos From Playing In External Swf?

Oct 14, 2011

I'm a newbie to as3 and flash and i have created a as3 slideshow that imports external swfs into movie clips to be viewed on the slideshow but one of my external swf is a videoplaye So my problem is that I want to video to stop playing when you click to the next slide here is my code for the mainswf and the slide swf[code]...

View 0 Replies

ActionScript 3.0 :: Play Youtube Videos From My Player Using It?

Oct 11, 2009

I have created my FLV player. It plays FLV files by giving it the path of the FLV flile.

I'd like to play youtube videos within it by giving it the the URL of the video.

View 1 Replies

ActionScript 3.0 :: Cannot Add Larger Videos To Simple Player

Feb 2, 2010

I tried to add an video to my simple player created using as3. It can only adds videos which have file sizes less than 10 MB. Is there any way to add larger flv files.? Any way to dynamically load files while half of it is playing.

var nc:NetConnection = new NetConnection();
nc.connect( null);
var ns:NetStream = new NetStream(nc);
ns.client = this;
ns.play("Song1.flv");

View 0 Replies

Play Youtube Videos Within Own Flash Player

Apr 4, 2009

I just wanted to know how to play youtube videos within my own flash player (the .flv/low quality ones) i made a long time ago.I think they're not allowing this now or they've changed something ?

View 2 Replies

Flash :: Professional - Serving Tutorial Videos Player

Feb 6, 2012

so encore has the 'export to flash" feature. it seems like it might be a good way to go for me becasue it prodcces a flash player with all my chapter markers in place. i have a couple questions though

1. it is limited to 1280X720 - i would have to do custom flash development to overcome that?

2. how is the resulting videos that are called by the flashdvd.swf served? i mean if i have 1-2GB of video clips are they served one at a time when called by the player?

3. is there any way to get the flashdvd.swf to fallback on iOS and maintain all the funtionality ?

View 9 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

Css :: HTML Object Putting Videos Into Webpage / Cant Stop Autostrart

Mar 16, 2011

having some real trouble putting two SWF videos into a website for my uni assignment. I can't stop the videos from autostarting, I have set the autostart parameter to false but still no luck.[code]

View 1 Replies

Media Server :: Videos Start Immediately In Domain, 20+ Sec Delay Outside Domain

Apr 23, 2009

We are running FMS3 on Windows 2003 Server. Videos stream and play fine when inside our domain, but outside the domain the videos take anywhere from 20 or more seconds before playing.
 
After analizing the connections it was determined that the player is randomly trying to access ports until it gets to the one that works, but this is ONLY happening from people trying to view videos from outside our domain.

View 14 Replies

ActionScript 3.0 :: Multiple Videos In Movie?

Apr 9, 2009

I'm fairly new to CS3, and I'm pretty sure I can figure this out. I don't know the vocab. but I'm thinking I do something like this (forgive my newbie lingo):load my first video on a layer. On a separate layer put all my buttons... on a different layer put some code telling what to do when each button is pushed... I was thinking of putting all the videos on the timeline in different spots, then just having each button jump to it's video's "spot" .... but thinking about that... that's probably a stupid way to do it... because they'll probalby be playing on top of each other.

View 7 Replies

Load Multiple SWFs Containing FLV Videos?

Sep 29, 2009

I'm having a heck of a time trying to get a number of external SWFs loaded into one main SWF in successive order, the next one playing after the other has ended. To complicate matters, the external SWFs have FLV files in them.
 
using Flash CS3
Actionscript 3.0
 
So, here's essentially what I'm looking to do: - I have one main SWF file (call it main.swf)- load several SWF files into this file so they play in order (let's call them movie1.swf, movie2.swf, movie3.swf, and so on) - these external SWF files all have FLV progressive downloads (not embedded, becuase then my audio doesn't sync up) - I want movie1.swf to load and play in the main file, then detect when the movie is complete, and unload that audio/video then load in movie2.swf, and so on.
 
This script seemed promising, but loads all of my SWFs on top of each other, making for some ::interesting:: audio... (i have it pasted in actions on first frame in main.swf)
 
var a:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf");var tl:MovieClip=this
var index:uint=0;
loadF(new Event("nada"));

[Code]....
 
Maybe there's some code that can be pasted in the individual SWFs?

View 2 Replies

Professional :: Multiple Videos In Flash?

Aug 31, 2011

I'm very new to Flash. I'm going to have a motion graphics piece where a vid will play for a short time, filling the screen, then shrink to a small square thats in a grid of 6-9 small squares. Once it shrinks down, it stops at its current frame. So there will be 6-9 small squares of the last frame of 6-9 videos. Can this be accomplished in flash? These are not interactive videos; they will automatically play when the first appear

View 1 Replies

C++ :: Play Hd Videos In Multiple Monitors?

Nov 5, 2011

I'm looking for a solution to play HD videos on a multimonitor OSX environment for a projector/desktop application. It could be one huge video, or a video split in parts.So far I've been using Flash StageVideo successfully to play 1080p and 720p on single monitors. This works great with flash projectors. The problem with flash projectors is you can't span multiple monitors, or multiple windows. I still haven't tried opening multiple projectors, because I wouldn't know how to position each projector in a different monitor consistently.

In Adobe AIR you can have multiple windows and control their position, but AFAIK you can't use StageVideo to decode videos with the GPU... and using the classic Video class is really out of the question.

With C++ there are multiple frameworks (cinder/openFrameworks) but AFAIK opening multiple windows, or spaning multiple monitors is not such a good idea because of bad performance. I stil haven't figured out if it's possible or even a good idea to open one app per monitor and control it's position.

View 1 Replies







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