ActionScript 3.0 :: BytesLoaded Preloader Not Accurate For FLVs

Nov 8, 2009

After wrestling this flash flv slideshow for the last few days, I finally have it running smoothly locally. The problem is that on a server it has serious issues. I see a blank screen where the flv should be... I assume it's still loading or buffering. That's a problem as is, but when it's in this state, nothing else works on the site (flash site-one swf). If you wait for sometimes 10 minutes the flv finally shows and the site works great. All of this obviously depends on the connection.

So I understand that this could be caused by the size of the 10 flvs. I'm using the FLVplayback component by the way. So that's fine for now, but I just want a preloader at the beginning to only go to frame 2 after the intro flv has been loaded. I thought this would be simple using bytesTotal and bytesLoaded. I was wrong. Below is the code I'm using. When you view the page the preloader seems to work, but after it runs - you are directed to the second frame... showing the "skip intro" button (which doesn't exist on the 1st frame)... but the flv doesn't show. It's actually still loading... 5-10 minutes later it shows up and the site works fine. My preloader isn't showing the progress of the flv load.

You can see what I'm talking about by viewing my project... if you're on a connection like mine you won't be seeing much: [URL]

Does anyone know of a preloader specifically for FLVs... maybe one that reads the buffer progress?

[Code].....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Creating An Accurate Preloader That "fills Up"?

May 28, 2007

what would be a good way of creating an accurate preloader that "fills up" the a logo as the progress bar. My code seems to only start loading at 19 percent and I wanted to see what other people would do to accomplish this.

View 2 Replies

ActionScript 3.0 :: BytesLoaded From FMS?

Aug 28, 2009

Here is what I am trying to do which is make a custom seek bar and all the code examples I have seen are using NetConnect to do this where I am using the FLVPlayBack object. All the examples call out to bytesLoaded but via Adobe's documentation this will only work for an HTTP progressive download and not a feed from a FMS server. So my question is this how would one go about getting this type of information and/or create a custom seek bar while using a Flash Media Server to serve up the FLV file?

View 1 Replies

JS To Show BytesLoaded Of SWF?

Nov 20, 2010

I want to use Javascript / AJAX to show % loaded of SWF.

The thing is I cannot edit the ActionScript. I have seen this done before...

View 1 Replies

ActionScript 3.0 :: Passing BytesLoaded Using DispatchEvent

Aug 18, 2009

I'm struggling to get the bytesLoaded in a class back to the main timeline. This is my class:

