Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Flv Cue Points And SeekBar Component


Hello there - I have a quick question regarding cue points.
I am creating a file (flash CS3 using AS2) that includes an FLV video with cue points. The video is an FLVPlayback component (vs. a video object), and the cue points have been embedded in the FLV using the Flash Video Encoder.

The video is a simple video capture of a person presenting a slide show. The video does not include the slides that this person is presenting. When the video plays and the cue points are reached, I have set slides (not part of the video, just separate elements on the stage) to appear on the stage, and change as each cue point is reached. The slides display at the appropriate point in the presentation, and this seems to work well.

The issue comes in with the scrubber. I am using the SeekBar component to show progress through the video and to allow the end user to scrub through the video, if they wish. However, when they scrub, the slides do not change. Meaning, if the user moves the scrubber forward or backward, the slide does not change to match the new location of the playhead, so the slides are out of synch with the presenter in the video.

Is there a way to "read" the current cue point, based on the location of the playhead, so that the appropriate slides display at the proper scrubbed time in the movie?
Thanks for your help!




Adobe > ActionScript 1 and 2
Posted on: 10/07/2008 07:51:34 AM


View Complete Forum Thread with Replies

Sponsored Links:

Please Help Explain: Difference Btw Seekbar In A Skin And Seekbar Standalone Component
Hi,

I am confused about the follwing, can someobe please enlighten me.

I noticed that the "Seekbar" component inside any of the default skins (e.g StellOverAll.fla) is just a place holder, it has 2 layers with one layer having just an outline of a rectangle. And the SeebarProgress and the SeekbarHandle are place somewhere else inside the Skin component. However, if I select the "Seekbar" component from the component window and place it on the stage and double click to look inside, I can see 4 layers, with the SeekbarProgress component in one layer and the SeebarHandle on another layer.

So my question is the following:

1. Is the "Seekbar" component in the skin DIFFERENT than the "Seebar" component from the Component Window?

2. How does the "Seekbar" component in the skin interact with the "SeekbarProgress" and "SeekbarHandle" components in the skin, when they are OUTSIDE the "Seekbar" component?

Any answer will be greatly appreciated.

View Replies !    View Related
Diagonal SeekBar Component
I have placed a seekbar component and rotated it diagonally on the stage. The problem is that the seekbar handle no longer follows the bar when the FLV is playing. How can I script the seekbar's _y axis to follow the path of the seekbar? I have been searching for an answer for this question for a long time...any help would be greatly appreciated!

Here is an image of the situation: Image

View Replies !    View Related
SeekBar Component Handle
anyone know how to attach a command to the handle in the SeekBar component?
i've got the seekbar itself:

this.seekbar.progress_mc.onPress = function()
{
trace ("bar");
}

...but can't find the handle.
everything i've read indicates the it has a default name of "handle_mc" & that it gets generated on the root level so i tried this:

handle_mc.onPress = function()
{
trace ("handle");
}

...no luck.
i also tried placing it in a movie clip:

seekThis.handle_mc.onPress = function()
{
trace ("handle");
}

...no luck. i also tried "seekBarHandle_mc", still no good.
anyone have any ideas, i'm completely out.
thanx!





























Edited: 01/21/2008 at 02:58:44 PM by HeavyPops

View Replies !    View Related
Clickable SeekBar Component
Hi,

I am working on a project that contains an external flv file playing through the FLVPlayback component. I have also added a SeekBar component, which I am needing to be "clickable" in order to jump the playhead to that part of the video.

After much searching on forums I finally found a bit of code which I thought would work. Most of the code is functioning - the SeekBar is working with the video, and the little hand icon appears on rollover of the SeekBar. But when clicked it does nothing.

I have attached the code I am working with below. Would anyone have any ideas why this is not functioning properly?

Any suggestions would be greatly appreciated. :)

Thanks







Attach Code

//Code on the timeline
player.seekBar = myseekbar;

function clickTime(){
videoDuration = player.metadata.duration / myseekbar._width;
clickPos= videoDuration * myseekbar._xmouse;
player.seekSeconds(clickPos);
}

--------------------------------------------------------------------------------------------

//Code on the SeekBar component
on(press){
clickTime();
}

View Replies !    View Related
FLV Component Seekbar Handle
I recently reskinned the flv playback compnent but it won't let me target the handle_mc that goes along with the seek bar
I can't give it an instance name or else it throws and error in the compiler. Anyone have any ideas?

View Replies !    View Related
FLVPlayback Component Seekbar
the seekbar on my flvplayback component only works with certain video clips and not with others. do you have to have cuepoints in your movie for the seekbar to work?

thanks!

View Replies !    View Related
Using The SeekBar Component For External Video
I'm trying to attach a seekbar to control an externally loaded flv that plays in my movie. I've managed to get the play/pause toggle button to work, but can't seem to find any way of attaching a seekBar to the video. I've managed it if the flv is embedded, but can't do it if it's external. Does anyone know a way of doing this?


