Actionscript 2.0 :: Progress Bar And Scrubber Won't Work
Feb 3, 2010
i'm just new flash and actioscript as well.i'm following exactly the tutorial of making a media player but on the progress bar and scrubber part, mine doesn't work.the progress bar won't progress at all while i'm playing a flv file, the scrubber works only by on loading the bytes but if i scrub it, it won't work. it will just be still works on playing the video from start to finish.
View 1 Replies
Similar Posts:
Feb 9, 2011
people on these forums have been really kind to me in the past, so I thought I'd try to get some feedback on a problem that I'm currently working on and have approached from a number of angles. While building my own FLV playback component (progress bar which doubles as scrubber (i.e., has a slidable knob, etc.) included), I ran into the following problem:
Once a button that begins download of an FLV is released and the FLV begins loading, the progress bar (which represents the FLV's timeline/total/loaded amounts, etc.) increases (width), however, if during this process a user starts to drag the knob, the width of the progress bar is 'stunted', in other words, while the 'onPress' event is active, the 'videoStatus' event is disabled (the event/function responsible for the proportionate increase of the FLV progress bar's width).
[Code]...
P.S. Using intervals is not really option as this entire process was originally created using intervals (if anyone else is familiar with Lee Brimelow's video tutorial on FLV playback components), however, upon realising that two simultaneously-running intervals won't do the trick, he posted an updated version using 'onEnterFrame' events... (the problem seems to be however, that whether you use two intervals or two 'onEnterFrame' events, the scrubber breaks...) therefore, going back to intervals would probably be taking a step backwards..
View 1 Replies
Jun 30, 2009
I'm building a flv_video AS3 player. I'm using steaming-video.The player is working fine, but there is something that I want to improve. Currently when I push play button and if I drag&drop the scrubber of progress-bar somewhere in the area that is still not buffered, the player doesn't start to play from that position. So I want to do it.
View 2 Replies
May 1, 2009
I have created a video player in AS3 using some of the code from Lee's tutorials to create the loadBar and Srcubber. My video works, the play, pause and rewind buttons work. However, I cannot get the loadBar and scrubber to work.
[Code]....
View 12 Replies
Jul 7, 2010
I am an action script novice, however I have just created my own custom load bar and scrubber for the flvplayback component using a tutorial but the code didnt work. I also tried this code given to me:
[Code].....
View 0 Replies
Jan 20, 2009
I am making a player that adds an advertisement before a video but don't want the user to be able to skip though the ad. I am using the progress component and an FLV Playback component for my player. I had tried to just hide the progress bar but it looks unbalanced. If anyone has an idea on how to make it so a user can not fast forward though the ad by dragging the scrubber that would be great.
View 2 Replies
Jul 14, 2004
What do you guys think of this:[URL]..Link: Link This is a pathfinder script that I'm still working on. Just click a light square to watch the circle drive around the dark squares till it reaches the destination. Key down to adjust squares.
It will sometimes appear to be in an infinite loop, but it should eventually escape (note eventually). It also occasionally freezes in place. I have yet to figure out what causes this and therefore cannot fix it yet. Other than that it works quite well.
View 1 Replies
Sep 15, 2009
I am loading files via flash+php and I can't get the progress bar or completing event to work....and I am sure the solution is simple.
ActionScript Code:
System.security.allowDomain("http://ftp.fakename.com/");
import flash.net.FileReference;[[code]..........
View 0 Replies
Apr 7, 2006
I'm checking work in progress with external swf's and the output error log keeps looping an "error opening URL". I don't want to sound stupid but is this because I'm saving each file as an .fla and the ActionScript is in swf's??
View 5 Replies
Apr 21, 2003
When calling a swf with a two-scene preloader from within a Flash interface, the load status bar pops up showing 100% loaded, and the loader bar just sits there like that until the movie loads. The preload progress bars work as expected when the swf's are called from an HTML page.
View 4 Replies
Jun 4, 2010
I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress. I'm doing that next way:Calculating the distance for the slider to be moved each frame (248 / 1375) On each ENTER_FRAME moving the slider for the calculated distance The problem is - the movie ends far before the slider reaches the end of the progress bar.
I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way. My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?
View 2 Replies
Mar 2, 2011
I have a progress bar inside a repeater and therefore I will need to use getRepeaterItem to set it's progress as suggested in this question.
How can I do that such that the value of progress may be taken from repMonitor.currentItem.threatLevel?
<mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >
<mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">
[Code]....
View 1 Replies
Jul 4, 2010
I need an example of how FlvPlayBack scrubber works ?? what is a scrubber and wats the purpose ? i need an example of a scrubber ?? i tried example code of adobe flash, but am getting an error.
View 1 Replies
Feb 23, 2009
I am trying to make a scrubber that will allow me to scrub through the root time line which has streaming audio on it. I have created audio players before where the file was being streamed in from an external file, but have not dealt with it ever being on the timeline.
[Code]...
It works pretty well, however, there is a problem. When I scrub the bar, the audio stops playing. I am assuming it is related to the enterframe function, but I am not sure on how to correct the code.
View 0 Replies
Jul 20, 2009
I followed a couple of tuts and I have the gallery working, but I would like it to have a preloader, so I added a basic one to the first 2 frames of the root and moved gallery movieclip and controller to the 3rd frame.the preloader works and the movie goes to frame 3 but then my controller(scrubber) for my gallery doesnt work, in the code there is nothing refering to the _root just _parent so I am not sure where the problem is. I'm a cg artist just trying to get a website up.CODE:root frame 1Quote:
LOADED = Math.round(getBytesLoaded());
TOTAL = Math.round(getBytesTotal());
PERCENT = LOADED/TOTAL;
[code].....
View 5 Replies
Aug 21, 2009
I'm new to flash. I'm trying to create a swf of a video with scrubber and at a certain point through the video the web address pops up and is clickable. I have tried embedding the flv within the timeline but it warns me that things could get out of sync.
View 2 Replies
Jul 28, 2010
I am trying to make a scrubber for a mp3 player. I can not figure it out! Any one know of a good tutorial or code I can look at? Everything else is working, just can not get the scrubber.....
View 0 Replies
Mar 16, 2009
I've been following the tutorials for building a custom flv player and have come across a few problems, the player can be seen online here: [URL]. I'm having a few issues with the scrubber and the load bar, they loadbar starts in the middle and stretches out towards the sides and the scrubber starts in the middle and runs off the end? I'm pretty new to actionscript as have only really used flash for simple animations before, i have attached the source file and the actions are listed below.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);[Code] .....
View 1 Replies
Mar 29, 2009
Are there any examples or tutorials on AS3 scrubbers? I cant find any that don't deal with flv control... I need swf timeline control and dont have the knowhow to convert an as2 version.
View 14 Replies
Feb 3, 2010
how to build a scrubber bar to control an external SWF. I have a template built that will load external SWF files into a content area. I already built a play/pause button into it but cannot figure out how to make it so the progress bar moves and is scrubbable. I know it has something to do with the total frames/length of the loaded SWF, the width of the progress bar and making the progress bar's tab draggable/constrained but not sure how to put it all together to make it work. I've tried a few things but none of them worked (I'd attach the code I tried, but I trashed it and reverted back to what worked last time).
View 1 Replies
May 11, 2009
I'm looking for a tutorial on the interwebs to create a scrubber for the length of a movie clip.For example:If a movieclip is 300 frames long, the beginning of the scrubber would be Frame 1 and the end would be Frame 300 with Frames 2-299 in the middle.I'd like the user to be able to scroll through the movie much like a Quicktime VR
View 2 Replies
Apr 8, 2010
I would like to make a player controller with a scrubber for an animation I am creating. I do not want to control a video (mp3, flv, or other). I want to control the animation on the timeline. My Flash file has scenes. Is there a tutorial for applying a controller for this kind of file?
View 1 Replies
Nov 25, 2010
I am building a video player using FLVPlayback and some custom controls (AS3). At the moment when you click the thumb in the progress bar the video pauses and you can drag to a new position on the track and resume playing from there when you release the thumb (this is done using FLVPlayback.seekPercent()).I need to update this so that as you are dragging the video is constantly updating to the correct frame.
I tried using the working that fires on release and calling it on enterframe while the thumb is dragging and everything went wrong. I can't see any reason for this to be a problem and the code so far is pretty straight forward.
View 1 Replies
Feb 23, 2011
I want to use an interactive move scrubber like the one used on this link [url]...
View 2 Replies
Aug 4, 2011
I am building a timeline with a scrubber. The handle on the scrubber is a movie clip, and it was all working fine. But I didn't like that when you clicked on it, the hand icon would be glued to the left hand side of the handle. So I changed to registration of the handle file so that it would be in the middle. Now my 'onReleaseOutside' command quit working. If I set the registration back, the release command works again.
Basically, if I drag the handle all the way to a side and have the mouse continue past the flash file and release it, it wont register it has been released until I move the mouse back over the flash, which also moves the scrubber handle to _x location of the mouse for where ever it entered the swf. Is there something obvious I am missing? Or do I have to deal with an un-centered handle?
View 3 Replies
Feb 17, 2009
I'm working on building a custom FLV player and I'm having issues with my scrubber. When I drag and drop it, the spot in which it falls and plays is inconsistent. Example, if I drop it in one spot, the video will pick a spot a second or two past. Then when you mouse over the scrubber it wiggles when your on an edge. [URL]
My scrubber code is:
ActionScript Code:
//---Handle Code---//
scrubbar.mcHandle.onPress = function() {
this.startDrag(true, 0, this._y, 455, this._y);
delete this.onEnterFrame;
trace(this);
[Code] .....
View 0 Replies
Jul 8, 2010
I will tell you what exactly i need. I need a video scrubber and it should be in a circular shape. I will tell you how it has to work. I want to rotate with a small circle on top of a big circle. lets assume that small circle is called a dragger. Now i need to drag that on top of the circle either in clock wise direction or in anticlock wise. If am dragging in clock wise, the loading video has to seek forward. suppose in case if am dragging in anti clock wise, i need to see the video backward. This is the functionality am going to implement in FLASH CS3/FLASH CS4.
View 1 Replies
Aug 2, 2010
i have an mp3 player that works well but when i click on the loader bar, plays from that clicked part, time is also updated, but the scrubber is way to far from the that clicked part of the loader.how can i make the scrubber points exaclty to part when a user seek from the loader bar?
View 6 Replies
Feb 14, 2011
I'm making a working scrubber on a video, but having problems. The scrub itself it starting out in the middle of the loadbar. I've looked everywhere, trying to find out what is wrong with it. Here is the code and link to my .fla [URL]
[Code]...
View 1 Replies
Jun 8, 2007
I am playing flv files on a site. The way I am bring them is via the import video from the library (not using flv component). I am loading the videos via using netStream. So far so good. Everything works fine. I want to be able to scrub through the video by clicking and dragging left or right on the video itself. I plan to make the mouse cursor turn into a symbol that has a left and right arrow when you roll over the video hence letting you know that you can click and drag left or right to forward or rewind through the video. IS this possible? If so, how can I accomplish this?
View 5 Replies