Code:
package com {
import flash.events.*;
import flash.display.*;

[Code].....

View 6 Replies

ActionScript 3.0 :: Difference Between BytesLoaded And BytesTotal

Jul 10, 2009

I am confuse about this two method bytes Loaded and bytes Total. I want to see pratical example with trace method. Is there body know how to use this two method .

View 1 Replies

ActionScript 3.0 :: BytesLoaded & BytesTotal Properties?

Jan 31, 2012

i built an preloader class that load any content using Loaders objects created dinamically with a "for" loop and save each Loader inside an array. In this way, i have one LoaderInfo object by each Loader object created. I created a variable whose hold the sum of all bytesLoaded properties values for each Loader object, in other worlds, this variable holds the total of bytes which will be loaded.Here's the code:

ActionScript Code:
var loadURLs:Array = new Array("url01","url02","url03",...);
var loaders:Array = new Array();[code].........

View 9 Replies

ActionScript 2.0 :: Convert BytesLoaded To SecondsLoaded?

Feb 4, 2008

I I have a video that is 303 seconds long @ 15fps.

Using setInterval I would like to calculate how many esimated "seconds" are downloaded based on how many bytes have been downloaded.

View 3 Replies

Actionscript 3 :: Get Netstream BytesLoaded And BytesTotal From Streaming .mp4?

Mar 26, 2010

I have a flex 3 app that uses netstream and a video object to stream .mp4 movies. I want to use the bytesLoaded and bytesTotal properties of the netstream to display the buffering information. I would also like to get any information about the number of frames that are dropped if possible.

When I've tested on .flv I'm able to get the information without a problem, but it doesn't seem to work on .mp4.

Is it possible to get this information streaming .mp4? Is there some configuration that I'm missing to make things work the same for .mp4 as .flv?

View 1 Replies

Flex Event.bytesLoaded Returning Wrong Value?

Oct 12, 2010

I have a function that's called when a file download has reported progress:

private function progressHandler(event:ProgressEvent):void
{
var percent:Number = Math.round((event.bytesLoaded / event.bytesTotal) * 100.0);
Alert.show(event.bytesLoaded.toString());
//pb.setProgress(percent, 100);
}

Now, this should work fine but unfortunately, event.bytesLoaded is returning much larger values than it should. For a test file (8555 bytes), bytesLoaded goes all the way up to 8973384.

View 1 Replies

ActionScript 3.0 :: LoaderInfo.bytesLoaded Not Hooked To External Img?

Jun 3, 2009

when I try loaderInfo.content it traces [object MainTimeline] but should trace the external image

View 1 Replies

ActionScript 3.0 :: Custom ProgressEvent Does Not Report BytesLoaded And BytesTotal

Jun 12, 2009

I have created a custom  progress event in a purpose to pass a handy parameter to event handler:

[Code]....

You see - I am unable to get progress status from my CustomProgressEvent !

View 3 Replies

Media Server :: NetStream BytesLoaded Not Registering With Streaming?

Jul 10, 2009

I'm working with a custom made Flash video player using FMS (Wowza, actually).The video is working, yet when I access the BytesLoaded and BytesTotal,I get 0 (zero) for each.This even persists as the video is loading and playing.It's as if it is not even being registered at all.Here's the code:

var amountPlayed:Number = Math.round(ns.time * tlInterval) / Math.round(duration * tlInterval) * tlInterval;
controls.tl.width = Math.round(amountPlayed) * controls.tlw / tlInterval;[code].....

I tested this with a similar player that uses progressive downloading instead, and I get real data.

View 2 Replies

ActionScript 3.0 :: Stop ProgressEvent.Progress When BytesLoaded < BytesTotal?

Oct 30, 2009

I want to stop ProgressEvent.Progress and two seconds to determine whether the Internet connection is dialup.  Is there a way to stop ProgressEvent.Progress when bytesLoaded < bytesTotal?  Right now, the event continues until the entire *.jpg file is loaded and/or creates a fatal error closing Flash.  Here's the code I'm using:

[Code]...

View 4 Replies

ActionScript 3 :: Flex - ProgressEvent's BytesLoaded Property To Document Class

Nov 1, 2009

in AS3, I have an external class ImageLoader, that loads an image upon request. In that class, I have an event handlers:

[Code]...

I am trying to send the download progress updates back to the main Document Class and display it on screen, so I am trying to dispatch the event "PROGRESS_INFO" and then get the information from the passed Event Object, like so: Document Class

[Code]...

This however, is proving futile... any ideas on how I can get the progress info out of the IMageLoader class? note: I know I can add bytesLoaded & bytesTotal to a public variable, but then I won't get the benefit of seeing the bytesLoaded property update in the ProgressEvent class.

View 1 Replies

ActionScript 3.0 :: LoaderInfo.bytesLoaded Not Showing External Image Progress?

Jun 4, 2009

When I try loaderInfo.content it traces [object MainTimeline] but should trace the external image.tracing loaderInfo.bytesLoaded does not trace the image progress. It should

Code:

var objAimg:Array = new Array();
var ldrA:Array = new Array();
var url:String;
var urlReq:URLRequest;

[code]....

View 2 Replies

Make A Timer Accurate?

May 10, 2011

I'm using the following method to dispatch a sound in X times/minute (X is determined through bpm, which is a NumericStepper object)

var mainTimer:Timer = new Timer(60 / (bpm.value * 1000),0);
mainTimer.addEventListener(TimerEvent.TIMER, fl_TimerHandler,false, 0, true);
mainTimer.start();

[code].....

View 2 Replies

ActionScript 3.0 :: Difference Between Fully Buffered (bytesloaded==bytes Total) And Play From Local?

Jun 9, 2011

I have 4 flv playback instances on a stage.

1. when i load 4 videos and ensure they are fully buffered from video progress event and bytesloaded==bytestotal . and then play them. I get sync issues for every other second.

2. when i download the vidoes and place them in my project folder and then load them ( no loading time) there are no sync issues. I cant understand why 1 is different from 2 as we are completely loading the videos in cache.

View 0 Replies

Professional :: Dataprovider SortOn Not Accurate Over 100?

Sep 30, 2010

I've used the sortOn function (dp.sortOn("cost");) to sort my dataprovider values based on cost. It works great until I get values over 100. Then it thinks that 250 < 50.

View 2 Replies

Professional :: How To Get Accurate Red Colour Compression

Oct 25, 2010

Any troubles when compressing red colours to .swf? I always have a kind of blur in edges, like dirty compression.

View 1 Replies

ActionScript 3.0 :: FLVPlayback: Seek Is Not Accurate Enough

Jul 18, 2011

My FLV is paused and I do a seek to FLVPlayback.playheadTime-1. This i.e. equals to 22-1=21. It works, but than VideoEvent.PAUSED_STATE_ENTERED is called and my trace shows playheadTime = 22 and nothing changed. If I seek to playheadTime+1. This i.e. equals to 22+1=23 my onPaused trace shows playheadTime = 24 and my FLV advanced 2 sec. not 1. So there is always 1 sec. added to playheadTime and its cut to absolut .000 numbers.
 
It seems like FLVPlayback alligns my seek into blocks of 2 seconds. But I need to position more accurately and jump in half seconds even.
 
[Code].....

View 6 Replies

Flex :: Accurate BPM Event Listener In AS3?

Dec 7, 2009

I'm trying to sync animation to music at a specific BPM. I've tried using the Timer but it isn't accurate when dealing with small intervals in milliseconds. I did some reading and found an alternate method that uses a small silent audio file and the SOUND_COMPLETE event as a Timer.[code]...

View 4 Replies

Actionscript 3 :: Accurate Way To Track Time In It?

Jan 11, 2011

The timer class seems to accrue a lot of error over time so I'm wondering what other solutions people have come up with for a more accurate Timer.

View 4 Replies

ActionScript 2.0 :: Accurate Collision Detection?

Jan 4, 2004

I was wondering how you get the collsion detection to be just what is in the MCs instead of a rectangularness of the movieClip.

View 8 Replies

ActionScript 2.0 :: Skew Function Not Accurate

Aug 22, 2004

i got a problem with a nice skew function From Ericlin of URL...[code]i have prepared a small and plain .fla for you so you can check it out right here, its also attached to the posting (Flash MX 2004 File but should be ok for earlier versions?):url...while the borders of isometric walls are still exactly vertical (90 deg) the function is producing lines which are very slightly skew. might be something like 90.1 deg... but this inaccurancy produces ugly gaps between walls i put together later.This function is maybe not accurate enough, maybe to accurate, i am not sure. But i need probably some rounding in there but i dont know where, really (is that a wonder? look at the script! ;))when you zoom in and look at the "orientation bar" (thick dark blue bar), you will notice that there is a very small gap on the top right corner but its bigger on the bottom right corner of the wall texture.