Basically, there are 3 top-level buttons, each of which loats a different video. This I've got working fine, as with the play/pause button, but a way of using the seekbar is eluding me, so any help would be most appreciated. Here's the code I have:


ActionScript Code:
// ---------- Button Listeners

bnt1_btn.addEventListener(MouseEvent.CLICK, btnClick);
bnt2_btn.addEventListener(MouseEvent.CLICK, btnClick);
bnt3_btn.addEventListener(MouseEvent.CLICK, btnClick);


// ---------- Video Controls

play_btn.addEventListener(MouseEvent.CLICK, togglefunction);
function togglefunction(myevent:MouseEvent):void {
    newStream.togglePause();
}

// ---------- Load Video

var myVideo:NetConnection = new NetConnection();
myVideo.connect(null);
var newStream:NetStream = new NetStream(myVideo);

var videoLoader:Video = new Video(520, 390);
stage.addChild(videoLoader);
videoLoader.attachNetStream(newStream);
videoLoader.x=350;
videoLoader.y=150;


// ---------- Load Video when clicked

function btnClick(e:Event):void {
    if (e.target.name == "bnt1_btn") {
        newStream.play("video1.flv");
        newStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorhandler);
        function errorhandler(myevent:AsyncErrorEvent) {
            //Ignore Error
        }
    } else if (e.target.name == "bnt2_btn") {
        newStream.play("video2.flv");
        newStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorhandler2);
        function errorhandler2(myevent:AsyncErrorEvent) {
            //Ignore Error
        }
    } else if (e.target.name == "bnt3_btn") {
        newStream.play("video3.flv");
        newStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorhandler3);
        function errorhandler3(myevent:AsyncErrorEvent) {
            //Ignore Error
        }
    }
}
If anyone can help that'd be amazing.

Cheers

View Replies !    View Related
Customize SeekBar Component With RollOver
Has anyone succeeded in adding a rollOver state to the play time indicator in the seekBar component?

I'm using Flash Player 8 and the FLVPlayback component and I've skinned it to my desires, but I can't figure out how to do a rollOver on the play indicator, so that it lights up when someone rolls over it or grabs it to drag it... it seems that because the play indicator is dynamically moved onto the progress bar any button I put over it for rollOver and rollOut purposes doesn't work...

Thanks!

View Replies !    View Related
FlashVideo SeekBar Component Problem
We have found a problem that we cannot figure out. We load up a Flash video onto the stage. Assign 3 different components to control it's playback. PlayPause, Sound, and SeekBar. We are changing the ContentPath via buttons to play different video clips.

The problem comes up when we try and go to a different frame that does not have any video components or playback items on stage, the SeekBar arrow stays on screen. We cannot figure out how to HIDE it, unload it or thereby remove it from the stage.

In addition to this issue, if we return to the movie page, there begins a new arrow for the seekbar and repeated exit's and returns to the movie page can build up quite a few SeekBar arrows on the SeekBar playback component.

Anyone else run into this problem? Thanks for any help you may have.

View Replies !    View Related
Adding A ToolTip To FLV Seekbar Component
Does anyone know how to add a toolTip to the FLV seekbar component? I have been banging my head against the wall far too long for something as simple as this...

It's a quick an easy fix for the play/pause, stop buttons. I added in a movie clip that appears on the rollover state of the button. The seekBar is handled differently and there is not a rollover state in that component. I tried adding in an invisible movieClip over the handle that contains a my toolTip button. I feel like the code is blocked out and I can't get an AddEventListener to work within the component. I ran trace statements for willTrigger and hasEventListener and both came up positive for being able to handle a mouseEvent. I am not sure why this will not work.

Any thoughts would GREATLY be appreciated.

Thanks.

descin

View Replies !    View Related
Changing Color Of SeekBar Component
hi,
i m creating a video player, in which i m using control of play, pause, seekbar etc.

i want to chnage the color of prograss of seekbar at runtime as user select different color from colorPicker component.
and i know how to apply the color at runtime using colot transfor class.

The problem is i m unable to refer the movieclip of seekbar which contain the shape of pregrass.
and if entered the reference then it throug error.

i m using AS3.0 version. so please help me to how can i refer the prograss shape inside of seekBar component to change the color at runtime.

Thanks in Advance.








Attach Code

import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
import flash.events.*;
import flash.external.ExternalInterface;
import flash.net.URLRequest;


skin.addEventListener(ColorPickerEvent.CHANGE , colorChange);
function colorChange(event:ColorPickerEvent):void{
trace("color"+event.target.hexValue );

var n:MovieClip = this.root as MovieClip;
var a:ColorTransform = this.transform.colorTransform;
a.color = uint("0x"+event.target.hexValue);
n.vidPlayer.controlPannel.backword.transform.colorTransform = a;
n.vidPlayer.controlPannel.forward.transform.colorTransform = a;
n.vidPlayer.controlPannel.skin.transform.colorTransform = a;
n.vidPlayer.controlPannel.controlPlay.pSkin.transform.colorTransform = a;
n.vidPlayer.controlPannel.seekBar.transform.colorTransform = a;
n.vidPlayer.controlPannel.controlSeek.transform.colorTransform = a;
}

