Actionscript 3 :: Streamed PNG Using URLStream Intermittent When Server Is Bogged?

Dec 14, 2011

In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position.So after research the URLStream class seems to cure this problem and I found a good streaming class hereThis class works very nice except when there is heavy load on the server causing lag.When this lag happens the class will dispatch the complete event yet the image will not show.Watching the download with HTTPFox shows the image in fact does get loaded.

I assume there is some kind of delayed issue with the URLStream class and the author of this class tried to correct it using the setTimeout method. I also tried delaying the dispatching of the complete event using a timer and not dispatching until if( this.width != 0 ) was detected and this seemed to work much better.But it is still haunting me just not as often.

View 1 Replies


Similar Posts:


Media Server :: FMS Streamed From Public IP Address?

Mar 24, 2010

I have Flash Media Server, and I think it's free edition coz i dont input serial number when i installed it..I have problem to have people stream from my pc, there's a public IP address assigned/mapped to a development PC here..I'm able to stream it locally from my computer, fyi, my computer is using windows XP and the development PC is using windows 2003 server..and there's an apache webserver already installed there..

1. if i dont install the apache server bundled with the FMS, is it okay? I dont intend to stream through port 80...

2. what is the difference between port 1935 and 19350? I saw 2 files in the FMS directory, namely fms.ini and Adaptor.xml in fms.ini it binds to 1935, but in adaptor.xml it binds to 19350...

3. in adaptor.xml there one value like this:

<HostPort name="edge1" ctl_channel="localhost:19350">${ADAPTOR.HOSTPORT}</HostPort>

there's an explanation in above it that it binds to some ip we configure here, but if you wanna bind to any ip then omit the localhost and leave it like ":19350" my question is that is this necessary to do so in order for people outside our network to connect the development PC ?

4. about security at the proxy server or ISP, I've confirmed with my boss that he's opened the port 1935 to be allowed, and he's also confirmed with the ISP that they dont block port 1935..

View 2 Replies

Media Server :: Video Is Streamed But Is Not Working Together With Player Skin

Feb 23, 2010

[code]This is my code that i have inserted into the first frame(?) of the fla file.When I use the swf in a html web page, i can hear the video but I can't see it and play skin cannot control the video.This is also a part of a security token code which i'm implementing on the client-side.

View 14 Replies

Media Server :: Way To Check Stats On Bit Rate Versions Streamed?

Apr 10, 2012

Does anyone know if Flash Media Server has a function that allows you to see statistics on which particular streams are being delivered?Seems like that would be a handy tool in determining which bitrates are important to continue providing, and which are superfluous, and if it's time to try encoding at higher bit rates.

View 2 Replies

Media Server :: Client Side Playlist With Dynamically Streamed Items Possible?

Apr 7, 2011

is there a way to define a client side playlist like this:[code]but instead of a single videofiles for each playlistentry use dynamic streaming?I know how the DynamicStream class is working and how to set it up but i can't find any information if it is possible to combined those two techniques.

View 1 Replies

ActionScript 2.0 :: Intermittent Failures Of .gotoAndPlay?

Oct 20, 2010

I have a function that fires when a movieclip is pressed. It determines what animation to play and then calls the appropriate function. When it calls FlipWinCard

