Actionscript 3.0 :: NetStream.Play.Start Fires Multiple Times

Jul 28, 2009

I'm working on a project using a MVC design pattern where flvs are played form a xml playlist. I noticed something strange in the Output window. For the first flv the NetStatusEvent NetStream.Play.Start fires once, the second one fires twice, the third one three times....

Here is the part of the code where I load the video :

Code: Select allpublic function loadVideo(url:String):void
{
_nextBtn.mouseEnabled = true;
_playHead.x = 0;

[Code].....

View 1 Replies


Similar Posts:


Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 Replies

Media Server :: Client Side Playlist With NetStream.play Using Start Offset Causing Jerky Cuts

Dec 1, 2009

I have a series of mp4 videos (H.236 @ 22 fps) streaming from an akamai FMS serve via RTMP protocol in flash player 9+ with AS 3.My goal is to create client side playlists that smoothly switch from one stream to another. I am creating these playlists using a series of netStream. play (filename,start,len) methods. If I don't use an offset for the start parameter, then the stream switches smoothly from one video to the next with not noticeable jump or jerkiness. However if I introduce a start offset, say a few seconds in, I start to see a quick little hiccup or pause between the seams as it switches from one playlist stream to the next.

View 1 Replies

ActionScript 3.0 :: Use A 'master' Sound Instance ,that Can Play Multiple Times Simultaneously?

Jul 27, 2010

Imagine this scenario:The application is a Game, where the enemy characters can 'attack' the player, and each time they attack the 'Attack.mp3 file is played from the libraryNow my question is, if I have to create a new instance of the MP3 file in the memory, each time playing it, or can i use a 'master' Sound instance ,that I can play multiple times simultaneously.(similarly I can use one 'enemy.jpg' bitmapdata, that I can then copy to the screen with copyPixels, and only having it in the memory just once )IE if i have 50 'Enemy' characters running around the game

View 1 Replies

ActionScript 3.0 :: Error: "NetStream.Play.StreamNotFound" While Playing Mp4 File Using NetStream Object?

Jan 7, 2010

I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:

var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);

[code]........

View 0 Replies

Flash :: Start Or Seek To Sub-second Intervals With NetStream?

Jan 20, 2010

I am working on a Flash Video player and am implementing the ability to start a video at x time within the span of an FLV (served from FMS). I am able to start it x seconds into a stream without any issue using

netStream.play(source, startTime);

but as far as I can tell, it only supports seconds. I am looking to be able to give a start time (or even a seek time if that is supported) in milliseconds, or really anything more precise than whole seconds.

Anyone know of any way to achieve this even by monkey patching the fl classes?

View 1 Replies

Actionscript 2.0 :: Netstream Buffer Visible From Start?

Jan 23, 2009

I have made a video player based on the code from Lee's tutorial and I have modified it with help from code found in this forum. The video is paused from start and thats fine, but the bufferClip shows all the time (like forever) until i press the play button, I just want the bufferClip to be visible for as long the video is buffering.

Code: Select allns.setBufferTime(4);
var firstPlay:Boolean = true;
ns.onStatus = function(info){

[code].....

View 1 Replies

ActionScript 2.0 :: CS3 When Netstream Start Want An Object To Be Removed From The Stage?

Aug 12, 2010

I have two FLV files playing on the stage. The main FLV is instance is: MyVideothe 2nd is MyVideo2I have imported the videos using the wizard. The 2nd video is just a movie I created in Affter Effects that says...loading please wait....this is a really nice video and I don't want it to just use a standard preloader. Anyway, the goal is when the playback for "MyVideo" begins I would like "Myvideo2" to = visible = false;I have tried this many different ways and have been unsuccessful. I am obviously a newb at this. Also, does anyone know where I can get a list of all available eventListener actions...etc?

//var nc:NetConnection = new NetConnection();
//connection_nc.connect();
//var stream_ns:NetStream = new NetStream(connection_nc);

[code].....

View 1 Replies

ActionScript 3.0 :: NetStream.seek() Not Seeking To Start Of Video On Mobile

Nov 4, 2011

I have a "video on demand" video that I'd like to seek at any point of the video. It's playing on a Motorola Xoom tablet. I can seek to the beginning of the video when the playhead is near the beginning. However, if I the playhead is towards the end of the video and I attempt to seek to the beginning of the video, the video seeks many seconds after the start of the video. I thought this might be a buffering issue, so I set inBufferSeek to true, but I still have the same issue.

View 2 Replies

ActionScript 3.0 :: Play An Mp3 File Using NetStream.play?

Mar 23, 2010

I have a "movie player" that plays flv files using the code below (videoToPlay is the name of the file to play and is just a string). I want to use the same setup to play an mp3 file also.I tried using mySound = new Sound(); and then mySound.attachNetStream(ns);, but it gives me this error: 1061: Call to a possibly undefined method attachNetStream through a reference with static type flash.media:Sound.

View 5 Replies

ActionScript 3.0 :: Different Between NetStream.play And VideoPlayer.play?

Nov 4, 2010

1) What is the recommended/best practice method for loading videos (flv, f4v, mp4, etc.) from a play list. Some of the files might be on the local file system, some might be on a streaming server and uses rtmp.
 