View Replies !    View Related
FLVPlayback - Disable SeekBar UI Component?
I'm building a video player that uses the hard-coded, non-9-slice-scaled FLVPlayback UI components. I tried customizing a skin with 9-slice scaling and had issues with the assets when I disabled certain controls. Plus, I needed more control over the layout than expected.

I've properly attached the individually skinned FLVPlayback components to the FLVPlayback instance, as follows:


Code:
var mpVideo:FLVPlayback; // on stage
mpVideo.bufferTime = 3;
mpVideo.playPauseButton = mpPlayPause;
mpVideo.seekBar = mpSeekBar;
mpVideo.bufferingBar = mpBufferingBar;
mpVideo.volumeBar = mpVolume;
mpVideo.muteButton = mpMute;
mpVideo.contentPath = "http://http://someserver.com/somevideo.flv";
Problem is, I can't make mpSeekBar not visible and not enabled. Neither of these work:


Code:
mpSeekBar._visible = false;
mpSeekBar.enabled = false;
Any way around this when NOT using FLVPlayback skin SWFs?

Thanks,
IronChefMorimoto

View Replies !    View Related
Remove Drag And Click On SeekBar Component
Please, help me... how to remove the click action on the seekbar component of the FLVplayback.
Thanks.
jj

View Replies !    View Related
Turning The FLVplayback Seekbar Component Into A Play Button?
Im building a custom FLV player.

Here's the jist of what i'm trying to build :

I want the SeekBarHandle (ie, the playhead) to also be the play / pause button. Ie, the play and pause button will scroll along the bottom as the movie plays.
So if you click and drag the play button it'll scrub through the movie left and right. But if you just click once it'll toggle play / pause.

I've tried a couple different ways of doing this including having a separate play button that has its x value constantly set to the x value of the SeekBarHandle. This made the play button follow and appear to be the seek bar handle. However, when clicked it just played and paused, and lost its drag abilities to change the playhead of the movie.

Another method, which I'm currently on is to replace the SeekBarHandle with a play button mc...This makes everything look like its supposed to and the play button is draggable, but I can't actually figure out how to make it also start and stop the movie.

I've uploaded a zip file of the fla here : http://tinyurl.com/3rpdqj

View Replies !    View Related
Cue Points Without Component
Hi, is there anyway to navigate to cue points WITHOUT using button components?

If I make my_button a regular self-created button, the code no longer works. Any suggestions?







Attach Code

import mx.video.FLVPlayback;
var my_flvPb:FLVPlayback;
my_flvPb.autoPlay = true;
my_flvPb.contentPath = "stars.flv";
my_button.label = "Next cue point";

function clickMe(){
my_flvPb.seekToNavCuePoint("Thomas");
}
my_button.addEventListener("click", clickMe);

View Replies !    View Related
Cue Points Without FLVPlayback Component?
How use it the cuepoints of a FLV without the FLVPlayback Component?

View Replies !    View Related
Using Actionscript And The Drawing API To Animate A Line (2 Points) To 2 New Points
hi everybody - what is the best way to go about this?

at its most basic - i need to animate a line's beginning and end points using tweener to 2 new points somewhere else on the stage.

my first thought is to start with the excellent 3d spinning cube example that kirupa made on kirupa.com and backtrack from there.
http://www.kirupa.com/developer/acti...ces_depths.htm
but i'm hoping to find a much simpler and efficient way of accomplishing what i need.

the problem that i know i need to get around is this.... i have to find a way to have the Tweener class give me updated positions of the x and y of the two points which make up the lines. and somehow i have to use the drawing api to 'get inside of' tweener to update the stage accordingly - reason for this is that these lines will need to use the elastic tween and bounce around a bit.

i'd appreciate any help

cheers! - tom

View Replies !    View Related
Seekbar
hey i have 2 seek bar, and i must control the pointer within the seekbar (as in media player) , this pointer must move when the mouse is pressed(drag).
the pointer can be moved to any position on both the seekbar. after releasing it the pointer must start ply from that position.

(refer - www.sap.com ).

View Replies !    View Related
Seekbar
can someone please tell me where to find a seekbar script.. i could only find one for AS2 ..but the startDrag() completely changed in AS3

AS2:

ActionScript Code:
dragging = false;
bar.dragger.onPress = function ()
{
    startDrag (this, false, 0, 0, bar.strip._width, 0);
    dragging = true;
}
bar.dragger.onRelease = bar.dragger.onReleaseOutside = function ()
{
    stopDrag ();
    dragging = false;
    snd.stop ();
    song_pos = this._x;
    song_dur = snd.totalTime;
    newPosition = (song_pos * song_dur) / bar.strip._width;
    snd.play (newPosition);
}
onEnterFrame = function ()
{
if (!dragging) {bar.dragger._x = (snd.playheadTime / snd.totalTime) * bar.strip._width;}
}

