IDE :: FLV Video Scrubber - Clicking And Dragging Left Or Right
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
Similar Posts:
Sep 3, 2009
I'm tweaking the video code found here [URL] His progress bar starts at the edge of the stage. My progress bar starts at x=40 into the stage. My problem is that even though all my mcs related to the progress bar are positioned properly the scrubber mc hops to the edge of the screen when the video starts. It also acts as if the progress bar you scrub though is at the edge of the screen too. I can't figure out why it's doing this. There's nothing in the code to tell it to do as such.
[Code]...
View 6 Replies
Mar 15, 2011
I have a frame-by-frame animation. I want to be able to click and drag on the stage back and forth and traverse through the animation. I.e. I want to click and drag from left to right to make the animation go forwards and right to left to make the animation go backwards. How would I achieve this? I am making an assumption that there will be some maths involved in calculating mouse position and traversing to the correct frame, but how would I do this?
View 2 Replies
Apr 6, 2008
I have a movieclip in the centre of a cross and want to make it move only along the lines of that cross. Is this possible with startDrag or do I need more complicated method? To illustrate: If you've moved left or right, you can't move up or down and vice versa.
View 2 Replies
May 19, 2009
So far my logic seems fine for half of the experiment, however, not the other half:[URL] What I'm trying to accomplish is when a user holds down the mouse and drags it across the stage the movie clip will rotate in 3D space horizontally. That works, however, when the mouse is released the movie continues to rotate along with the mouse position. When the movie clip is clicked again then it will stop rotating, but it cannot be clicked and dragged a second time. The link above explains it the best. Also I want to make it so the movie will start to rotate when the mouse is down anywhere on the stage and not just the mc itself.
[CODE]....
View 6 Replies
Feb 2, 2005
I am using that has action frames.It is a photo album template that allows me to turn pages by clicking my mouse in the lower corner and dragging it across.If I copy frame 5 and past it as frame 8 and I change the image on frame 8 it also changes the image in frame 5.Here is the script below from the 9th frame:
View 2 Replies
Jan 26, 2011
I currently have an dragable button that is locked to only move left and right within a small bar, and want to have that button playing one sound going left, and another sound going right.
View 3 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
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
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
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
Dec 14, 2010
I have created an XML driven Video Player based on Lee Brimelow's Video TutorialI have a MC called loader which contains two MCs- a circular shaped clip called scrub which can be used to seek to particular time of the video. and anoder MC called loadbar which denotes the amount of video loaded by expanding correspondingly.Everything works fine except the video scrubber (the playhead). when the scrubber reaches the end of the movie; instead of stopping at the end of the loader MC it goes beyond it.here's the code:
Code:
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
[code]....
View 1 Replies
Jan 16, 2009
I am working with the scrub element in my custom video player. The code for this in AS2 is as follows (this is the whole of it). How the scrub portion is coded in AS3?
HTML Code:
var nc:NetConnecttion = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("vegas.flv");
[Code] .....
View 0 Replies
Jan 23, 2009
I've got nearly all of it working but the drag action of the scrubber. Seeks on MouseDown but doesn't drag. Oddly I've got this very functionality working for the audio volume scrub bar but not the playhead.
Here is the troubled portion of the code. Happy to send a src file:
Code:
// ScrubHandle Dragging Variables
var ratio_play:Number;
var playTrackBounds:Rectangle = controls.trackbar.getBounds(controls);
var playXpos:Number = playTrackBounds.x;
[Code].....
View 1 Replies
Jun 29, 2008
For some reason my scrubber won't scrub correctly while the video is loading, but once it has completed it scrubs just fine. [code]...
View 11 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 3 Replies
Feb 26, 2010
All this code works properly, however when I include the part which controls the video resize metadata the scrubber stops working... (see the section between the ">>> <<<").
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(2);
ns.onStatus = function(info) {
[Code] .....
View 2 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
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
Dec 10, 2009
I have created an animation (see attached) where the stage can be dragged from left to right to reveal hidden areas off the edge of the stage. Unfortunately I need to add buttons containing links to websites within the dragable movie symbol and I can't work out how to do it.
View 2 Replies
Dec 23, 2009
Ok so i have a video on my page which plays automatically when the user goes on the pageWhat i want to happen is when the user clicks a button away from the page, the video and the sound all stop so it can't be heard in the background.Other pages have videos on, therefore can't use stopallsounds.
View 2 Replies
Sep 26, 2010
I'm trying to do a simple video gallery but it's not working. When I preview the .swf and click on a thumbnail, the video doesn't play I just get this loading bar. No code errors come up and my flash file (.fla), .swf, and videos (.flv) are all in the same folder.
Here's my code:
stop();
btn1.addEventListener(MouseEvent.CLICK,vid1);
btn2.addEventListener(MouseEvent.CLICK,vid2);
btn3.addEventListener(MouseEvent.CLICK,vid3);
btn4.addEventListener(MouseEvent.CLICK,vid4);
[Code] .....
View 7 Replies
Oct 20, 2008
I have a button on stage names voices. When it is click the video component should play voices.flv.
Here is my code.
import fl.video.FLVPlayback;
import flash.events.MouseEvent;
voices.buttonMode = true;
voices.addEventListener(MouseEvent.CLICK, video);
function video(event:MouseEvent):void {
flvplayback.source = this.event.target + ".flv";
}
I get this when I click on the button:
Error #1010: A term is undefined and has no properties.
View 1 Replies
Jul 19, 2009
The below code is used to bring up the video initially, stop it after rendering, then restart upon clicking the video component.Unfortunately the statement "myVideo1.addEventListener(MouseEvent.CLICK,start1);" does not call function start1 upon the mouse click.
package code{
//fades in, after fade in video stops
import fl.video.*;
[code]........
View 2 Replies
Aug 5, 2009
The situation is I have a number of pages with a single movie clip on each, however once the movie is playing and you click the home or contact buttons for example, it will go to the correct page but the movies sound keep playing in the background. So I've got a code, but I just get an error sayign tanmovstop() does not have a body. I'm very new to action script so am very lost! I'll be extremely grateful. The code on the sites main buttons is as follows, with tanmov being the movie whos sound I want to stop:
[Code]....
View 1 Replies
Mar 28, 2010
I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the new menu data.So I will probably need some code that stops the video instantly, when another menu button is clicked. But how do I write it and where do I put it?
Here is my actionscript for the video file to show:
var loaderSlide:Loader = new Loader();
var monoslideshow:Object;
loaderSlide.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
addChild(loaderSlide);
[Code]...
It would be great to get a solution to this problem, otherwise my website will be kinda messy ;)
View 1 Replies
Jan 15, 2010
While it comes close the following AS appears to often stop the video when there is about a second left. You can tell because the audio is not cut off & continues to play.[code]
View 6 Replies
May 27, 2009
I am playing a FLV file with NetConnection & NetStream. Works great except each time I play the video, I lose about 8MB of RAM.I found numerous references to this, but haven't found a solution. I close the stream, close the connection, remove the child the vid is playing in, etc... This is for a kiosk's attract loop, where the video can play once a minute if left unattended... that's a lot of RAM gone in an hour.
View 2 Replies
May 8, 2008
I'm working in a xml videogallery and I'm using a video component... The problem is that when I go fullscreen the video object loads in the top-left corner of the stage (is a 800x600 movie) tough I publish my movie with 100% x 100% dimensions.
[Code]...
As you can see after the first fullscreen the stage remains in the Top Left corner. Is there any way to make the stage return to the center? I need to do it when I return from fullscreen to normal mode... or.. what can I do? I tried to put the gallery inside a MC and center it but still fails cos the video object loads in the registration point of the MC (like in the first example I've provided)...
View 4 Replies
Aug 30, 2011
I have drawn intersecting lines. The user can click on a region inside the angle formed by the two lines.When the user clicks inside the area, the small region formed by the arc between the two lines showing the angle should change. How can I do that.the region between the intersecting lines is sprite object to dispatch event listener, but the arc is shape object.
View 1 Replies