Tutorial About Video Control
Does anyone know a tutorial of how to build a controller for a video? I already got it into a movieclip. How can I put the play, stop, foward, reward controls (kinda windows media player)? Been trying to find a tutorial, but haven't got it.
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-22-2002, 04:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Embedded Video Object In Video Basics - Part 1 Tutorial
I am a total newbie at Flash, so please bear with me. In Lee's Video Basics - Part 1 tutorial, one of the first steps is to create a Embedded Video object in the library. Flash Professional MX 2004 is being used in the tutorial and I am using Flash Professional 8, so maybe that is the reason I'm having a problem. The tutorial shows that by clicking "New Video" in the library panel, the embedded video object is automatically added to the library. When I click "New Video", I get a Video Properties dialogue box that defaults to "Video (ActionScript-controlled)". When I check the Embedded option, the OK button becomes disabled...only Cancel and Import are enabled. Clicking the Import button gives me an open dialogue box for a *.flv file. I'm not sure what to do here. Am I supposed to select the .flv file that I am going to use? I was under the impression that the tutorial was creating a generic object that I would be able to reuse whereas selecting a .flv file would make it specific to what I'm working on now. Can someone that is using Flash Professional 8 clarify what I should do?
Thanks,
Pat
XML Video Playlist Tutorial (Video Not Showing)
hmmm, a little problem. I followed the tutorial, and when testing my movie I only get sound from the video but no picture. Playing the flv's on their own in my flv player work fine. Any Suggestions?
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(30);
ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
rewindButton.onRelease = function() {
ns.seek(0);
}
playButton.onRelease = function() {
ns.pause();
}
var videoInterval = setInterval (videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
}
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 236;
loader.scrub._x = ns.time / duration * 236;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,229,this._y);
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval (videoStatus,100);
this.stopDrag();
}
function scrubit() {
ns.seek(Math.floor((loader.scrub._x/229)*duration));
}
function pauseIt() {
ns.pause();
}
function replayIt() {
ns.seek(0);
}
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function() {
if(so.getVolume() == 100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}
mute.onRollOut = function() {
if(so.getVolume() == 100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}
mute.onRelease = function() {
if(so.getVolume() == 100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}
var vList:XML = new XML();
vList.ignoreWhite = true;
vList.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<videos.length;i++) {
videoList.addItem(videos[i].attributes.desc,videos[i].attributes.url);
}
ns.play(videoList.getItemAt(0).data);
videoList.selectedIndex = 0;
}
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
}
videoList.addEventListener("change",vidList);
vList.load("video.xml");
Sliding Bar Movie Control Tutorial ?
Hey guys,
I have experience with flash but fairly new to AS3. I've been looking for a tutorial to help me do the following but have found little.
Basically i have a .swf of a 3D model which has 40 frames.
I import this to my .fla working file and i want to create the following control.
In this diagram you see the .swf 40 frame movie, below i want to create a movie controller, whereby the movie starts off static half way through the movie, and you have the option to either drag the slider to the left or to the right. If dragged to the left i would want the movie to reverse back all the way to the first frame. If dragged to the right it would do the opposite moving the movie forward. At no time do i want the movie to play, simply create controls to view each frame of the movie at whichever point the user chooses. The purpose of this, as you can imagine being a 3D model is to rotate the model to the left or right controlled by the user.
I hope this makes sense. If anyone could please point me in the right direction (tutorial?) or can give suggestions that would be great.
cheers!
Tutorial Question About Volume Control
What's up guys?
I was working on the tutorial on Creating a Volume Control Slider and I was wondering how I can make my sound player to start when the Flash is loaded and let the user turn it off when ever he/she wants, and how I can have the volume start from the middle?
Thanks in advance
Tutorial Question About Volume Control
What's up guys?
I was working on the tutorial on Creating a Volume Control Slider and I was wondering how I can make my sound player to start when the Flash is loaded and let the user turn it off when ever he/she wants, and how I can have the volume start from the middle?
Thanks in advance
Movie Clip Control: Good Tutorial?
Hi there,
I'm a relative newbie to flash and I'm looking for a nice tutorial on how to load and move movieclips using actionscript.
What I want (a button) to do is:
- Load a movieclip (that's not on the stage at this moment, only in the library) on to the stage on a specific _x and _y position
- Make it move (animate, not just reposition) over the x-axis to a certain position and stop there
After clicking another button I want flash to:
- Pick up the movieclips position
- Make it move (again animate) from here to another position defined by the button (so I can use different buttons who will move it to different positions after clicking them)
I've been pretty overwhelmed by the amount of tutorials but I haven't found one that describes this clear enough. Maybe you guys have a nice tutorial in you favorites for this? That would be great.
Help Modifying Volume Control Slider Tutorial
I'd like to use a slider to control the volume of the background music on my flash site. I would like the background music to stream, so the user does not have to click on a play button to initiate the sound.
This tutorial would work great, if I could customize is for my needs:
http://www.kirupa.com/developer/mx/volume_slider.htm
What I change the AS to streaming:
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("sound2.mp3", true);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = "";
}
mySound.setVolume(_root.volume);
}
There are two problems...Altough it streams successfully, the mp3 stops looping and you have to drag the slider over the the right to hear it initially...
Does anyone have some simple mods to this tutorial, to let it control background music? It think it would be a hand tool for alot of ppl.
Thanks in advance.
Creating A Volume Control Slider (tutorial)
Hi There,
I followed the Kirupa tutorial about 'Creating a Volume Control Slider' which was great and worked fine, but I would like the mp3 to start playing at a moderate volume as soon as the user enters the site, at the moment you have to press play and then adjust the slider.
Thanks in advance
Control A Video...
ok... i'm new around here so i don't understand much about actionscript...
but what i would like to know is how can i import a video on my stage or library from my computer (that i know how to do).... a real video like a trailer from a movie or something and to control it - play, pause etc.
i would really apriciate it because i need it for a project i'm doing.
Video Control
hi guys
first of many post. I am Having a problem controlling an embedded video which i imported. This question is probably very simple for all you flash experts out there but i have to start somewhere. I apologise in advance. , have a video and its controlling buttons on a timeline but not the main time line. Have coded my play button as follows.
(release) {
gotoAndPlay (750);
}
Unfortunately it only makes the main timeline play head move to this frame not timeline which i want.
So my question is how do i code my button so that its controls the timeline i am in rather than the main timeline. Any feed back would be super!
bren
Video Control
Since I'm not the most eloquent person as far as writing is concerned, I'll just present my problem in list-form:
1. I have a video incorporated into my flash file.
2. I need to control this video by having it stop in certain parts (as designated by the client) and then have it play again whenever a user presses a key on their keyboard. Think of it like a presentation.
3. I can get it to stop just fine, but I run into a problem when I try to get it to play again. Flash apparently whigs out whenever I try to use:
on (keyPress ""); {
gotoAndPlay(121)
}
I know this should reasonably easy to solve, but it's completely over my head for some reason.
Thanks in advance.
Edit: Never mind, I figured it out. I can be a real muppet sometimes.
Control XML Video
Hello,
I'm looing at this tutorial that loads video in from an xml playlist.
http://www.adobe.com/devnet/flash/articles/prog_download.html
Essentially I've added a 'new video' through the library that gets its content dynamically from an xml file, how do I add controls like pause and volume to this?
Thanks!
Video Control
hi guys
first of many post. I am Having a problem controlling an embedded video which i imported. This question is probably very simple for all you flash experts out there but i have to start somewhere. I apologise in advance. , have a video and its controlling buttons on a timeline but not the main time line. Have coded my play button as follows.
(release) {
gotoAndPlay (750);
}
Unfortunately it only makes the main timeline play head move to this frame not timeline which i want.
So my question is how do i code my button so that its controls the timeline i am in rather than the main timeline. Any feed back would be super!
bren
Video Control
Since I'm not the most eloquent person as far as writing is concerned, I'll just present my problem in list-form:
1. I have a video incorporated into my flash file.
2. I need to control this video by having it stop in certain parts (as designated by the client) and then have it play again whenever a user presses a key on their keyboard. Think of it like a presentation.
3. I can get it to stop just fine, but I run into a problem when I try to get it to play again. Flash apparently whigs out whenever I try to use:
on (keyPress ""); {
gotoAndPlay(121)
}
I know this should reasonably easy to solve, but it's completely over my head for some reason.
Thanks in advance.
Edit: Never mind, I figured it out. I can be a real muppet sometimes.
Video Control
After doing Lee's video tutorials last night one of my ideas for my site is to make a single video for my FAQs where the user clicks a question and the video goes to the appropriate spot in the video and starts playing.
I think I got most of what I need to make this work (haven't tried it yet) last night using the ns.Seek function onRelease.
Assuming THAT works, the next question, is does anyone know the code for stopping, pausing or sending the video to some other location when it gets to the end of the right segment? In other words, how do I either tell the video to play for X seconds then stop...
OR
how do I tell it when it gets to X location the movie to stop?
I Need I Video Tutorial Php
I need I video tutorial php
--------------------------------------------------------------------------------
Does any one Have seen a tutorial on video
of this subject Id like to have the link thanks
Help With Video Tutorial
Great site Lee..
I am using the Video tuts and wanted to know how I can stop the movie from playing initially. I want the user to start the movie..
I am sure its some quick AS stuff but I am not good at that at all..
Thanks.
Video Tutorial Help
Hello everyone,
i'm so glad to discover this awesome site with free video tutorials... as a flash newbie, i really appreciate this kind of approach.
however, my flash knowledge is so limited that as of now i can just copy-paste code... that's why i need you guys to answer some questions for me if you can
i saw the "write on" text effect tutorial over here:
http://www.gotoandlearn.com/player.php?id=55
Ok, so I did everything he said in that tutorial and it obviously worked, but instead of just having 1 text field, i want to have multiple textfields (all with different content and different font formatting).
I tried doing it myself by creating 3 dynamic text fields, each with the instance name "textNews1", "textNews2", and "textNews3" respectively.
For the code, I added the following lines of code in the first frame:
Code:
var string_1:String = "Latest website launched.";
var string_2:String = "New products added. Look for them in our products section";
var string_3:String = "Flash compatible now. Enjoy our website in any website supporting flash.";
var stringInterval = setInterval(writeIt,70);
var count:Number = 0;
function writeIt() {
textNews1.text = string_1.substring(0,count);
count++;
if(count > string_1.length) {
clearInterval(stringInterval);
}
textNews2.text = string_2.substring(0,count);
count++;
if(count > string_2.length) {
clearInterval(stringInterval);
}
textNews3.text = string_3.substring(0,count);
count++;
if(count > string_3.length) {
clearInterval(stringInterval);
}
}
stop();
However, only textNews1 loads all of its characters, whereas textNews2 and textNews3 only load the same amount of characters as textNews1.
Why is that? and what am I doing wrong?
Thanks everyone!
Can I Control Video Volume In MX ?
Hi,
I'm wondering if anyone can help, or send me a link yo a good help source. The imbedded video doesn't have a sound channel in the timeline...Is there a way to put in a button/slider to control the video volume? What would the script be ? Thanx for your help!
How Can I Control Video Volume In MX ?
Hi,
I'm wondering if anyone can help, or send me a link to a good help source. The imbedded video doesn't have a sound channel in the timeline...Is there a way to put in a button/slider to control the video volume? What would the script be ? Thanx for your help!
Video Slider Control
Can anyone help,
i have an object which is a movieClip which i want to use as a video slider. I can get it to slide using this code
on (press) {
startDrag ("", false, left=_x, top=_y, right+ x+100, bottom=_y);
dragging = true;
}
on (release, releaseOutside) {
stopDrag ();
dragging = false;
}
however i am not sure how to set up the code to get the video to move appropriatley when i move the slider. I have been trying this code as i think it is along the right lines but can not get to work.
//1839 being the lengh
onClipEvent (load) {
segmentWidth =(100/1839);
if(dragging = true) {
gotoAndStop
(Math.ceil(Slider_button._x/segmentWidth));
}
}
does anyone have some simple code i can try.
thanks in advance
NP
Video Control Slider
Hi,
I have to do a small web project for Uni to do with interactiive art.
My idea is to put some sculptures on a turntable, video them turning round, then import them into Flash MX in line with the timeline.
That's about as far as my Flash skills go I'm afraid, but I am used to programming in lingo for Director. I want the user to be able to navigate through the frames of the digital video clip using a slider or even better just by dragging the picture - seemingly turning the sculptures around.
I am very short on time as I have four assignments to complete over Christmas so any help would be extremely gratefully received.
I am sure it is possible, just don't know how at the minute.
Please, please let me know if you can help.
Thank you,
Kieron in Stafford, England.
Flash Video Control
can anyone please point me in the right direction to add control to a flash video clip.
i want to have pause, play, and slider control.
i dont want to use the flash components, just custom buttons to control the video.
thanks!
Animation Control Like In Video
Hello!
I have a problem with this: I have an animation that is about a minute long. There are different movements, masks, all mainly done with help of mc_tween.as. But not all.
This can be an external swf or just an mc, it doesnt matter.
Now I need the controls for this mc. Play, pause, stop and a slider control like u see in movie players with which you can drag the slider to the location in the movie you want.
Is this possible to do since there is no clear progress in the animation?
Where would I begin with this?
thx for all answers!
[CS3] Pop-up Video Control Panel
I've seen on the gm corporate site a little video and it has a pop up flash control panel. I know flash has ready to insert video control skins, but I can't find one that appearers when you roll over the video.
[CS3] Control Imported Flv Video
Hello,
I have imported a flv video to my main timeline using the Progressive download method (not embedded) because the video is quite large. It only takes up one keyframe and I put a stop(); on that keyframe. I would like to know what codes that I have to put so that it will go back to the beginning of the main timeline after the video is completed. Right now it just stops where it is after playing.
thanks if anyone could help out.
Autohide Flv Video Control
Hi,
I want to hide the video control when the mouse is not over the video, like all
the other flv players, but I'm having some problem implementing it. My idea is
to create a transparent movieclip the same size as the video, and when I mouseover it call
a function to make the controls appear. Same way with the disappearing.
However, if I put this transparent mc under the control bar, when the mouse is over the bar,
it blocked the mc so the mouseover event is not triggered, and
if I put the transparent mc above the control bar, needless to say, I can't click on
my control bar anymore because it's been blocked by the mc.
Does anyone know how to solve this? Thank you
Here's my code:
Code:
package {
import flash.display.*;
import flash.system.Capabilities;
import flash.events.Event;
import flash.net.*;
import flash.media.Video;
import flash.events.MouseEvent;
import caurina.transitions.*;
public class main extends MovieClip {
var trailer:Video = new Video(480,270);
public function main():void {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
addEventListener(Event.ENTER_FRAME, enterframe)
resizeHandler(null);
rect.alpha = .8;
var conn:NetConnection = new NetConnection();
conn.connect(null);
var stream:NetStream = new NetStream(conn);
float.addChild(trailer);
trailer.attachNetStream(stream);
stream.play("trailer.flv");
var metaListener:Object = new Object();
metaListener.onMetaData = theMeta;
stream.client = metaListener;
trailer.x = 20;
trailer.y = 20;
test_mc.addEventListener(MouseEvent.ROLL_OVER, getControl);
test_mc.addEventListener(MouseEvent.ROLL_OUT, removeControl);
bar_mc.play_mc.buttonMode = true;
bar_mc.stop_mc.buttonMode = true;
}
private function resizeHandler (e:Event):void {
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
rect.width = sw;
rect.height = sh;
}
private function enterframe(e:Event):void {
float.x = stage.stageWidth/2 - float.width/2;
float.y = stage.stageHeight/2 - float.height/2;
bar_mc.x = float.x + 20;
bar_mc.y = float.y + trailer.height - 10;
test_mc.x = float.x + 20;
test_mc.y = float.y +20;
//trace(mouseY);
}
private function theMeta(data:Object):void {
var totalLength = data.duration;
}
private function getControl(e:MouseEvent):void {
Tweener.addTween(bar_mc, {alpha:1, time:1});
}
private function removeControl(e:MouseEvent):void {
Tweener.addTween(bar_mc, {alpha:0, time:1});
}
}
}
Video Control Slider
what i need to do is make a slider that will allow a user to choose a specific position in the movie. i had all kinds of trouble getting my video to convert to fla, so i just opted to embed the video into a swf that i'm loading into another movie.
anyway, i'm fine with making a bar with a slider that's constrained to look as if its attached to it, but what i can't figure out is how to make the video go along with the dragging of the slider. the video is 2609 frames long (the video starts on frame 3 of the main timeline after preloading), the path of the horizontal slider is 160px long and the initial position is x = 0. from left to right, i would like the slider to move as the video progresses, then when the user click/drags the slider, the video scans with it.
I have virtually everything converted to a movie clip (the slider handle, the track, both inside another movie clip, and the video is inside a movie clip). There are also play, pause, and stop buttons, each with basic code to perform their respective tasks:
Play:
ActionScript Code:
//tutVideo is the instance name of the MC containing the video.
on (release) {
if (this.tutVideo._currentframe == this.tutVideo._parent._totalframes) {
this.tutVideo.gotoAndPlay(1);
} else {
this.tutVideo.play();
}
}
Pause:
ActionScript Code:
on (release) {
this.tutVideo.stop();
}
Stop:
ActionScript Code:
on (release) {
this.tutVideo.gotoAndStop(1);
}
i can't think of anything else you might need to know to help me out right now......but if you need something more, or i think of something i deem helpful, i'll gladly post it. what i need is something similar to the scan bar at the bottom of something like Windows Media Player, where the user can drag the slider to a specific location in the bar and the video will go along with it. any help would be excellent!!
by the way, i searched for a while, but all i could find was examples that allow you to manually control the progress of a timeline, but these examples wouldn't play the movie clip unless the user was dragging the slider. i need mine to be able to play, then be controlled by the slider if desired by the user.
Thanks in advance!!
-James
Streaming Video Control
I'm streaming video from a local folder and I want to add REV and FF control buttons. Not sure how though, any help is appreciated. Thanks
//this the code to play the video
var nc2:NetConnection = new NetConnection();
nc2.connect(null);
var ns2:NetStream = new NetStream(nc2);
theVideo2.attachNetStream(ns2);
ns2.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
function asyncErrorHandler(event:AsyncErrorEvent):void
{
// ignore error
}
ns2.play("Airshow.flv");
Video Control Downloadsfor FLV's?
I did a pretty extensive search today trying to find video controls for FLV videos that I could download (free or fee - either way), and had no luck. I was hoping to find something more streamlined than the standard controls that come with Flash, and I have neither the skill nor the time to create my own at this point. Any links to resources would be appreciated...
thanks...
Flash Video Control Bar
Hello,
Recently I decided to use flash for a couple elements of a webpage I made for a friend. The Nav Bar and a short Video clip of her on the home page.
I quickly found out that I needed to use the swfobject.js so the user didnt have to click once to activate the nav bar so I am using that on this website.
I have 2 issues.
1. When I encoded the video in flash I selected one of the pre-packaged control bars (so the user can control basic functions). I then published an HTML and a .swf. The HTML works perfectly however when I use Dreamweaver to insert the .swf it does not carry over the control bar. I have tried pulling over the control bar .swf and placing it under the video file but a HUGE object is imported with a bunch of controls that do not work (bunch of controls = play/pause/etc).
2. Via dreamweaver it asked if I wanted to add a basic control bar, which I did and that seems to work (however I would like the one I picked in flash). The second issue is this; the user still has to click once on the video to use the controls... does anyone know what I am doing wrong on the video file?
site: http://www.joniypc.com
THANKS A MILLION!
Video Control Bar Resize
I have a video player that loads videos from an xml file into the mediaDisplay component. The videos are of varying widths and I have the component set to Respect Aspect Ratio. I need the control bar width to automatically resize depending on the width of the movie. Does anyone have any ideas on how I could do that? Thanks!
Edited: 08/15/2008 at 10:06:48 PM by fmike13
Video Control In Flash?
I'm currently creating my portfolio and in the portfolio I want an after effects section and I was wondering how I can go about creating controls for the mov's. I understand you can control the timeline with AS but I'm very inexperienced with this type of code, any help or tutorials would be appreciated . All I'm looking for is pause, play, stop, rr, ff.
PS: I'm using mx2004
Video Control Slider
Hi there!
Im trying to figure out some code & am getting a bit stuck. I am creating video controls for a movie, like the ones on quicktime or windows media. Ive got play pause stop rewind & fast forward working. I just need a bit of help with the slider so that when its dragged, it moves the playing frame of the movie.
Please help!
Thanks,
Jen :o)
Video Buffer Control
Hello, I posted this in the mx 2004 forum but no joy... im thinking it may be a script i would need?
Basically I have an flv file which I have linked to using mediaPlayback, I have checked the 'automatically play' button and uploaded to my web space.
All works great apart from the video starts playing back a bit to early and catches up with the download before it hits the end.
Is there any way I can control the auto playback to only start once say 40% off the movie is buffered? Is it possible to control this with actionscript?
Any help greatly appreciated
Steve
Video Control Buttons
Hello,
I have a .fla with a video embedded on the timeline.
I have a actions layer with a stop function in the first frame. I then have a layer for my 2 buttons (Play and Stop)....they have instance names of bplay and bstop respectively. Then I have the layer with my embedded video. The video has a instance name of "syd". My teacher then gave us the following code and told us to put it in the first frame of our buttons layer to control the buttons.
bstop.onRelease = function() {
syd.stop();
};
bplay.onRelease = function() {
syd.play();
};
I did and it doesnt work. With the stop action in the first frame of the actions layer, the video doesnt play. When I remove the stop function, the video begins to play and the buttons don't work. What I would ideally like to have is the video load without playing, giving the user the option to start or stop the video when desired. Any help will be greatly appreciated. Thank you!
Video Image Control?
is there any method to do image control of the live video?
e.g. reversing colors, or destaurate
and get pixel color ?
is there any method to access the video buffer to get the pixel color?
thanks
External Video Control
Hi
What is the best way to control an external .mov video in a flash fla file which is located in the same directory as the fla file?
I have tried converting the file into a flv file using the "progressive download from a web server" (Is the right deployment option to choose?) and inserting a FLV Playback player without a skin because I want to have the control buttons seperate from the player. But i cant figure out how to program these buttons (from the FLV Playback custom UI list) so they control the video.
Thanks
[HOW-TO] Control The Video Volume In AS3 ?
Hi All ~
Here is the code for video in AS3:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var vid:Video = new Video(320, 240);
this.addChild(vid);
vid.attachNetStream(ns);
ns.play("test.flv");
The question is ...
If I want to control the volume, how can it be done in AS3??
Thanks ~
Video Control In Flash?
I'm currently creating my portfolio and in the portfolio I want an after effects section and I was wondering how I can go about creating controls for the mov's. I understand you can control the timeline with AS but I'm very inexperienced with this type of code, any help or tutorials would be appreciated . All I'm looking for is pause, play, stop, rr, ff.
PS: I'm using mx2004
Video Control Slider
Hi there!
Im trying to figure out some code & am getting a bit stuck. I am creating video controls for a movie, like the ones on quicktime or windows media. Ive got play pause stop rewind & fast forward working. I just need a bit of help with the slider so that when its dragged, it moves the playing frame of the movie.
Please help!
Thanks,
Jen :o)
Video Buffer Control
Hello, I posted this in the mx 2004 forum but no joy... im thinking it may be a script i would need?
Basically I have an flv file which I have linked to using mediaPlayback, I have checked the 'automatically play' button and uploaded to my web space.
All works great apart from the video starts playing back a bit to early and catches up with the download before it hits the end.
Is there any way I can control the auto playback to only start once say 40% off the movie is buffered? Is it possible to control this with actionscript?
Any help greatly appreciated
Steve
Control A Video With Cursor?
Hey guys.... Hoping someone can give me an idea on how to pull this off....
Say I have a 1-2 second movie clip (wmv). I want to convert it into a swf file that is interactive with the mouse cursor. When the cursor is moved to the left, it rewinds the movie, and when cursor moves to the right, it fast forwards it.
Ideally, there'd be an easy program out there that I could just select my 2 second video file and then click publish....all the actionscript controls are already built into it.... But I realize that's probably a pipedream.
Here's a basic idea of what I'm shooting for:
http://www.alloclic.com
Problem is that program only works for jpg files. Not video.
Any ideas?
Video Volume Control
I have been playing around with embedded mpg and have used a component for play, stop, etc. and am having a hard time with controlling volume with a slider. No problem with a wav or mp3 but can't figure how to adjust volume of embedded sound within mpg. Anybody?
Embedded Video Control
I'm looking to create video controls via actionScript to control embedded video. they would be the same basic controls that are included in the MediaPlayback components. play/pause are simple but I was wondering about ff and rewind buttons and even a playhead so that the user can scrub through the video to search for specific video. If anyone knows of any tutorials or fla's out there that cover this I'd appreciate it.
Thanks, shagPun
Video Control Issues
hello!
My name is Ric I live in Melbourne, after trying to solve this on my own for hours....I gave up and found this forum.
I never used components in Flash until I realized that with a click and drag I was able to use the "video control components" by Zumak similar to Quicktime's control bar.
It worked while I was previewing inside Flash, but when I try the swf file on its own, the video control bar started to act up. the bar didn't resized to the video clip and the buttons stopped working.
I dont want to make this message too long therefore I am not going into great detail now, but if someone had a similar experience or can spot my error...please ask for any extra info that might be required ( I am simply hoping my mistake is a common one) The component is VIDEOCONTROL by Muzak v 1.3
I am a graphic designer with some Flash skills and basic Action Script experience trying to improve a school magazine on cd that I am developing entirely using Flash.
Any help, hint, tip will be greatly appreciated.
Ric
I Need A Video Controller Tutorial
I have video clips published into .swfs and now I want to import them into a new flash document and control them with the media controller component that comes with MX 2004. How do I do this? Tutorial please!
Thanks.
|