AS3:


ActionScript Code:
var dragging:Boolean = false;

bar.dragger.addEventListener(MouseEvent.MOUSE_DOWN, moveDragger);
bar.dragger.addEventListener(MouseEvent.MOUSE_UP, stopDragger);

thats how far i got lol..

do i have to import packages in AS3? ie, import flash.geom.Rectangle;?

anyway ..if someone knows where i can find a script ..id really appreciate that

View Replies !    View Related
SeekBar Help
Hello, I am doing my own video recording, I've been able to get it to run. I now need to add a seekbar to my flv movies. How can I do this? I do have access to the metadata. I am not using an FLVPlayback control. Does anyone know where I can find a sample code for a seekbar using AS3 FMS2 and Flash CS3.

Thank you.

Louis

View Replies !    View Related
FLV Seekbar Issues
I have placed my seekbar on a diagonal. The problem is that the progress dot does not follow that diagonal line now. I'm puzzled as to where I can adjust this because this is the actionscript that is in the component:
stop();
handleLinkageID = "SeekBarHandle";
handleLeftMargin = 2;
handleRightMargin = 2;
handleY = 1;

Also...when the FLV is done I can't get rid of the progress dot. The seekbar disappears but the dot remains. Thank you!

View Replies !    View Related
Seekbar Virgins
I just posted an update to my webpage and noticed that when my custom FLV player loads the seekbar, play, and pause button for the first time the buttons don't work. However, if I exit the FLV player and return to the player everything works correctly. I currently have the component actionscript within the MC of the FLV player. Does anyone know what is causing this?

Also...I have asked this question several times on this board and never heard a response. I guess I've boldy gone where no one has gone before. I have my seekbar rotated on a diagonal...and the seekbar handle goes straight. How can I script the handle to increase its _y axis as the FLV plays? I have looked everywhere and can't seem to figure it out. Thank you for any help you can lend.

Here is an [IMG]www.erikendswithak.com/seekbar.png[/IMG]

View Replies !    View Related
Seekbar For A Movie_clip
Can i control a movie_clip or an swf with a seek bar?.

View Replies !    View Related
FLV Seekbar/duration
I just started using the NetStream/NetConnection methods of pulling in flvs. I'm having a problem figuring out how to get the MetaData from the flv. Example, how would I pull the duration from the flv. and put it into a text box? Also, does anyone have a good example of a custom coded seekbar, I'm so not used to working outside of the timeline like this. Thanks!

D

View Replies !    View Related
Problem With Seekbar
hi,

I'm having problems with my this seekbar code,
it creates movieclips that mesures load progress,
and mesures song progress,

my problem is when I go to the next song,
I can't get the progress bar to reset to 0
it just seems to stay where it was when I loadin a new mp3


ActionScript Code:
//---------------------------------------------------------------<btnRow.seeker>
btnRow.seek._visible = false;
btnRow.seek.w = 175;                // btnRow.seek bar width
btnRow.seek.h = 15;    // btnRow.seek bar height
btnRow.seek.b = 2;          // btnRow.seek bar border
btnRow.seek.plc = "0xCCCCCC";      // btnRow.seek bar preload color
btnRow.seek.bgc = "0x000000";      // btnRow.seek bar background color
btnRow.seek.fgc = "0xffffff";      // btnRow.seek bar foreground color

plw = btnRow.seek.w-2*btnRow.seek.b;
MovieClip.prototype.drawSquare = function(w, h, l, t, c) {
    with (this) {
        clear();
        beginFill(c, 100);
        moveTo(l, t);
        lineTo(l+w, t);
        lineTo(l+w, t+h);
        lineTo(l, t+h);
        lineTo(l, t);
        endFill();
    }
    return this;
};
btnRow.seek.jump = function() {
    mySound.start((((btnRow.seek.bg._xmouse-btnRow.seek.b)/plw)*(mySound.duration/loaded))/1000);
};
btnRow.seek.createEmptyMovieClip("bg", 1).drawSquare(btnRow.seek.w, btnRow.seek.h, 0, 0, btnRow.seek.bgc);
btnRow.seek.createEmptyMovieClip("pl", 2).drawSquare(1, btnRow.seek.h-2*btnRow.seek.b, 0, btnRow.seek.b, btnRow.seek.plc)._x = btnRow.seek.b;
btnRow.seek.createEmptyMovieClip("fg", 3).drawSquare(1, btnRow.seek.h-2*btnRow.seek.b, 0, btnRow.seek.b, btnRow.seek.fgc)._x = btnRow.seek.b;
mySound.start(0);
btnRow.seek.pl.onEnterFrame = function() {
    out = loaded=mySound.getBytesLoaded()/mySound.getBytesTotal();
    this._width = plw*loaded;
    btnRow.seek.fg._width = out2=(mySound.position/(mySound.duration/loaded))*plw;
};
btnRow.seek.pl.onPress = function() {
    btnRow.seek.jump();
    this.onMouseMove = function() {
        if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
            btnRow.seek.jump();
        }
    };
};
btnRow.seek.pl.onRelease = btnRow.seek.pl.onReleaseOutside=function () {
    delete this.onMouseMove;
};
//---------------------------------------------------------------</btnRow.seeker>