2) Does the VideoPlayer.play internally use NetStream/NetConnection objects? I could get the files to play using both these methods - not sure if one is better than the other. I didn't see any references about streaming in the VideoPlayer.play method - but it does work with rtmp URLs!
 
3) For a long running standalone application, how do I make sure the VideoPlayer/NetStream objects are properly released/garbage collected? Right now I am closing the netstream/netconnection after playing every file - mainly because I do not know which server/file system the next video is being loaded from.

View 6 Replies

ActionScript 2.0 :: Shinning & Replay - Count Of The Times Of Button Have Been Clicked Start

Jul 12, 2004

wat should i write for the as to recount the number of btn have been clicked? cos this is used in a replay btn. i have btn for user to click n count how many time the btn have been clicked n show out the match image, so now another btn (replay)to let the user to see again the image so what should i write in the replay btn's as to let the count of the times of btn have been clicked start. cos what i done now it can't start to count again it just plus the number i have clicked for the btn.

Let's say if the image just only have 3 so tat when i finish clicked 3 times all the image ady showed n now i click the replay btn but wat i get is wrong cos in the output box it still counting the number i have been click for the btn so it show 4,5,. it can't start count again.

View 4 Replies

ActionScript 3.0 :: Project Looping 3 Times From The Start To The End But Stopping On The Last Frame After The 3rd Time It Loops

Apr 27, 2009

I have no idea how to use AS3 and I was needing to make my project looping 3 times from the start to the end but stopping on the last frame after the 3rd time it loops. I have no idea how to do this without copying all the frames.

View 2 Replies

Flash :: Streaming - Generate A "NetStream.Play.StreamNotFound" Error While Play?

Mar 2, 2011

I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.

The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."

However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.

View 1 Replies

Loop 3 Times And Play On?

May 8, 2009

I have a movie in which three balls bounce up and down 3 times and then bounce high and trade places, then they bounce 3 times and repeat.Instead of bouncing three times I would like to shorten it with a loop.How do I tell the movie to loop from frame 156 back to frame 106 three times, and then go to frame 157 and play?

View 10 Replies

Flash Won't Auto-start Flash Intro Will Only Start After Play (ctr+entr)

Jul 21, 2009

i have a flash clip that i am trying to imbed into a joomla website of mine, and the problem is that it doesn't auto-start. If i open the swf file it will show a blank screen until i right click play or ctr+entr, on the website it simply doesnt show the flash. here is the link to the swf file [URL]

View 1 Replies

Professional :: Use The "same" Button Multiple Times For Multiple Galleries?

Feb 14, 2011

I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work.This is what I have now because I do not know where to put the other button names without getting errors.

stop();
next_btn .addEventListener(MouseEvent.CLICK, nextImage);
var imageNumber: Number=1;

[code]......

View 3 Replies

Load An Image Multiple Times?

Jun 27, 2011

I have a image of a person that I would like to load a certain number of times in a row to show a total of how many people took part in this particular event.  In total I need 166 replications of this image, is there any actionscript I can use to do this without having to create a key frame for every separate image?

View 7 Replies

Bug : Using The Same Movie Clip Multiple Times?

Jan 10, 2012

I have this animated block that I want to use multiple times in a scene. Everything looks fine until I move the background(separate layer) with a tween. The second it moves it shows only one animating block instead of 4. Also, if I click on "show this layer only" it only shows the one block.So how can I use this movie clip multiple times?

View 4 Replies

ActionScript 3.0 :: Using One Loader Multiple Times?

Sep 9, 2011

I have an array of suffixes that I'm using to load images, some of which are used multiple times:

Code:
for(i = 0; i < imageSuffixARR.length; i++){
var tempLoader:Loader = new Loader();
var loaderOBJ:Object = new Object();

[Code].....

I'm running into is that whatever loader calls the multiple used SWF last gets it. How do I fix this so that the same loader can be used multiple times?

View 2 Replies

ActionScript 2.0 :: Multiple Tweens At Different Times

Mar 11, 2007

What I want is to do this [URL] in actionscript rather than with tweens...as u can see, it takes EONS too long to load (on some PCs at least) (and I know, it DOES need a preloader (which I have), but I'm going to add that later. I want to get this going first). Now, I read a decent bit about onEnterFrame, and did some tutes, but I'm not quite sure how to use it to do what I want.

View 2 Replies

ActionScript 3.0 :: Any Way To Use PNGEncoder Multiple Times?

Jun 7, 2009

I have a large image that exceeds the bitmapdata limits, so I am trying to break it up into 4 separate images and encode them separately using the PNGEncoder. The first 1 comes out great. The remaining 3 all contain the same bytearray data and result in a blank image.

Code:
public function encodeUsersDrawing():void{
pngImageQuadrant1 = new BitmapData(1875, 2400, true);
pngImageQuadrant2 = new BitmapData(1875, 2400, true);
pngImageQuadrant3 = new BitmapData(1875, 2400, true);
pngImageQuadrant4 = new BitmapData(1875, 2400, true);
[Code] .....

View 2 Replies

ActionScript 3.0 :: SWF Loading Multiple Times?

Oct 20, 2009

when I click a button it loads an SWF, then when I click another button it loads another SWF into the same loader. However it appears to be loading multiple SWF's in conjuction with the amount of times I clicked a button. So say if I clicked a button 3 times it would load 4 of the same SWF's on the forth time and load them at the same time.

[Code]...

View 6 Replies

ActionScript 3.0 :: HitTestObject - Multiple Times?

May 10, 2010

I have the following code to pick up collision detection between two objects:

[Code]...

View 2 Replies

ActionScript 2.0 :: Running Through Xml Multiple Times?

Jun 22, 2010

Im sure there is a simple way to do this, but it's been driving me nuts for days now.I am trying to loop through all the data in my xml file, thats no problem, however I need to read the data three times for the menu I am building. Is there a simple way to do this? Basically I want to take the first set of results, then add on the second then the third. So I will end up with a list of data three times what is actually contained in the xml doc.

View 2 Replies

ActionScript 3.0 :: Multiple Instances Of Same FLV Using Netstream?

Aug 4, 2009

As you can see, after all the items in the Carousel have loaded, a function called fadeItemIn() is called which displays each of them one by one. I am looking to call a small "swoosh" particle effect flv I made in AfterEffects so that as each item tweens in, it instead looks like it is sparkling in from the left.

The problem I have is that using the code below, the swoosh.flv file tends to freeze before it finishes. In this case the swooshIn() function is called three times because there are three items being loaded into the Carousel.

I am wondering why the FLV freezes when multiple instances of it are loaded through AS3 using NetStream.

Code:

private function fadeItemIn(item:CarouselItem):void {
trace("fadeItemIn");
this.tweens.push(new Tween(item, "altitude", Regular.easeOut, item.altitude, 2.5, 0.50, true));

[Code].....

View 1 Replies

Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies

Media Server :: Slow Stream Start Times / Or Server Not Found With FMIS Upgrade

May 7, 2010

I recently upgraded from FMS 2 - FMIS 3.5.Over our internal network videos stream like a dream!However, accessing them from outside our own network means that they take about 20 seconds to load, or sometimes just get a message saying the server isn't found.This wasn't a problem with the FMS2 and there have been no changes to firewall settings or anything like that since the old server was up and running without problems.I have the new server set to use exaclty the same ports, but wonder if there are some other settings which could be causing this?Networking isn't really my area of expertise, and I have no idea where to start looking to improve things.

View 2 Replies

Animation To Play When Mouse Over The Area But Still Other Times?

May 3, 2009

I'm creating a mini site for a course I'm doing and I have a row of buttons that have an image of a character that I want to animate when the viewers mouse goes over them. I'm not good with action script and I'm stumped on what to look up when googling for an answer.

Ideally I would like the row of buttons (that the chacters sit in - and when they are clicked they go to that characters main page) to animate - ie blink or move slightly but when the viewer hovers their mouse over them they then go into a new animated sequence - so I guess that would require two movieclips - so that would mean that the first animation of a blink would run all the time (I can do that bit! ) but how to get it to switch to another movieclip for the duration of the mouse hover - and to only play when the mouse is in that area (I've done scrolling image bars before and I hated the way it scrolled even when the mouse was no where near the images!)

this is a very rough bare bones of the flash page I'm doing - I've attached it to my main website just so others can see what I'm talking about. [URL] all the squares at the bottom will have a characters in them and I want them to do very subtle things like blink or the occasional wave but when someone goes to click on them they wave or jump around - this would stop if the viewer then moves the mouse away and it goes back to the initial movieclip.

View 1 Replies

ActionScript 2.0 :: Play Timeline 3 Times For Banner Ad

Aug 18, 2005

I am trying to play a banner ad 3 times and then stop for a banner ad. Does anyone know how to do this using actionscript. I have tried and failed.

View 2 Replies







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