View 1 Replies

ActionScript 2.0 :: Pull Only The Accurate Amount?

Nov 7, 2004

I am with a small problem, is the following one, I have my main file that this calling 10 swfs external, example in frame 1 calls one swf, in frame 150 calls another one, in frame 230 calls another one and thus it goes until completing the 10 swfs, I am using something thus for each swf "tran1_mc.loadMovie(_root.i11)", in the HTML if I to place 10 swfs it pulls normal, all certainty so far, but if in my HTML to say only it to pull 3 swfs, it pulls these 3 swfs and the remaining portion is blank, what necessary to make it is when to finish to show to this 3 swf it comes back to the first one, somebody has an idea of as I can make this?

View 5 Replies

ActionScript 2.0 :: 100% Accurate Countdown Timer?

Jun 28, 2007

I need to make a countdown timer in Flash that will countdown in seconds to the next whole hour and then will reset and countdown to the following next hour The timer needs to be 100% accurate. Is it possible to create a countdown timer in actionscript which will be perfectly accurate - ie. will always be identical when compared with actual rea-life time, irrespective of the hardware, processing of applications done on a client machine?If this is not possible, is it possible to include in the code a detection of when the timer becomes inaccurate and then further code to get it back on track to correct the inaccuracy?

View 8 Replies

ActionScript 3.0 :: Can't Get Accurate PlayheadTime In Flvplayback Component

Mar 3, 2011

I use flvplayback to play a 20 seconds flv video, but I can't get accurate playheadTime no matter how to set the attributes.
 
Here is my as3 codes.
 
import mx.video.*;my_FLVPlybk.playheadUpdateInterval=10;//my_FLVPlybk.seekBarInterval=100;//FLVPlayback.seekBarScrubTolerance=100;function the_play(eventObject:Object){ ta.text = my_FLVPlybk.playheadTime;     //  ta is a textarea.}function the_end(eventObject:Object){ ta.text = "video over";}my_FLVPlybk.addEventListener("playheadUpdate", the_play);my_FLVPlybk.addEventListener("complete", the_end);
 
I drag seekbar to between 0 and 8 seconds, it always obliges to 8.333 .

View 1 Replies

Flex :: Random Point On VideoDisplay Isn't Accurate Enough

Mar 17, 2010

For a schoolassigment me and some buddies of mine are creating an application that is showing many similarities with the C-Mon & Kypski musicvideo on [URL]. The application is being developed in Flex.

We want to get a random point of a clip, let it pause so a user can mimic the pose and make a snapshot out of it.

What i managed to do is get a random point of the movie. I did this by getting a random value between 0 and de total duration of the movie.

But what i didn't managed to do is let the screen pause on every 24st of a frame. As the movie concist out of 24FPS. It looks like the the random value of the movie that is being requested is being rounded by the movie itself. As example: There appears to be no difference between the frames requested at 2.40 or 2.41.

It appears it got something to do with keyframing i've read on the Adobe® Flex™ 3.5 Language Reference. The movie is a FLV file and i use the VideoDisplay object to display the movie.

View 1 Replies

Flash :: Getting The Accurate Time For Every MousePressed Event

Aug 6, 2010

When someone clicks in my flash activity, sometimes it triggers a lot of computation. If the user clicks again (e.g. a double click), this event gets queued and dispatched after the heavy computation is complete. If I clicked many times, the problem is just compounded -- if clicked fast enough, the queued heavy computation finishes up to ten seconds later, with each clickEvent slowly dribbling out the next task.

I have two questions. First: how can I get the accurate time for when the click took place? In the example below, I am getting the dispatch of rapid click events long after the click was clacked (sp?).

Second: what is a good design pattern for collecting every click? Off the top of my head I suppose I should

[Code]...

View 2 Replies







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