I found this code in the library here,

View Replies !    View Related
Add Seekbar To Embedded Flv?
Hi!
Is there anyway to add a seekbar, play and paus button in a swf file with embedded flv file. I cant use the flv as a external file. It must be embedded in one swf file.

Regards
/Robert

View Replies !    View Related
SeekBar And VolumeBar
I can make the seekBar and the volumeBar work indivually but i can not for the live of me make both work together. I thnak you in advance for any help you can give.

here is the code I am curently using

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function() {
var nodes = this.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
list.addItem(nodes.attributes.desc,nodes.attributes.flv);
}
vid.play(list.getItemAt(0).data);
list.selectedIndex = 0;
list.backgroundColor = 0x000000;
list.color = 0xffffff;

}

xml.load("videos.xml");

var lList:Object = new Object();
lList.change = function() {
vid.play(list.getItemAt(list.selectedIndex).data);
}

list.addEventListener("change",lList);



vid.playPauseButton = playPause;
vid.seekBar = seeker;
vid.muteButton = mute;
vid.volumeBar = volBar;






























Edited: 10/05/2007 at 08:04:40 AM by impactMan

View Replies !    View Related
1 Seekbar Control 2 Flv
i uses 2 flvPlackback component to play 2 flv at the same time.

Thus i uses all those actionscript that comes with the flvPlackback componet to enable what is necessary to function as what a video player should do.

I got a problem here ...i have to control this 2 flv with 1 seekbar or a scrabber bar. As in when the user scrab the seekbar, both flv are in syn together progressing in tune with one another. Hopefully i have make myself clear.

View Replies !    View Related
Seekbar Issues
Working on a Flash project. I have customized the seekbar component in my multiple video project, but the seekbar continues to appear on the page even though I click through to another video. The more videos I click to, the more seekbars I compile. How do I get the seekbar to disappear (like the other buttons) with each new video I pull up? Am using Flash CS3 with Actionscript 2.0.

View Replies !    View Related
Disappearing SeekBar
First, let me say that my Flash and ActionScript knowledge is very limited. I'm literary cut 'n' pasting. I've a got a FLVPlayback component with skin set to none, a couple of play/pause/mute components and a SeekBar which don't want to be my friend on stage. Then I load an xml playlist, populate a list and start watching. (or in my cast listening since it's mp3s and not movies). I fetch the files from a Flash Media Server over RTMP.

Now my problem. First file playes fine, when it segues to the next file it playes fine aswell. However, the SeekBar doesn' work. The handle doesn't show and you can't click it to jump to a certain point. This leads me to believe that I've to reset the SeekBar before I start the next clip. How do I do that? myVid.playheadPercentage = 0; doesn't help.

Attached is the AS source code.

Best
Emil







Attach Code

package {
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import fl.controls.listClasses.CellRenderer;
import fl.controls.ScrollBarDirection;
import fl.video.VideoEvent;

public class VideoPlaylistNoThumb extends MovieClip {
private var xmlLoader:URLLoader;

public function VideoPlaylistNoThumb():void {
// Load the playlist file, then initialize the media player.
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
xmlLoader.load(new URLRequest("playlist.xml"));
}

public function initMediaPlayer(event:Event):void {
var myXML:XML = new XML(xmlLoader.data);
var item:XML;
for each(item in myXML.vid) { // populate playlist.
// Send data to List.
videoList.addItem({label:item.attribute("desc").toXMLString(),
data:item.attribute("src").toXMLString()});;
}

// Listen for item selection.
videoList.addEventListener(Event.CHANGE, listListener);
// Select the first video.
videoList.selectedIndex = 0;
// And automatically load it into myVid.
myVid.play(videoList.selectedItem.data);
// Pause video until selected or played.
//myVid.pause();

// Listen for end of current video, then play the next
myVid.addEventListener(VideoEvent.COMPLETE, vidComplete);

}


// Detect when new video is selected, and play it
function listListener(event:Event):void {
myVid.play(event.target.selectedItem.data);
}

// listen for complete event; play next video
function vidComplete(eventObject:VideoEvent):void {
if(videoList.selectedIndex < videoList.length-1){
videoList.selectedIndex = videoList.selectedIndex+1;
videoList.scrollToIndex(videoList.selectedIndex);
myVid.play(videoList.selectedItem.data);
}
};

}
}

View Replies !    View Related
Disappearing SeekBar
First, let me say that my Flash and ActionScript knowledge is very limited. I'm literary cut 'n' pasting. I've a got a FLVPlayback component with skin set to none, a couple of play/pause/mute components and a SeekBar which don't want to be my friend on stage. Then I load an xml playlist, populate a list and start watching. (or in my cast listening since it's mp3s and not movies). I fetch the files from a Flash Media Server over RTMP.

