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


Similar Posts:


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

Flvplayback Seek Bar Sticking In Browser When Using Loader?

Jun 30, 2009

I have a fla (Home) with a flvplayback component. If I load it using a loader using this script

var loader:Loader = new Loader();var req:URLRequest = new URLRequest("Home.swf");loader.load(req);addChild(loader);stop();

when I preview it in Firefox or IE and click on the seek bar or volume bar the control slider 'sticks' to the mouse cursor instead of jumping to the spot where I clicked. If I just compile it and play it in Flashplayer the seek bars work as expected. If I preview Home.fla directly they also work properly.Could this be a loader-flvplayback bug?

View 3 Replies

ActionScript 3.0 :: Flvplayback, Rewinding With .seek(0) Getting An Audio Pop - How To Clear Buffer

Sep 28, 2011

I have an flvplayback component on the stage of a parent flash project. One can preview a video that has some text overlaying it that the user entered in a previous scene.  Dynamic cuepoints sync the video with the overlaying text.If the viewer doesn't like the preview they can go back to the previous scene, edit the text, and rewatch/preview the video with the overlaying text to make sure they like it.
 
I'm running into an issue when they stop watching the video preview, they go back to the previous scene and they return to the video preview scene. I stop the video with a .stop() and I rewind it with a .seek(0) but when they return to the video player and rewatch the video there's a brief audio pop. I'm assuming the pop is a bit of video/audio left in the buffer of the flvplayback component.
 
My question is - is there a way or what is the best way to clear the buffer of the flvplayback component when I rewind the video so it can be replayed?Is there a better way to rewind an flvplayback to the beginning other than .stop() & seek(0) so I don't get a audio pop when it's replayed?

View 1 Replies

ActionScript 3.0 :: VideoError:1003: Invalid Seek At Fl.video::FLVPlayback/seekToNavCuePoint()

Sep 4, 2009

I am using an flv file with navigation cue points.  When I try clicking on a button I created to go to "EndOfMovie" I get the following error: VideoError: 1003: Invalid seek at fl.video::FLVPlayback/seekToNavCuePoint()at vectorVideo_fla::MainTimeline/skipToEnd()

[Code]...

View 1 Replies

ActionScript 1/2 :: FLVPlayback: Disabling VolumeBar, Seek, Play/pause, Mute, Fullscreen Buttons?

Feb 15, 2012

Is there a way to disable/enable the buttons in FLVPlayback component? I got a flv files loaded into a fla file and the swf file then loaded onto the main fla file which where I want to disable/enable the FLVPlayback button at certain time.

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

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

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

Professional :: Video On Site - Showing Error - Warning : The Linkage Identifier 'FLVPlayback' Was Already Assigned To The Symbol 'Video/FLVPlayback',?

Apr 27, 2010

I have attached a video on a frame of my website in Flash. When I preview the movie the film plays as it should.But when I export the Fla. as a Swf. file it then doesn't have the movie there anymore?It does show this error:
 
**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'Video/FLVPlayback', and cannot be assigned to the symbol 'FLVPlayback', since linkage identifiers must be unique.

I really don't know what that refers too.

View 1 Replies

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

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

Actionscript 3 :: Get Accurate Character/font Metrics?

Jan 12, 2012

I have created a class which will use an embedded font to dynamically generate a bitmap font at run-time. So far it works well except that I have a minor issue with character spacing.

In the image below the first line is an actual TextField and the second has been rendered using the generated bitmap font.

If you look at the word 'fox' or the 'ed' of the word 'jumped' you can see that the letter spacing looks a little bit odd.

Are there any alternatives to the TextLineMetrics class which will give me more accurate character metrics?

UPDATE :

Text rendering quality using the new Flash Text Engine :

UPDATE 2 :

By chance I have eventually found the solution :

The first problem was the antiAliasType property which was set to AntiAliasType.ADVANCED. Although it produces higher quality text it also causes TextLineMetrics to return incorrect widths for characters.

The second was that it had to also be rounded up (using Math.ceil) to the nearest pixel and not down.

View 1 Replies

ActionScript 2.0 :: Creating Rich Accurate Rollovers?

Feb 23, 2004

