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


Similar Posts:


ActionScript 3.0 :: Stop Directly When Player Touches Wall?

May 26, 2011

I got another problem that I just can't figure out how to solve.

PHP Code:[code]......

When I click Player, player goes to the right in speed 20. When he hits the wall he stops. BUT, he doesnt stop until the registation point hits the wall. Registation point is in the center. But I want him to stop directly when Player touches Wall.And Im gonna have wall around the "map". So i need him to stop if he touchs LeftWall, RightWall and what ever.

View 5 Replies

ActionScript 3.0 :: Passing Flashvars To Embedded Video On Facebook Wall?

May 24, 2010

know my question isn't linked directly to AS3, but still.

<meta name="title" content="Stranger: V.V. Brown, Singer-Songwriter" />
<meta name="description" content="We caught up with singer-songwriter V.V. Brown just before she released her new album, Travelling Like the Light. The uber-stylish singer with

[code].....

View 1 Replies

Javascript :: Track Events Of Video Embedded Into A Facebook Wall?

Feb 20, 2012

My mission is to embed a video (custom player) into a facebook wall and track the users events (play count etc.), also gather other relevant data. I was wondering is this at all possible, if so, can you comment on that briefly?

View 1 Replies

Syncing Multiple Flash Swf's Fullscreened For A 5760px X 1080px Video Wall

Sep 27, 2010

I've got a bit of a niche problem, in that I was tasked with making an animation for a 5760px X 1080px video wall. I tossed with the idea of doing a video in after effects instead but then decided the resulting file would be too large and encumbersome so I decided to pursue my other idea which was through flash. Now as you all probably know, maximum dimension for flash is half of what i need, 2880. So i made a half size mock up, got it approved and basically translated that into x3 1920x1080 fla's each containing a 3rd of the total animation, all synced for each other.

Now I need to figure out the best means of playing them together synced fullscreened on the video wall, which has just gone up. We are going to have a content management system that most likely will be able to sync the files but I'd really like the swf's to be able to sync without any help just incase sorta thing.

View 1 Replies

ActionScript 3.0 :: Video Won't Stop Using Same Command That Made Video Stop

May 7, 2011

I have a website that plays video1 when it opens. When you navigate to next page the video stops. One of the buttons on the second page plays video2. The problem is that video 2 won't stop using the same command that made video1 stop.

View 2 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 :: 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 :: 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

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

ActionScript 2.0 :: Freeze - Can't Pause - Stop Or Switch Videos - Memory Leak?

Nov 12, 2010

I created a video Player and can't post the link b.c apparently you need 50 posts to, but here is a fragmented version if you can piece it together uwathletics DOT com SLASH video_guide-new Sometimes when switching between videos, the buttons stop working and you can't pause, stop or switch videos but the video keeps playing. I'm noticing it only in Google Chrome for some reason. If you mess around with it I'm sure you'll be able to replicate this error.

Now when it happens, try and refresh the page. The flash does not load... I'm just using an FLVPlayback component, and this is my actionscript when switching between videos

ActionScript Code:
_root.video_mc.stop();
_root.video_mc.play("flv/video_path.flv");

Do I have to unload the previous video before I play a new one or something? There must be some sort of memory leak

View 0 Replies

ActionScript 3.0 :: Use Stage Video For Two Videos?

Nov 4, 2011

I have 2 videos playing, one on top of the other. The top video is masked. The user drags the mask around to reveal different areas of the video.I want to use Stage Video for both videos but not sure how that would be possible with the layered setup needed.

View 1 Replies

ActionScript 3.0 :: Insert A Video And Play Videos From Youtube?

Jun 15, 2010

I'm working on a website template that includes a video component. I'm assuming I need to use the video object and it only plays actual video files. What if I want to play videos from Youtube? Would I have to download the video and put the video file somewhere where Flash can access it? Like on my computer or uploaded on a server?

View 2 Replies

Embedded Flash Videos - Audio And Video Sync?

Feb 28, 2008

Im having serious issues making a video sync with audio inside an embedded flash video file.

View 2 Replies

Media Server :: Create One Video Out Of Many Videos On A Playlist?

Aug 31, 2011

As stated above, I wanted to know if I can take a video playlist, say with 4 clips, and have FMIS create a separate file out of the 4 individual clips. Specifically, a user selects 4 (or any number) of clips to create their playlist, then at the end, a 'full length' file is created. If this isn't clear, let me know and I'll try to elaborate.

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

ActionScript 3.0 :: Videos Play Locally, But Not On Web - Video Error 1000?

Nov 9, 2009

I have a video interface set up and get the following error....when I play locally,everything plays fine and I don't get any errors, but once I upload to the web, I get the following error:

VideoError: 1000: Unable to make connection to server or to find FLV on server at fl.video::VideoPlayer/stop() at fl.video::FLVPlayback/stop() at movie1_testing_bk_fla::MainTimeline/listListener() at

[code]....

View 9 Replies

ActionScript 3.0 :: Make A Flash Video Gallery That Can Add New Videos Dynamically?

Aug 17, 2011

how to make a Flash Video Gallery that I can add new videos dynamically? just like how XML photo gallery works?

View 1 Replies

ActionScript 3.0 :: Drop Videos/ Write Text In Folder For Video?

Jan 9, 2012

it is possible using Action Script 3.0 to allow a user to drop in videos / manipulate a text file to add or change videos/ text that feed to a media player, without doing it directly through the flash studio actions page. Ideally I would like to have a folder with the swf/fla file, all the video files, and perhaps a text file that alowed the user to manipulate the text of the video i.e. title/description Would it be easier to instead give that user a youtube like solution where they simply had the ability to upload/describe videos, through the webserver, rather than do it through a pc?

View 1 Replies

Actionscript 2.0 :: Load New Menu With Videos On Click On Video Picture?

May 8, 2009

load new menu with videos on click on video picture?

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

Flash Dual Video Player - Load And Play Two Videos At The Same Time?

Sep 17, 2011

Has anyone seen a Flash video player out there that will load and play two videos at the same time, such as for comparing videos? A potential client is looking for something along the lines of this. I've not been able to locate anything out there,and I'm wondering if there's a usability reason for this...Obviously, you wouldn't want the audio playing for both at the same time, and the bandwidth issue for something like this might be a concern too. My feeling is that you wouldn't want to restrict a user to just playing both videos at once, but give them the option to play them separately or at the same time, with controls for each audio and playback.

View 1 Replies

ActionScript 3.0 :: Make Video Stop Video When Leaving A Frame?

May 11, 2010

I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
 
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is: 
 
import fl.video.VideoEvent;
function onClick(evt:MouseEvent):void {    if( showreel.playing ){        showreel.stop();}    gotoAndStop(evt.currentTarget.name);}
motion.addEventListener(MouseEvent.CLICK, onClick);web.addEventListener(MouseEvent.CLICK, onClick);logo.addEventListener(MouseEvent.CLICK, onClick);photo.addEventListener(MouseEvent.CLICK, onClick);

View 5 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 :: Papervison - Video Material - Pause - Videos To Be Stopped At The Beginning When It Appears

Feb 16, 2009

I have a cube built in papervision. It has a video on each side. I want the videos to be stopped at the beginning when it appears. I thought I could just use pause on the stream. ncStream2.pause(); no luck. When I do that I just get a black box. There is no black at the beginning of the videos. I do not think the papervision part is really a big deal. It's probably just a straight forward AS3 and video problem.

[Code]....

View 3 Replies

Media Server :: Use A Separate Video Hosting Company To Handle My Mobile Videos?

Dec 14, 2010

- Is there a benefit to hosting FLV files on a Flash Media Server when they are under 2-3 minutes?I've been working on a couple different video projects as of late... some are simple web player with 30 second ads and others are working with longer videos like 2-3 minutes. I currently have an FLV hosting provider running Flash Media Server but with videos so small don't they download for the user as progressive anyway and there is no real benefit whether I am using my FLV host or my traditional web host?

i also use a separate video hosting company to handle my mobile videos mainly because I am a bit naive on how that works as well. I had a project with straight links to play video on mobile phones (with three different version served up based on OS). But it seems like most of those were progressive downloads as well.

View 1 Replies

Javascript :: Possible To Create A Flash Video Player That Plays Videos Hosted On Youtube?

Apr 5, 2011

I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.The youtube api allows for minor colour adjustments but not full customisation. I know it would be possible if I download the FLVs but i want the video to remain hosted on youtube.

View 3 Replies

ActionScript 3.0 :: Number Of Video / NetStream And NetConnection Instances Multiple Videos Would Require?

Dec 27, 2010

How many instances of Video, NetStream and NetConnection would be needed for multiple videos?Not sure that's the right question but essentially here's the objective:Currently, I'm working on an interactive product tour, parts of which are to consist of short video clips, each covering a feature. While only one such clip will be playing at any given time, I'd like put them all at the application's fingertips as part of the initial preloading process before launching into it. The idea is to provide a seamless instant-play user experience without hitting the breaks before individual segments.Honestly, I hate pre-caching crap into user's memory, especially when some of that content may be potentially ignored. However, given the target audience, it is reasonable to predict that all features will be explored most of the time, so it's a fair compromise to me. Besides, I went to great lengths to keep the mp4s' sizes to the minimum.Anyway, I'm guessing you don't really need more than one instance of the Video class but how many NetStreams and NetConnections do I you need, probably one of each per video, ha?

View 0 Replies







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