Now my problem. First file playes fine, when it segues to the next file it playes fine aswell. However, the SeekBar doesn' work. The handle doesn't show and you can't click it to jump to a certain point. This leads me to believe that I've to reset the SeekBar before I start the next clip. How do I do that? myVid.playheadPercentage = 0; doesn't help.

Attached is the AS source code.

Best
Emil







Attach Code

package {
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import fl.controls.listClasses.CellRenderer;
import fl.controls.ScrollBarDirection;
import fl.video.VideoEvent;

public class VideoPlaylistNoThumb extends MovieClip {
private var xmlLoader:URLLoader;

public function VideoPlaylistNoThumb():void {
// Load the playlist file, then initialize the media player.
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
xmlLoader.load(new URLRequest("playlist.xml"));
}

public function initMediaPlayer(event:Event):void {
var myXML:XML = new XML(xmlLoader.data);
var item:XML;
for each(item in myXML.vid) { // populate playlist.
// Send data to List.
videoList.addItem({label:item.attribute("desc").toXMLString(),
data:item.attribute("src").toXMLString()});;
}

// Listen for item selection.
videoList.addEventListener(Event.CHANGE, listListener);
// Select the first video.
videoList.selectedIndex = 0;
// And automatically load it into myVid.
myVid.play(videoList.selectedItem.data);
// Pause video until selected or played.
//myVid.pause();

// Listen for end of current video, then play the next
myVid.addEventListener(VideoEvent.COMPLETE, vidComplete);

}


// Detect when new video is selected, and play it
function listListener(event:Event):void {
myVid.play(event.target.selectedItem.data);
}

// listen for complete event; play next video
function vidComplete(eventObject:VideoEvent):void {
if(videoList.selectedIndex < videoList.length-1){
videoList.selectedIndex = videoList.selectedIndex+1;
videoList.scrollToIndex(videoList.selectedIndex);
myVid.play(videoList.selectedItem.data);
}
};

}
}

View Replies !    View Related
Can A Seekbar Be Used Without A FLVPlayer?
Hi,

I am creating a flash video system that has multiple videos going at once. These videos are being loaded and played without using the flash FLVPlayback component. I am able to use many video functions like play and pause but I am not able to add a seekBar to my video. How can I use a seekBar component without using the FLVPlayback Component?

Thanks,

waffe

View Replies !    View Related
Clickable Seekbar
I know how to use the seekbar component for flv's however, I want to be able to make it clickable so that when someone clicks on the bar the scrub will jump to that point and the video will jump to the correct spot as well.

Anyone have any ideas?

View Replies !    View Related
One Seekbar With 3 Video
just wondering if i were to use a flvplayback, will my seekbar length be able to show 3 video total duration.

Cos i understand that one seekbar = to 1 video duration if i only load 1 flv.

But if i were to write some code that will load my 1st video and then once it end, it will automatically load the 2nd one and etc, will my seekbar be able to registered the 3 full length of my 3 video duration?

View Replies !    View Related
1 Seekbar Control 2 Flv
i uses 2 flvPlackback component to play 2 flv at the same time.

Thus i uses all those actionscript that comes with the flvPlackback componet to enable what is necessary to function as what a video player should do.

I got a problem here ...i have to control this 2 flv with 1 seekbar or a scrabber bar. As in when the user scrab the seekbar, both flv are in syn together progressing in tune with one another. Hopefully i have make myself clear.

View Replies !    View Related
[CS3] Seekbar Only Does One Showing And Then Disappears
There is a video that plays on my website with a seekbar. When the video is loaded for the first time the seekbar appears with the button to skip forward and backward through the video. If the video is loaded a second or third time the button doesn't appear.

The odd thing is that this only happens to the site when its uploaded to the internet. When I play it locally it doesn't have this issue.

Here is the code that I use to remove the seekbar:
this.seek_mc.handle_mc.removeMovieClip();

This needed to be done so that the seekbar button didn't remain on the screen.
How can I bring it back the second time around?

View Replies !    View Related
SeekBar Handle Disappearing
Hi,

I have a 2 frame clip. First frame contains the FLVPlayback component and the Custom UI SeekBar component. Second frame contains only an image that is displayed after the FLV completes. All works well on initial load and play, but when I navigate back to the first frame to reload and play the video, the SeekBar handle is missing. Tracing the vars in the SeekBar reveals that the handle_mc clip is undefined. Any ideas?

Thanks

View Replies !    View Related
One Seekbar Control 2 Flvs?
I have 2 seperate flv playback components on 1 page that I want to control with 1 seekbar. Is this possible?

View Replies !    View Related
Detecting FLV SeekBar Interation
Hi guys.

I have just started to customise an FLV Playback component, and want to be able to detect when the user drags the seekBarHandle.

This is so that I can find the nearest previous cuePoint to the time that the handle was dragged to, and run the function that is associated with that cue.

Any ideas would be gratefully accepted..

Thank-you!