I have some buttons on a page that I'd like to fade from white to orange. However, if you rollout before the entire fading MovieClip plays, it jumps to the out state. I'd like to have it gently fade out, from whatever point you are in the mC, for a more natural looking rollout. I know this is possible, but I can't seem to code it correctly.

View 6 Replies

ActionScript 2.0 :: [F8] Accurate Timed MC Movement Despite Framerate?

Mar 9, 2007

Im making a little sequencer program as part of a bigger application. The sequencer playhead MC needs to move at accross the stage at a constant speed regardless of the frame rate of application.how to achieve this? My first thought was setInterval, but i have since read that it is not that accurate accross framerate changes either.

View 8 Replies

ActionScript 2.0 :: Extremely Accurate Sound / Beats?

Apr 2, 2007

method where you play a blank file, with a specific time length, and that will loop, and using that sound file, it will dispatch a event when it finishes, hence you get a very accurate loop.

View 4 Replies

ActionScript 2.0 :: Creating Rich Accurate Rollovers

Feb 23, 2004

I have some buttons on a page that I'd like to fade from white to orange. However, if you rollout before the entire fading MovieClip plays, it jumps to the out state. I'd like to have it gently fade out, from whatever point you are in the mC, for a more natural looking rollout. I know this is possible, but I can't seem to code it correctly.

View 6 Replies

ActionScript 2.0 :: Skew Function Not Accurate: Need Rounding?

Aug 22, 2004

got a problem with a nice skew function From Ericlin of Here is the content of the original Actionscript Function:

PHP Code:
function skewObj (obj, mcW, mcH, pt0, ptH, ptW)function distance (pt1, pt2) var dy = pt2.y-pt1.y; pt2.x-

[code].....

View 1 Replies

Flash :: Editing Symbol Position Or Size Not Always Accurate?

Nov 19, 2010

If I click on a symbol, go to the properties tab, click on the width textbox, type in 1000, hit enter, it then reports the width being 999.95. That's .05 pixels off from what I wanted.

I have snap to objects disabled. The symbol in question is a 1000x500 linear gradient rotated 90 degrees alone in it's own layer in a movie clip.

View 1 Replies

ActionScript 2.0 :: Accurate HitTesting Updating Arrays With Collisions.F8 CS3.zip?

Apr 25, 2008

I have 4 ball movie clips, a playhead and four target movieclips called mc_1-4, the array, (my_array), has 4 elements, which are each defined as having values of 0: I have a hitTest set up that will trace my_array to the output window each time it hits mc_1, to see what is happening. However the hitTest prints the array 3 times?

Am i right in thinking that this is because the hitTest is being triggered on entry of mc_1 in the center and upon exit?I need to make this hitTest be triggered once when the hitTest passes the center of mc_1. Secondly if any of the balls have been dragged and dropped on to mc_1 i want the array value with an index of 0, to change to 100 from 0 (not in terms of its index position because my array is only 4 elements long, in terms of its actual value) which i have tried to implement but i cannot configure the right code.

1. hit tests that only trigger once when they pass through the center of the object thus tracing one array.

2.use the balls 1-4 to make the array index 0, have a value of 100 if they are in contact with mc_1.

View 4 Replies

ActionScript 2.0 :: Swfs External - 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

Flash :: Create A Accurate Chronometer Matching Real Time?

Sep 23, 2011

I'm working in an educational software, mostly developed using Flash AS3, and we have a chronometer which shows different values through different users. Example: Two users starting the chronometer at same time, but along some minutes of usage, they have different values.

The current implementation uses Timer class, causing this to happen, obviously due the different average speed of each computer.

View 1 Replies

ActionScript 3.0 :: Build A Hidden Object Game - Accurate Collisions With Mouse

Oct 27, 2010

I'm currently trying to build a hidden object game, but am having difficulty getting accurate results with where the mouse is clicking. I thought using hitTestPoint to check whether the mouse's coordinates were actually colliding with the pixels of the shape would work, but this produces the exact same results as simply checking for a MouseEvent.CLICK event. It seems to be returning true even if the pixels being clicked on are transparent (i.e. just background/not part of the shape). Is there any way to check whether the pixels being clicked on actually contain the image of the object being searched for?

[Code]...

View 5 Replies







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