ActionScript 3.0 :: Video Player - Play Button And If Drag & Drop The Scrubber Of Progress - Bar
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
Similar Posts:
Jun 7, 2010
I would like to drag and drop multiple objects and on collision activate/play a video clip.
View 3 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
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
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
Nov 8, 2010
I just updated to CS5 - I'm working on a custom video player. It works fine embedded in a web page both locally and on the network. It works fine in the debug player. However, when I test it in the authoring player I get a NetStream.Play.StreamNotFound error and no video. I have tried setting the Local Playback Security publish settings to both local and network - doesn't find the video either way.
It used to run fine in CS4 in the authoring environment.
View 1 Replies
Jun 6, 2009
Does anyone know how can I make a progress bar with drag back and forward function?
View 2 Replies
Feb 2, 2012
Is there a way to allow a user to move playhead to any point on the progress bar (including much ahead of the loaded portion of the movie) and resume play from there? Presently a user can skip ahead only as far as the download happened.
Just in case there is no conflict with my set up, here is the code I have:
[Code]...
View 2 Replies
Nov 4, 2009
I'm trying to create a record player using drag and drop to play MP3s, like this one... [URL] so that the needle 'drops' onto a different ridge of the record. (single item - multiple targets) I've created a prototype which plays the mp3 on the first 'drop', but if i try and replay the song, i have to drag it elsewhere then re-drop it into the ridge again.
View 0 Replies
May 29, 2009
I need to be able to drag a selection of buttons with sounds into any 3 boxes (working fine) and then have a play button that plays the three boxes in order depending upon the sound that is in them.
For more clarity;
- a button when pressed plays a sound (works)
- a button when dragged can be dropped in a targetclip (works)
- a button can be dragged out of targetclip (works)
- the target clip needs to know which button is in/on it
- a new "play button" plays the current sounds in the targetclip
View 1 Replies
Jun 13, 2010
Get away from using flashs skin and use my own play and stop buttons progress bar.Be able to use an autoplay within the script and not use the parameters autoplay. using which is working fine. I just want to be able to have more control by being able to write code for the above activities.
package {
import flash.display.Sprite;
import flash.events.Event;
[code].....
View 1 Replies
Jan 24, 2011
I am working in a small web applications. this web applications let us to drag and drop the text and image from html page inside the flash player. when I tried to google the scenario I came to know about Drag and drop in AIR. but it is also specified that it will be only used in AIR and not in player is there any other way to work this out.
View 3 Replies
Sep 25, 2006
I have a project that is going to require some drag and drop scripts. That part I can figure out, but thats not the hard part. I am going to have 6 movies that will be able to be put in a sequence in any order the user wants, again, this part is not hard.
Where it gets tricky is we need to be able to basically hit a play button that only works once all the clips are in the sequence area, then have the videos play in the order that they are currently in, no matter what the sequence is. The user has to be able to put the videos in any order, and have the sequence of video's play in that order, there is where i get lost. I haven't starting writing this yet as I want to see if it's something i can find enough info about first to even try.
I am somewhat versed in actionscript, but would still consider myself a beginner. Again, I can get the drag and drop movements, I will need help making the play button only active when all the clips are in the sequence, and making the movies (which will probably be movieClips) play in the given order that are in.
View 9 Replies
Apr 18, 2011
I need to play preview video first, before starts play any other video. I am using jw player
View 1 Replies
Mar 26, 2004
1. i am trying to drag and drop movie clips with a short video clips in it(inside movie cilp), on to another square target "tv" with buttons play stop etc.
2. on this square "tv" i want to be able to view the clip i just drag to the "tv" to (manipulate the clip with play stop on so on) and the same thing with the other clips
3. after that i want to drag the movie clips or another movie clip of the same to a time line with other movie clips and be able to play the time line with the editing movie clips as a new entire editable video clip
View 1 Replies
Aug 3, 2010
I have two mp4 video files on webserver, i wanted to play them in flash player(flv player) on my asp.net page, but i couldn't be able to play them, i also tried to play them in quick time player the same prob occured. but i waz giving the accurate path, there were no spaces in mp4 file names etc. Does it need to have mp4 player(or codec etc) installed on webserver?
I have also some wmv files on that server , and i am playing perfectly using silver light player, and media player object on my website.
View 1 Replies
Jul 9, 2009
Can you drag & drop a button? I keep getting the error message: Property startDrag not found on flash.display.Stage and there is no default value.
View 2 Replies
Mar 8, 2011
i am making a drag and drop jukebox that will play an xml playlist when an icon is dropped onto it's target.i have one xml playlist working, but i need to make a button that will reset all the movie clips to their original position when a playlist has been played.
View 3 Replies
May 27, 2010
I am working on making a drag and drop activity. In Flash CS4 using ActionScript 3.0. It is essentially functional, but I would like to add a reset button to return all objects to their original positions.[code]...
View 1 Replies
Sep 18, 2009
the player uses a VideoDisplay and i set the source like videoDisplay.source = "sourceStringURL"
and the vid doesn't play until it's fully loaded
View 1 Replies
Jun 17, 2009
I've designed a drag and drop game and I would like to add a button that resets both the draggable objects and the counter so that the game starts fresh and can be replayed.
Also, I would like the button to appear after all the draggable objects have been placed on their corresponding targets.
Here's a link to the FLA:
[URL]
Below is the AS2 scripting:
[Code]....
View 3 Replies
Feb 29, 2012
I am working on a drag and drop with a check answers button I am having trouble with comparing my arrays at the end my uanswers variable will only have one value for some reason, I can't work it out, i am using the same code as the other array?
Code:
ans1.ans1text.text="beans";
ans2.ans1text.text="chicken";
ans3.ans1text.text="rice";
[Code].....
View 2 Replies
Jun 17, 2009
I've designed a drag and drop game and I would like to add a button that resets both the draggable objects and the counter so that the game starts fresh and can be replayed.Also, I would like the button to appear after all the draggable objects have been placed on their corresponding targets.Here's a link to the FLA:Below is the AS2 scripting:
// Drag and Drop
// Original by Alex Fish. Modified by Stewart McCoy.
var allCorrect = 0;
[code].....
View 1 Replies
Jan 18, 2010
I was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.
View 2 Replies
Jun 10, 2011
I want to play smooth streaming video from IIS using the flash video player like e.g. jw flash player instead of silverlight player?Which video format should I use in this case? Can flash then play e.g a video via smooth streming encoded with microsoft encoder?Do you know some alternative video players, that combines flash and silverlight functionality (selected per java script) to use with flash and silverlight?
View 1 Replies
Feb 18, 2009
I have xml video player. In the xml playlists i can different categories. Which video category i want to play i chose that from the drop down menu. Is there a way to somehow get the code so instead of dropdown menu in playlist for the playlist categories i would like to have two separate buttons for categories insted of drop down menu?
View 1 Replies
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
Sep 3, 2010
I've got a movie clip that I want to be able to drag and drop on stage, I've added this code to do this:
correct1_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp1);
correct1_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt1);
function pickUp1(event:MouseEvent):void {
[Code]....
But the button still does what its supposed to do...but I fear I shouldn't have these errors coming up anyway as (knowing me) I'll run into trouble later on because of it... I would of thought as long as the button is within the movie clip there wouldn't be a problem dragging it about and such...
View 3 Replies
Dec 5, 2011
I'm new to CS5 and AS3, I'm creating an educational game for a project and have used the code snippets (with minor tweeking) to create a drag and drop question where the user has to drag a shape to the right amount of corners. (The game is for 4-7 year olds)I've got all of the drag and drop to work, however I am struggling with a way to use a submit button to lead the user to a seperate page (frame) that will give them feedback.
View 5 Replies