View Replies !    View Related
SeekBar Handle X Position
Is there a way to get the x position of the seekBar handle of the flv component? It seems like it should be a simple task, but have found nothing about it.

View Replies !    View Related
Seekbar Won´t Work
Hi folks,
i have build an flvPlayer - class that manage my Video .... and the Buttoncomponents. The Class works fine except the seekbar and the volumebar. my problem is that flash don´t display the Seekbar Handle and the VolumeBar Handle.

Has somebody a tip for me?

T

View Replies !    View Related
Flvplayback, Seekbar Et VolumeBar
In english
Hi,
I try to create a videoplayer from flvplayback and different components from AS3. I use the following code. Video works fine, pause button too, no problem with mute button, but my seekbar and vulomubar show no cursor... any Idea? I exported all the stuffs in the first frame of my application.
As you can see, I put my seekbar and volume in two different clip to avoid a bug I've seen looking ion the web, but there is no more cursor when I put all in the same MC.
Thanks a lot for reading :)

en Français:
Bonjour,
J'essaie de creer un lecteur video à partir de flvplayback et des differents composants de controle, j'utilise le code suivant:
la video marche tres bien, le bouton playpause aussi, le bouton mute et la barre de chargement aussi.
Par contre, je n'ai pas de durseur sur mes composants seekbar et volumeBar... (à noter que j'ai tout dans ma bibliotheque, exporté à la premiere frame). Là, j'ai mis mes seekbar et volumeBAr dans des clips separes, pour eviter un bug que j'ai trouvé sur internet, mais ça ne change rien au probleme.

Merci beaucoup si qq'un avait une idée :)

quote:
player_mc = new FLVPlayback()
player_mc.autoRewind=true;
player_mc.autoPlay=true;
conteneur.addChild(player_mc)
player_mc.skinBackgroundColor=0xCCCCCC
//creation des boutons, buffering bar, etc...
boutonPlayPauseInstance = new PlayPauseButton()
conteneur.addChild(boutonPlayPauseInstance)
boutonPlayPauseInstance.x=player_mc.x + 10
boutonPlayPauseInstance.y=player_mc.y + player_mc.height + 10
player_mc.playPauseButton=boutonPlayPauseInstance

bufferingStateInstance = new BufferingBar()
conteneur.addChild(bufferingStateInstance)
bufferingStateInstance.x=player_mc.x + 10 + boutonPlayPauseInstance.width +10
bufferingStateInstance.y= boutonPlayPauseInstance.y + boutonPlayPauseInstance.height/2 - bufferingStateInstance.height/2
player_mc.bufferingBar=bufferingStateInstance

seekBarContainer=new MovieClip()
seekBarInstance = new SeekBar()
seekBarContainer.addChild(seekBarInstance)
conteneur.addChild(seekBarContainer)
seekBarContainer.x=player_mc.x + 10 + boutonPlayPauseInstance.width +10
seekBarContainer.y=boutonPlayPauseInstance.y + boutonPlayPauseInstance.height/2 - seekBarInstance.height/2
player_mc.seekBar=seekBarInstance

muteButtonInstance = new MuteButton()
conteneur.addChild(muteButtonInstance)
muteButtonInstance.x=player_mc.x + 10 + boutonPlayPauseInstance.width + 10 + seekBarInstance.width +10
muteButtonInstance.y=player_mc.y + player_mc.height + 10
player_mc.muteButton=muteButtonInstance

volumeBarContainer = new MovieClip()
volumeBarInstance = new VolumeBar()
volumeBarContainer.addChild(volumeBarInstance)
conteneur.addChild(volumeBarContainer)
volumeBarContainer.x=player_mc.x + 10 + boutonPlayPauseInstance.width + 10 + seekBarContainer.width +10 + muteButtonInstance.width+10
volumeBarContainer.y=seekBarContainer.y
player_mc.volumeBar=volumeBarInstance






























Edited: 03/28/2008 at 04:08:18 AM by pierreR

View Replies !    View Related
Creating Clickable Seekbar
Hi i am currently working on a flash video player. It is almost complete.I want to add a click able seek bar which function link our Windows media player or you tube i.e. when click on some area of the seek bar it should take the seek handle to that position.

at least provide me the direction which i should follow

Please reply soon, it is urgent

Thanks in Advance

View Replies !    View Related
SeekBar And FullScreen Mode
I've created a video player that uses the SeekBar component and FullScreen Mode. I have set things up so the controls are visible in Fullscreen mode.

When in full screen mode the SeekBar expands and stretches across the stage. When this happens the position of the handle on the SeekBar is out of sync with the video.

Os there a property or method that allow me to set a new width for the bar, or set the range of the SeekBar to keep it in sync with the width of the bar as it changes?

View Replies !    View Related
FullScreen Video And SeekBar
I have a project that uses the FLVPlayback component and the video UI components. At this point I have the SeekBar and other buttons visible when the video enters FullScreen mode.

