Video Controls »
I've searched and not been able to find anything about embedded Video Controls? I've seen a site out there that has some that mimic quicktimes controls in Flash but am looking for an example/tutorial of the Play Pause « » button scripts. Any leads?
Ultrashock Forums > Flash > ActionScript
Posted on: 2003-09-05
View Complete Forum Thread with Replies
Sponsored Links:
Video Controls For Embedded Video
I recently put together a flv for a client and had it progressevly downloading. Which worked well, but he now wants it as an exe so i have embedded the video along the timeline, but he still wants to be able to control it.
So can somebody point me to some decent looking controllers and some info on how to attach them to the video on the timeline.
View Replies !
View Related
Video Controls
Check this site out
idea
On the video stuff as well as play/pause etc etc, there's a nice function where you can drag the progress bar back and forward.
Anyone know of a template available for this, or how its done?
View Replies !
View Related
Video Controls
I am trying to play videos using the "progresive download" feature in flash. I am using the provided components and everything works great. I would like to be able to customize the component and can't seem to figure out how to do that. Also, I have several different clips and I would like to be able to use the same player but I don't see how to do that since I have to put in the specific url to the video through the component inspector.
So here are my questions:
1. how can i customize the componenet?
2. is there a set of comands that i can use to create my own player? if not, how can i manipulate the code of the components?
Thanks.
View Replies !
View Related
FlV Video Controls
I am loading an flv file into my flash stage not embedding the video. Can someone give an idea or point me in the direction for creating video controls, or possibly a video component like the one that ships with MX 2004.
View Replies !
View Related
Swf Video Controls
I have a swf video file that I put on a page on my website. I was wondering how I would assign play and stop buttons to it, instead of having the movie autoplay and loop.
I am a newbie, so sorry if this is obvious.
View Replies !
View Related
Video Controls
Hey guys,
here's what I want to do...
I have a drawing of a TV and a VCR I made in Flash and I want my videos to play on the TV. I want the controls on the TV and the VCR to control the videos entirely. I haven't started anything yet except for the drawing and importing the videos. I was wondering if anyone knew how to make buttons/MCs control the following actions:
Timeline control:
Fast Forward, Rewind, Pause, Play
Picture control:
Vertical and horizontal, Color, Tint, Brightness, tracking or clarity
Thanks everyone!
View Replies !
View Related
Video Controls
Hi everyone,
I was able to get almost everything done using the gotoandlearn tutorials on video controls but am stumped at one part. The rewind and play buttons work fine while the video is playing but not after it has stopped. I'd like to insert a little button on top of where the video is that starts the video over. Any ideas what I could add to the following?:
ifFrameLoaded (_totalframes) {
stopAllSounds();
}
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("boogiewoogie.flv");
rewindButton.onRelease = function() {
ns.seek(0);
}
playButton.onRelease = function() {
ns.pause();
}
View Replies !
View Related
VIDEO Controls
HEllo
I followed Lee's tuturail on Lynda.com for FLASH VIDEO.
I dropped in my FLXV file and used the conponants controls for the video.
It worked great...except when I hit the home button and then hit the link button to go back to the video, it looks like it loaded another scrubber bar.
It does this each time...also, the scrubber contriol triangle appears on my homepage...?
any ideas!!?
View Replies !
View Related
Video Controls In Flash
hi,
I need help in creatin video controls in flash.
I've been working on creating a video control for flash swf movies that allows stop, play, rewind and forward.
I manage to make the stop, play and rewind function werks but not for the forward.
How do i create a forward button that loads other swf movies?
I used this script for Stop the actionscript is :
on release{
_parent._parent.myVideo.stop();
playing=1;
stop();
}
Play Movie
on release{
_parent._parent.myVideo.play();
playing=0;
stop();
}
View Replies !
View Related
Why Can't I See The Video Component Controls?
I am only using Flash MX 6, so I hope it is ok, but I am having a major problem.
First I need a video component that works, hopefully there is a few one that is floating around out there.
I have a QT.mov, I have converted it to flash and I drop a video component on it (surprisingly, it looks like the QT controls). I test the movie, it works, but when I use the swf in Dreamweaver on my page, the controls are no where to be seen. I can't see them, therefore they are useless to me!!
Has anyone else had this problem? How can I resolve it? Thanks in advance.
View Replies !
View Related
Drag Mc With Video And Allow Vid Controls
Hi All
I am working on a info box mc it will have some text and video. It should be dragable. but I do want the video controls to work. I am using beginDrag function from http://proto.layer51.com/d.aspx?f=845 as there are multiple things dragging. I have
infoBox.onMouseDown = function() {
beginDrag(infoBox, false);
}
so that works on pressing the info box it drags. How ever you really cant use the video scroller as when you try to drag it it also drags the movie.
the marines site does pretty much what I want.
http://www.marines.com/page/usmc.jsp?flashRedirect=true
if you click on the navigation with the black lady with a cap and roll over the top left orange square that is what I want you can drag the info box but not when your scrolling the video forward. I have tried doing endDrag() when mouse is of the area but it creates problems. Any help would be great.
View Replies !
View Related
Need To Add Video Controls To A Swf File.
My client wanted a little presentation created, so I built it all out in a single timeline to run for 45 seconds with a voiceover audio track cued to certain events in the video.
Now my client has told me they need video controls added- play/pause and mute.
How can I do this easily? Is there a way to convert my swf (or output my fla file) somehow as an FLV, or is there an easier way to do this. Remember, the audio and video need to be able to start up again syncronized if the play/pause button is used.
Appreciate any help someone can give.
Thanks!!
View Replies !
View Related
[F8] Movie Controls (but Not For Video)
Hi there,
I'm hoping that someone might be able to offer me a quick and painless solution. I have just one SWF, a slideshow of sorts, which is quite long and kinda boring. Hence I need to incorporate controls so the user can skip forward and back, stop pause etc - all the usual controls, much like that which is available for FLV's. Could someone advise what would be the easiest way to implement for my situation ? I'm not strong coder and am up against a deadline in a few hours.
I have scanned the forums here but there wasn't a solution that seemed to fit.
I'd be very very grateful for any assistance.
Thanks in advance.
Q.
View Replies !
View Related
Actionscript To Video Controls
Hi there,
I have been creating some video files inside of iMovie saved as a QuickTime, they work fine as a quicktime .mov, but when used in Flash, the sound doesn't play, it is only the video. This is in Flash 2004 mx and flash 8. I have tried saved various files, such as .mov, mpeg, and wmv into flash, no joy. I have even tried the video on a pc and mac, the sound doesn't work in Flash.
I have imported the sound and created the embedded movie to a movie clip.
My question is can you apply actionscript to the play and pause to control a movie clip as you would an embedded video?
If anyone knows I would be very grateful,
Thanks.
View Replies !
View Related
Video Controls And Cues
I have a flash swf that calls flv files using a media play component and cues for graphics. I have the video controls including a seek bar that allows the user to back up, but the cues don't work properly and sometimes not at all if they back up. Is there a way to control the cues so they work even if the user backs up?
I'm using Flash8 but the earlier component to handle cues. The graphics are in a movie clip in the swf.
Is there a way to only allow the user to back up a set number of frames?
Any suggestions will be appreciated.
View Replies !
View Related
Flash Video Controls
I'm working on a project and I need a little help.
It's a little flash animation to go along with a video. I've been embedding the external video just to synch up the animation and the video, but I know that embedding the video won't work for the final product.
I want to use my own buttons to control the entire swf. I'm not sure how to edit the default button skins that load with the progressive video, and I don't know if they would also control the animation that I'm creating in Flash.
Please help!
View Replies !
View Related
Video Controls Not Working.
Hi all,
I have a bit of a problem and I can't seem to find any solutions. I am pretty new at flash.
I'm making this magazine using page-flip. On one of the pages there is a little movie playing, but at the moment it starts playing a few pages before you reach the page (page-flip caching need to be a few pages before...otherwise people need to wait on every page). and it won't stop playing when you close the page.
Like I said I'm very new to this.
What I have at the moment on that page is a swf file.
actionscript:
function onOpen(){
book.flipOnClickProp = false;
}
function onClose(){
//
book.flipOnClickProp = true;
}
lo = {canPlay: false, videoLoaded: false, page: this};
lo.progress = function(evt){
if(evt.target.bytesTotal > 0 && evt.target.bytesLoaded >= evt.target.bytesTotal){
this.videoLoaded = true;
if( this.canPlay || this.page.visible ){
this.canPlay = true;
evt.target.play();
text_mc._visible = false;
}
}
}
lo.complete = function(evt){
if( this.canPlay ){
evt.target.stop();
evt.target.play();
}
}
media.addEventListener("progress", lo);
media.addEventListener("complete", lo);
function onOpen(){
lo.canPlay = true;
if(lo.videoLoaded) {
media.play();
text_mc._visible = true;
}
}
function onClose(){
lo.canPlay = true;
if(lo.videoLoaded) {
media.stop();
text_mc._visible = true;
}
}
View Replies !
View Related
Video Controls Dissappear When Swf Is Put On Web
I've got a simple SWF file that points to an flv on our website. When I test the file on my machine it plays fine, with the controls underneath. When I upload the swf to our website and play it from there the controls disappear.
I've even tried publishing an html page that only has the SWF file on it and uploading that. Again, it plays fine when I open the html file from my machine, but as soon as it's on the website and I navigate to it, no controls. The video plays fine, but I would really like the controls to be there.
View Replies !
View Related
Flash Video Controls
Hi there
Is there an easy way to set up standard video controls when importing a video file to Flash 8?
Is there a video format that will allow this to happen or do the controls need to be created in order to play, pause and stop the video?
Thanks
Losse
View Replies !
View Related
FLV, NetStream And Video Controls
hello there, i hope anyone can find a solve to my problem
i have a movie in flv format. and i use netconnection and netstream commands to dispaly it in my movie from the hard disk.
the problemis that i can't control some behaviors of my FLV movie:
1- i want to make a stop, forward and backward buttons. i already done with the pause button.
2- i want to make a seek bar for my movie
3- i want to display the total time of the movie and the time of the playhead.
4-on running my application i want the movie to be stopped and the user play it with play button.
i hope that anyone can solve my problem, or forward useful links. thnx
View Replies !
View Related
Stop And Play Controls For Video
hi ya'll,
i'm kind of a copy and paste actionscripter. i don't usually understand exactly what i'm doing!
Anyways, is there a simple way to make a video clip, which is placed into an fla and embedded into a swf, play and stop?
thanks!
tara
View Replies !
View Related
Custom Controls For Embeded Video
Hi All
I have a movie I need to have a video embeded. No external flv files. I am trying to figure the best way to do this and have video controls. the video can be in a mc. I would like cusom controls but cant seem to find any functions for that sort of thing. I have not been able to make the component video controls work with imported embeded video so I think I have to write my own. Any help would be great.
thanx
dave
View Replies !
View Related
[F8] Video Controls For Normal SWF File
I've been racking the internet for this and can't find it anywhere..
I've created a flash movie - just a normal fla - not an flv movie
It's just text and audio and some shapes promoting a website
I'm trying to add player controls to it (i.e slider and play stop etc) but all i can find anywhere is preset playback controls for flv files. (this is just an swf/fla).
Even the flash 8 mediaplayback i think is just for flv movies not swf.
I found this on flashkit looks just the thing but couldn't find any instructions on how to get it to work (im a photoshop old-timer - flash noob):
http://www.flashkit.com/movies/launc...426&bg=#ffffff
Any Idea's?
Thanks
View Replies !
View Related
[F8] Custom Video Controls Question
Hi, I am trying to create a flash video with custom video controls. However the problem that I'm having is that when the movie ends, if you press the "play" button again nothing happens.
What I need to have happen is once the movie has played and the play button is pressed, the movie restarts from the beginning.
Can anyone advise me on how to do this?
Here is my code as it stands:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play ("Spot_4_1.flv");
rewindButton.onRelease = function () {
ns.seek(0);
}
playButton.onRelease = function () {
ns.pause();
}
var videoInterval = setInterval (videoStatus, 100);
var amountLoaded:Number;
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 236.7;
}
View Replies !
View Related
HOWTO: Little Video Player W/ Controls?
Hey,
Within my movie, I have these little buttons that play my videos which are in .FLV format.
I want them to popup once I click the button with their own little player ala youtube (just with the basic controls play/stop/etc).
How do I do that and where can I get one of those?
Thanks in advance!
View Replies !
View Related
Autohide Flash Video Controls
Is there a way to auto hide the Flash video controls so that when the player starts, the controls are hidden until rolling over of the movie? Basically I want the exact opposite of what it does now which is it shows the controls and only hides them once you rollover the video.
Thanks in advance...
View Replies !
View Related
Video Player- Close, But Controls Don't
Flash MX 2004/Professional, using .flv's
So i'm building this "Video Jukebox" with the typical controls- scrubber, play/pause, rw, etc. What I'm trying to achieve is this:
onRollover theVariable = the.swf.
OnRelease load that movie into the player.
Then the controls kick in and you can scrub through that movie. But the controls don't control...
I've come to the conclusion that it's because when the variable is plugged into "Variable._currentframe" it comes out as "the.swf._currentframe", and that just aint right, right? I'm thinking that i need to give "the.swf" (the name of whatever movie I load) an instance name, which would then plug into the formula correctly. Can someone advise me how to do that, or offer a better solution if that's the wrong approach. It will save my sanity, if not my life. I'll be up on the ledge of a tall building waiting for a reply.
View Replies !
View Related
Video Has Controls Locally, Not Over Internet
Hello,
I'm using Flash CS3.
I used the Import video... wizard to import a QT movie and I used one of those template controls for playback control and published using the default settings. I have an .HTML, .SWF, .FLV and a AC_RunActiveContent.js files. When I launch the .HTML file locally on my computer, I get the movie with the controls in my browser (Safari and Firefox Mac). After uploading all the files to my server, when I click on the .HTML, I only get the video and no controls.
Here is the .HTML:
http://www.swproductions.com/clients/KLA-Tencor/KTC-Chinese-Flash.html
I searched this forum for someone with this issue and didn't find any existing thread. I also looked in the manual and didn't find a solution.
Thank you for any tips or help.
Scot
View Replies !
View Related
Converting Video To Flash With Controls
I want to take video from a DVD and turn it into a Flash movie so I can use
it on a web page. I would like it to have the controls for playing and
pausing. What would be the easiest way to do this? Is there certain software
I should be looking for?
Thanks
Debbie
View Replies !
View Related
Embedded Video Playback Controls
Exported a quicktime as a .flv video - used the "file ... import ... import video" menu choice. Uploaded everything & it appears in the site fine - starts playback - but - regardless of which skin I choose for the playback controls from the drop down menu, the playback controls won't appear (skin autohide is already set to "false").
Don't know if it's connected to this or not, but the video also plays about 1/3 of the way through, then freezes. Very consistent - does this on multiple browsers, on both PC & Mac: no playback controls, video freezes 1/3 of the way through.
Ideas...?
View Replies !
View Related
Controlling Button From Video Controls
I have made a flash video with a controller, I also made a button to appear on the first frame to help users with playing the video.
The first part which was to have the button display, and then on click it dissapears and video plays is fine, i got that as below:
PlayButton.onRelease = function() {
VideoScreen.play();
this._visible = false;
};
var myListener = new Object();
myListener.complete = function(eventObject) {
PlayButton._visible = true;
};
VideoScreen.addEventListener("complete", myListener);
And as you can see when the video is complete the button appears again.
But when i use the play button on the video controls I cant get the button to dissapear, and also when i click stop and the video returns to the start the button needs to appear again.
Can anybody help with this
Lee
View Replies !
View Related
Video Controls For Multiple Videos
I have managed to work out how to load various movies into a video container depending on what link is selected. Now, I would like to add a video controller at the top that will control whichever video has been selected to play. I would like to have a pause, play, rewind, fast forward, stop button, and progress bar.
Here is an example of the code that I am using to play the movies in the container:
on (release) {
//load Movie Behavior
if(this.demo == Number(this.demo)){
loadMovieNum("demo.swf",this.demo);
this.demo
View Replies !
View Related
Question: Quicktime Video Controls
On this site: http://www.essenceoflifevideo.com/memorial/index.html they have a streaming video that is in what looks to be a quicktime but is actually Flash. I was wondering if there is some built in type of way to get the quicktime controls in there like this or if they just went in and coded this all from scratch. I have no problem coding it, but I just want to know if I'm missing out on something that may save me the time. Thanks much! Cheers
View Replies !
View Related
Streaming Flash Video Controls
I want to have the video controls (eg. play, stop, pause...) for a Flash file that I'm going to stream from my site...what's the easiest way to obtain the controls? what is the code to do that? I have it for RealPlayer files, but not for Flash...thanks!
View Replies !
View Related
Custom Video Controls Question
Hi, I am trying to create a flash video with custom video controls. However the problem that I'm having is that when the movie ends, if you press the "play" button again nothing happens.
What I need to have happen is once the movie has played and the play button is pressed, the movie restarts from the beginning.
Can anyone advise me on how to do this? (I got the original code from gotoandlearn.com)
Here is my code as it stands:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play ("Spot_4_1.flv");
rewindButton.onRelease = function () {
ns.seek(0);
}
playButton.onRelease = function () {
ns.pause();
}
var videoInterval = setInterval (videoStatus, 100);
var amountLoaded:Number;
function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 236.7;
}
View Replies !
View Related
Help With Flash 8 Video Playback Controls
Hello,
I have built a video player in Flash 8, and it shows the loading progress, and the play progress, but I can't get it to set the video to a specific point when you drag the progress dot.
For example, on YouTube, you can click the circle button and drag it to where you want to be in the movie.
I cannot seem to find any Flash tutorials that have good video player .flas, and I can't seem to code that part myself. Can someone please assist me with this?
Here is the player I am working with:
http://www.monstergarage.com/home.php
I have made it so you can now drag the progress dot, but can't make it control the movie.
View Replies !
View Related
Fullscreen Video But Not Zoom Controls
I am creating a full screen FLV player and I am using the
Stage["fullScreenSourceRect"] = new Rectangle();
method. The problem is, when I go to fullscreen my video controls are zoomed in as well making them a bit pixelated. I have seen some players like the one on
http://www.msnbc.msn.com/
where they achieve full screen video and still keep the controls the same size..any idea how to do that??
View Replies !
View Related
Question: Quicktime Video Controls
On this site: http://www.essenceoflifevideo.com/memorial/index.html they have a streaming video that is in what looks to be a quicktime but is actually Flash. I was wondering if there is some built in type of way to get the quicktime controls in there like this or if they just went in and coded this all from scratch. I have no problem coding it, but I just want to know if I'm missing out on something that may save me the time. Thanks much! Cheers
View Replies !
View Related
Question: Quicktime Video Controls
On this site: http://www.essenceoflifevideo.com/memorial/index.html they have a streaming video that is in what looks to be a quicktime but is actually Flash. I was wondering if there is some built in type of way to get the quicktime controls in there like this or if they just went in and coded this all from scratch. I have no problem coding it, but I just want to know if I'm missing out on something that may save me the time. Thanks much! Cheers
View Replies !
View Related
Streaming Video: Custom Controls?
I currently have streaming video on my site in .flv format. I am using the built in video controls.
I was wondering if there is an easy way to build custom controls that match my site.
Like:
Play/Pause
Progress bar
Time taken/remaining
etc
http://www.2xdvisual.com/TM670/interface/index.html
Click on "burntout productions"
Any help is welcome
Cheers
View Replies !
View Related
Video Controls: Draggable Playhead
i have been attempting to build on of these for a while now. The final part i can't quite figure out is how to turn the slider into draggable playhead for only area that is loaded.
i have a strange slider that has some gravity...it's a old josh davis thang
which i want to attach.
i have a two frame clip.(right now stuck at _root although i will retarget later to make it easier to reuse)
red is the empty movie clip i'm loading .swf into
frame 1 is:
ActionScript Code:
// set up variablles//
frames = _root.red._totalframes;
total = _root.red.getBytesTotal();
loaded = _root.red.getBytesLoaded();
read = _root.red._currentframe;
// / calculate percentage loaded and
// / represent it in a progress bar
percentTotal = int(read/frames*100);
percentLoaded = int(loaded/total*100);
_root.loadingbar._xscale = percentLoaded;
_root.scrollbar_mc._x = ((percentTotal*_root.scrollbarGutter_mc._width)+_root.scrollbar_mc._x);
//attach playhead to _current frame
//?????
_root.scrollbar_mc._x = ((percentTotal*_root.scrollbarGutter_mc._width)+_root.scrollbar_mc._x);
frame 2
gotoAndPlay(1);
then there's the slider code
ActionScript Code:
frame1
// set up content_mc info
contentRight = _root.content_mc._x;
contentLeft = 798-_root.content_mc._width;
// set up gutter info
gutterLeft = _root.scrollbarGutter_mc._x+1;
gutterRight = ((_root.scrollbarGutter_mc._x+_root.scrollbarGutter_mc._width)-_root.currFrame - this._width)-1;
// don't use the hand icon
this.useHandCursor = false;
// handle press event
this.onPress = function() {
this.startDrag(false, gutterLeft, this._y, gutterRight, this._y);
dragging = true;
this.onMouseMove = function() {
updateAfterEvent();
};
};
// handle release event ..does all the physics for the gravity effect
this.onRelease = this.onReleaseOutside=function () { this.onMouseMove = undefined;this.stopDrag();dragging = false;xSpeed = (newxpos-oldxpos)*RATIO;};
// set initial variables
FRICTION = .9;
RATIO = .5;
dragging = false;
// handle onEnterFrame event
this.onEnterFrame = function() {
if (!dragging) {
_root.line_under_mc.button1 = 1;
oldxpos = this._x;
newxpos = oldxpos+xSpeed;
xSpeed *= FRICTION;
if (newxpos>gutterRight || newxpos<gutterLeft) {
xSpeed *= -FRICTION;
newxpos = oldxpos;
}
this._x = newxpos;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
} else {
oldxpos = newxpos;
newxpos = this._x;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
}
};
ignoring the fancy slider,
i know this should be a relatively simple job, i'm just not sure how to target the slider with the movieloaded _currentframe while making it stay in its gutter.
can zip this to make it more understandable if there are any takers?
j
View Replies !
View Related
Lee's Accoridon Video, Player Controls....
I followed Lee's example on the Accordion Video. I wanted to make controls for it. I used the Control Player from the Video Basics, however, it only works on the first clip. If you click on a different clip, controls don't respond. How do I do this?
Thanks
Code...Code:
_global.style.setStyle("themeColor","haloBlue");
var s:Sound = new Sound();
s.attachSound("click");
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var ns2:NetStream = new NetStream(nc);
var ns3:NetStream = new NetStream(nc);
var ns4:NetStream = new NetStream(nc);
var ns5:NetStream = new NetStream(nc);
var child1 = acc.createChild("vid","Title1",{label:"Title1",icon:"vidIcon"});
child1.flv = "";
child1.nets = ns;
var child2 = acc.createChild("vid","Title2",{label:"Title2",icon:"vidIcon"});
child2.flv = "";
child2.v.attachVideo(ns2);
child2.nets = ns2;
var child3 = acc.createChild("vid","Title3",{label:"Title3",icon:"vidIcon"});
child3.flv = "";
child3.v.attachVideo(ns3);
child3.nets = ns3;
var child4 = acc.createChild("vid","Title4",{label:"Title4",icon:"vidIcon"});
child4.flv = "";
child4.v.attachVideo(ns4);
child4.nets = ns4;
var child5 = acc.createChild("vid","Title5",{label:"Title5",icon:"vidIcon"});
child5.flv = "";
child5.v.attachVideo(ns5);
child5.nets = ns5;
child1.v.attachVideo(ns);
ns.play(child1.flv);
var whoIsOn = child1;
var accList = new Object();
accList.change = function() {
whoIsOn.nets.close();
whoIsOn = acc.getChildAt(acc.selectedIndex);
whoIsOn.nets.play(whoIsOn.flv);{
s.start();
}
acc.addEventListener("change",accList);
playButton.onRelease = function() {
ns.pause();
}
rewindButton.onRelease = function() {
ns.seek(0);
}
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 * 208.9;
loader.scrub._x = ns.time / duration * 208.9;
}
var scrubInterval;
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,208,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/208)*duration));
}
View Replies !
View Related
Problems With Adding Controls To Video
Hollo everyone.
I am having problems with the add a pause and rewind button to our video. Can someone please give me a hand with my code? I am able to get my video to play, but I am unable to make my controls work right.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attach.Video(ns);
ns.play("video_test.flv");
rewindbutton.onRelease = function(){
ns.seek(0);
}
playbutton.onRelease = function(){
ns.pause();
}
View Replies !
View Related
Video Player Controls Stop Working
Hi there. I'm creating a website in Flash CS3. The FLV video in the center of the page utilizes one of the stock video control panels in the video encoding process (SkinUnderPlayStopSeekMuteVol.swf) . Upon testing the movie, both in Flash and uploaded on my server, the controls work fine for about 10 seconds then seize up and stop being functional. The page is simple as can be. 1 frame long, a couple pieces of text, a static background and the FLV in the middle. Any ideas on why the control panel freezes up?
View Replies !
View Related
Flash Video Play Does NOT Display Controls
I am using Flash Pro 8 - putting FLV files in SWF files using Flash Pro 8 and then "publishing" to Html and SWF to a location on my hard drive.
When I display the webpage from my Hard Drive from where ever on my hard drive I initially published to from Flash 8 Pro - everything works fine - videos play and video control bar shows and works.
When I publish this website to web server the video displays and plays but NO Video Controller Bar (at bottom of the video) shows at all.
Symptom: when I make an Html, SWF and FLA file into a folder on my hard drive and display them in the browser the video control bar shows. When I copy those three files into the hard drive website in FrontPage, the video shows but the video control bar does not.
So, I re-made the Html, SWF, and FLA files and put them directly into the FrontPage website (on my hard drive) then everything works fine when I use broswer (IE 6 or Firefox). z
But, when I publish the hard drive website to the remote website hosting company, the video control bar disappears - everything else works fine (video shows OK just no video controller bar.)
My guess is that the SWF file has a non-relative URL reference concerning the video control bar and when the three files (Html, SWF and FLA) are moved to new location then that non-relative address rears its head.
I should NOT publish from Flash 8 Pro directly to remote webserver as it has FrontPage Extensions and does not like to talk to FTP changes to website not coming from FrontPage client.
is my guess right? What to do?????
david@skyborough.com
View Replies !
View Related
Reparenting Video Controls - Lose Handles
I've built a movie clip (vidPlayer) that has an FLVPlayback component, and a drawer clip (drawer) that holds a playPause component, volumeBar component and seekBar component. This whole clip gets passed around to different clips that show videos. Problem is that when I reparent the vidPlayer clip, it takes everything except for the seekBarHandle and volumeBarHandle. I managed to track down the handles and set variables to hold them.
When I trace the parent of the handles after reparenting vidPlayer (expecting to get "drawer"), I get null. So I then reparent the handles back into drawer, and they show up, but they are no longer attached to the components that created them and I get errors when I try to interact with them.
Any idea how I might get around this?
Thanks for any help.
View Replies !
View Related
SWF Flash - Video Controls & Stop Looping
Hello all!
I have converted a video from Quicktime to SWF (Flash). I placed it on my website and it keeps looping and has no video controls.
Here's the HTML coding for the video:
<table width="158" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><br /><br />
<td height="126" align="center" valign="middle"><script>
//<!--
AC_RunFlContentX ("src","Isokinetics.swf","quality","high","width","550","height","315","wmode" ,"transparent","autostart","false");
//-->1z
</script></td>
I would like to place video controls on the video and also stop the looping on the video. Please help.
THank you!
View Replies !
View Related
|