"private function FlipWinCard( card:MovieClip ):Void
{
// save card so we can flip it back over.[code].......

Most of the time the animation plays correctly but sometimes the animation fails. This has lead me to place most of the followup code in a function that is called by the animation (so I don't change state without showing an animation to the user). I would like to get some clues as to why gotoAndPlay inconsistently fails.It's not always the first time in a run, so I can't blame loading. It just gives up sometimes.The frame is a constant so it's not like I'm guessing a number that should change, in my opinion.I made a watchdog timer to check for the animation so my question isn't a "how to workaround" kind of question.I think there might be better coding practices I'm overlooking and maybe you've seen this before.

View 0 Replies

Actionscript 3 :: Intermittent/staggered Loading Of An Object?

Jun 14, 2010

I've just recently tried my hand at actionscript 3 and have come across a road block.How do I go about rendering the cubes (cube1) intermittently, ie. staggered loading. I need the cubes to load a split second from each other.Below is a snippet of what I have so far:

var rows:int = 5;
var cols:int = 3;
var spacery:int = 100;

[code]....

View 1 Replies

ActionScript 3.0 :: Intermittent Error Talking Between Classes

Mar 17, 2011

I am building a quiz using XML for the questions and a ButtonTopLevel class to control the behaviour of the buttons tasked with choosing a question. Basically, the docClass imports the XML, makes sure it is fully loaded and then adds these top level buttons as children. I need to maintain the MouseEvent.CLICK in the button class because once the button has been used, it will switch to feedback mode and no longer be available as a button. Once clicked, the button says:

[Code]....

I have a sort of "go back" button in during development, and if I go back to the top level buttons and click any one of them, it works as it should. There is nothing undefined, with the possible exception of a variable or two I've declared and not yet used. Is it something in the way I'm telling the child to talk to its parent? My code is rather lengthy, but I will post if need be - just hoping it might be something I'm missing in this call to the parent.

View 2 Replies

ActionScript 2.0 :: Resize Slidshow Strange Intermittent?

Mar 29, 2006

Are the images showing up out of center? I'm having intermitent problems with the images not coming in the right place. Then if you click on one for a second time it may show up in the right place???Below is the code used to load the images... it was from a tutorial... I don't see

Code:
spacing = 10;
containerMC._alpha = 0;

[code].....

View 7 Replies

Flash :: Intermittent Bitmapdata Draw With Scaling Matrix?

Sep 10, 2009

We have discovered that when we draw one bitmapdata into another bitmapdata using draw, there is an upper bound on the scaling transformAt some point the IBitmapDrawable parameter ceases to be rendered on the target bitmap.Does anyone know what the parameters of this upper bound are? Is this documented somewhere?

View 4 Replies

Determine Whether Intermittent Failure Is Due To Bug In Firefox Or Flash Plug-in?

Aug 30, 2010

We have an old Flash application that has worked fine for years, but intermittently fails on latest versions of Firefox. Using the same version of the Flash Player, the application runs fine in Internet Explorer. Recompiling the product is risky, and I'm trying to fully understand the problem before resorting to that. I'd like to be able to point to a known browser or player bug, but I can't really say where the problem is yet.I've gather the following information using Charles Proxy:The Flash application gets a list of files it needs to load. It requests a file then waits until the Flash Plug-in dispatches an Event.COMPLETE before requesting the next file. During this process I can see the HTTP requests and server responses. When the application "hangs", Charles Proxy reports that the response actually completed; however, Firefox's status bar shows "Transferring ..."

Sometimes for an extended period, I can't recreate the problem at all. At other times, the hang-up happens over and over again.Finally, if we switch to using https instead of http, the problem NEVER happens. Because Charles Proxy shows Status Complete while Firefox shows that a Transfer is still occurring, I speculate that the problem is actually in Firefox. I believe that Firefox is failing to recognize when the file actually finished loading, and therefore it fails to tell the Flash Player. The end result is that our code gets no Event.COMPLETE from the player and cannot continue requesting files.

View 1 Replies

ActionScript 2.0 :: Movieclip As Button HitTest Working Intermittent?

Jul 9, 2004

I was playing around last night trying to learn simple AS to make a movie clip act like a button. I wanted the button movie clip to reduce the alpha value of the other movie clip when you rollover the button and when you roll off the button the alpha of the movie clip goes back up. It works, but if you keep rolling over and out of the button movieclip sometimes the alpha gets stuck at a certain value for a bit, then does what its supposed to. I'm using onEnterFrame () to do the hitTest constantly.

Here's the SWF and FLA files for you to look through:

hitTest SWF
hitTest FLA

Here's the AS code I used in the frame to do this:

Code:
onEnterFrame = function() {
if ( background._alpha > 100 ) {
background._alpha = 100;

[code]....

View 12 Replies

ActionScript 3.0 :: Flash Content Slider Has Intermittent Movement

May 17, 2010

I know the problem is with how I have this structured. Here's the code:
scrollHand.buttonMode = true;
scrollHand.addEventListener(MouseEvent.MOUSE_DOWN, beginDrag);
var bounds = new Rectangle(747,200,0,handLimit);
var dragging:Boolean = false;
var dy:int = 0;

View 2 Replies

Flex :: URLStream & OSX Laggy?

Dec 8, 2009

I'm using URLStream to download 30-80mb files over HTTP. It downloads fine on Windows XP, but is extremely laggy in OSX. Anyone had similar issues? Here's some snippets of the code.

[Code]...

View 1 Replies

Flash :: Long Polling With URLStream?

Jun 27, 2010

I'm trying to open a connection to a URL that will periodically send over a JSON object. I know that I need to use URLStream and some event callbacks, but I'm in the dark when it comes to knowing how streams of data "work," or the general flow of operations. Assume I know how to open the connection and send the correct request headers. First, some relevant code:

[Code]...

View 1 Replies

ActionScript 1/2 :: Know How Much Of The Video Has Already Been Downloaded/streamed

Oct 20, 2006

I need to create a progress bar for my streaming video to let the user know how much of the video has already been downloaded/streamed. Making a progress bar for a progressive download is easy, just check the bytesLoaded vs the bytesTotal. But apparently with a streaming video those do not work. What exactly do I need to check in order to create a progress bar for a streaming video. Here is my sample code that doesn't work for the progress bar.

View 9 Replies

ActionScript 3.0 :: Preloader For A Video (not Streamed)?

Sep 21, 2008

I'd like to make a preloader for a flv playback, so while waiting for the video to load, you can have the preloader. What I did was put the flv playback inside a movie clip, which has as the first frame the preloader and as the second frame the flv playback (which I call as instance myVid). But it doesn't work, it stays in the first frame with the bar loaded and never goes to the second with the movie clip. Maybe I shouldn't use the normal code I use to make a preloader for a whole site. Can anyone help? I attach the code I use for the preloader.

View 8 Replies

ActionScript 3.0 :: URLStream Bytes Available Returns Incorrect Value

Aug 2, 2010

I am trying to upload and download a file from the server. After uploading if I Try to download the file it is not downloading. URLStream.bytes Available returns incorrect value. If I close the AIR application and try it ,it will work perfectly.. Why URLStream.bytesAvailable returns incorrect value just after uploading..

View 0 Replies

ActionScript 3.0 :: URLStream Object Does Not Have A Stream Opened

Dec 14, 2009

I successfully built a XML gallery; everything seems to work fine. But everytime I click on a thumbnail, I will get the following error:Error: Error #2029: This URLStream object does not have a stream opened.I researched on this error, and it seems this error involves sounds. Something about trying to load something that's already fully loaded. Therefore, I'm confused since I don't have any sound in my gallery. On top of that, the gallery works just fine but this error keeps popping up in Flash.[code]

View 1 Replies

Actionscript :: Saving Streamed Audio From Mic On Adobe FMS?

Aug 5, 2009

Im trying to capture mic data from a swf, stream it to adobe flash media server, and save it as a wav file. Currently I can only stream the mic data to the server and save it in FLV format. how I can covert it to a WAV or save it as a WAV?

View 2 Replies

ActionScript 2.0 :: [mx] Making Variables Available In Streamed Movies?

Jan 11, 2011

I am loading various movies into a "shell"movie as and when they are needed using loadMovie... However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path...

_root.holder_mc.loadVariablesNum("scorevars.php"," post");

But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact...

View 1 Replies

ActionScript 2.0 :: Making Variables Available In Streamed Movies

Feb 24, 2004

I am loading various movies into a "shell"movie as and when they are needed using loadMovie.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path _root.holder_mc.loadVariablesNum("scorevars.php"," post");My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.

View 5 Replies

ActionScript 2.0 :: [mx]Making Variables Available In Streamed Movies?

Feb 24, 2004

Scenario:I am loading various movies into a "shell"movie as and when they are needed using loadMovie... No problems there.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the completepath..._root.holder_mc.loadVariablesNum("scorevars.php"," post");But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.

View 5 Replies

Flash :: Pause / Resume Downloads With The URLStream Object?

Jun 27, 2009

Is it possible to pause / resume downloads with the URLStream object?

View 2 Replies

Actionscript 3 :; URLStream Throws Error # 2029 In Flex AIR App?

Nov 2, 2010

In my AIR app,I am trying to implement a file downloader using URLStream.


public class FileDownloader {
// Class to download files from the internet
Function called every time data arrives[code].....

I simply create an object of the above class and passing the url and the file and call the load function. For some files I get the following error.

remotePath: http:[url].....error while writing bytes from...Error:Error #2029: This URLStream object does not have a stream opened.Which means the error is from the file stream(fileAccess) that I am using. I am unable to figure out why this could be happening. If I try to open the url http:[url]... in the browser, it opens properly. This happens randomly for some files.

View 1 Replies

Flash :: Comet-style Long-Poll In AIR Using URLStream

Sep 26, 2011

I'm attempting to connect to an existing Comet-style long-poll service using an AIR app. The service expects a client to make a GET request with a Connection: Keep-Alive header. This request will remain open for long periods of time so that the server can push data through. In my app, the connection is terminated with an IOError after 30 seconds.

Is this an undocumented limitation of URLStream? A restriction on adl (I've only been running my app through adl)?

The server does not send any "keep-alive" messages to the client but, unfortunately this is not something i have control over.

Update

To test this, I've set up a stripped-down version using a little php script (linked by leggetter below) and am hitting it from a simple AIR app. I'm finding that my connections are closed after 30 seconds whether I use URLStream or URLLoader. the PHP:

<?php
set_time_limit(0);
sleep(40);

[Code]....

If i adjust the initial sleep time in the php script to anything over 30 seconds, the IOError event is triggered. If I lower the sleep time, but the request continues adding data past 30 seconds, the onComplete event is called, but _urlLoader.data is empty.

The only way this process completely successfully is if the entire thing is over before 30 seconds elapses.

View 1 Replies

ActionScript 3.0 :: Check If A URLStream On A Loader Is Open Or Closed

Jun 30, 2010

I have to be able to cancel and kill a Loader process properly and many times. If I dont do this, it seems that the flash player (at least on mac) eventually crashes as some loader processes are flying about , strangling the CPU.

There doesnt seem to be a straightforward way to know this and just calling a Loader.close causes an error, if the stream is not open.

View 4 Replies

Professional :: Getting Information From ID3 Tags From Streamed Mp3 Files In Flash CS4

May 3, 2010

I have spend my whole day trying to find a good way to access ID3 tags in AS3.0;In my project I am making a sound object and assigning it a URL: Then I stream the sound into a sound channel:[code]I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.[code]

View 9 Replies

ActionScript 3 :: How To Create Sound Spectrum From Streamed Data

Oct 13, 2011

Just wanted to ask, is it at all possible to create sound spectrum from the data that RTMP server streamed? I read this computeSpectrum and it says
"In addition, this method cannot be used to extract data from RTMP streams, even when it is called by content that reside in the same domain as the RTMP server."
I will not be using FMS so it stays inpossible. Are there any available hacks with php and the server or whatever?

View 1 Replies

Actionscript 3 :: Internet Explorer Flash.net.URLStream Close() Method

Jan 15, 2012

Is anyone else aware of the fact that Internet Explorer (at least version 8) keeps downloading a file even if the close() method is called on an URLStream instance? Heck, it even keeps downloading if you close the tab displaying the site which called the load()/close() methods on an URLStream instance. Does anyone know of a solution to overcome this problem? More details: My preloader is loading a dozen of files and immediately closing the download streams with the purpose of checking each resource's file size. In Mozilla Firefox all goes well, exactly as expected, but Internet Explorer keeps downloading the resource even if the stream has been interrupted by the action script close() method.

View 1 Replies







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