The problem is, the SeekBar does not update it's range when the bar scales to a new length. Is there a property or method of SeekBar that let's me update the range that it works with when I scale the bar?

View Replies !    View Related
Movie Clip SEEKBAR
Hey

Am working on a Movie Clip that has an FLV running with text anime, I have controllers to it (play, pause, replay, SEEKBAR). Am having probloms in the SEEKBAR.
Wanting the scruber to follow the current frame along the MC duration indicating the farme being played using this code
Code:

loader.scrub.onEnterFrame = function(){
    loader.scrub._x = my_Mc._totalframes /my_Mc._currentframe * SeekbarWidth;
}

the scrubber start moving fast from the opposite direction and ends up in its starting position, whats wrong with my code and how can I get it working

Cheers

View Replies !    View Related
Making A Seekbar Using Flash Mx Not Flvplayback
how would i make a seekbar using flash, i don't want to use the one already supplied on flash 8, which you have to use with flvplayback.

i have searched everywhere on the net, i can't find it.

thank you

View Replies !    View Related
[F8] Problem With Common Seekbar For Multiple Flv's
Hi All,

I am working on a very different requirement, I have created a conference application, where user login and do all stuffs, I have a record control, That record the screen of each user when press and generate the flv's on server.

For ex, When record button was pressed there were 4 people in conference, so four flv's was started recording, Now somebody logout, some new joined, so this way i have multiple flv's on server with different start time and their duration.

Now that part is done successfully, Now i am working on other part of that, The Player part, I have to now show all these flv's in the same order they were being recorded, I have done the part of dynamically showing all flv's in different video windows, Now i working on a common seekbar, That is for all flv's starting from first flv to last flv, The progressbar/seekbar will finish when last flv will stop playing.

The biggest challenge is to develop the common seekbar for all flv's since if i move to some other position and it might be possible that the flv currently being played is not as big , so it will stop, and also new flv comes in the queue in the same seek.

Please suggest me the good way to do that, as i am confused and stuck with my so called big code.

Thanks
Sunil Gupta

View Replies !    View Related
Question About Seekbar I Made A Simple FLV P...
Hi all,

i made a simple FLV Player from a scrap, its go well..

i has a nice seekbar and i took a screenshot of it:



the first button for Rewind = rewindButton, the second button for Play = playButton and Pause = pauseButton and the last button for Sound mute = Disable (did not work in it yet).

the seek bar contains of 4 objects: object number 1 = playdbar, object number 2 = scrub, object number 3 = loadbar and object number 4 = stroke

And this is the code:


Code:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("http://www.mediacollege.com/video-ga...51210-w50s.flv");
rewindButton.onRelease = function() {
ns.seek(0);
}
playButton.onRelease = function() {
ns.pause();
}
var videoInterval = setInterval(videoStatus, 1000);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
duration = obj.duration;
}
function videoStatus() {
amountLoaded = ns.bytesLoaded/ns.bytesTotal;
loader.loadbar._width = amountLoaded*242;
loader.scrub._x = ns.time/duration*242;
}
var scrubInterval;
function scruber() {
ns.seek(Math.floor(loader.scrub._x/240)*duration);
}
loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scruber, 10);
this.startDrag(false, 0, this._y, 239, this._y);
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function () {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus, 1000);
this.stopDrag();
}
It work well, but..

i want help about seekbar

you can playback and play forward movie by moving the the scrub button only..
i want playback and play forward by moving the scrub button and on click on the loadbar button too and i want the width of playdbar to be as it in the above picture!

I tried it many times but i failed.. any one can edit the code please??!

With Thanx

View Replies !    View Related
FLVPlayback SeekBar And VolumeBar Conflict
I am using the FLVPlayback component with the seperate play button, back button, seekbar, volume bar (instead of using a skin). The seekbar and volume bars worked perfectly individually, however used together they seem to conflict - when I click on the volume bar handle the seek bar handle flashes and the volume cannot be controlled. I have also had it the opposite way round too. I cannot work out how to fix this.

I have read a few reports that this is a bug with Flash 8, and that the Flash 8 FLVPlayback Component Update 1.0.1 fixes this with replacement files. I have also read that this bug has not been resolved with CS3. However I started my project on Flash 8 and then moved on to CS3 so cannot use the update (the files to replace are all different).

I would appreciate any help on this.

View Replies !    View Related
FLVPlayback SeekBar And VolumeBar Conflict
I am using the FLVPlayback component with the seperate play button, back button, seekbar, volume bar (instead of using a skin). The seekbar and volume bars worked perfectly individually, however used together they seem to conflict - when I click on the volume bar handle the seek bar handle flashes and the volume cannot be controlled. I have also had it the opposite way round too. I cannot work out how to fix this.

I have read a few reports that this is a bug with Flash 8, and that the Flash 8 FLVPlayback Component Update 1.0.1 fixes this with replacement files. I have also read that this bug has not been resolved with CS3. However I started my project on Flash 8 and then moved on to CS3 so cannot use the update (the files to replace are all different).

I would appreciate any help on this.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved