FLVPlayBack and TotalTime
I recently upgraded from Flash MX to CS3. I am using the
FLVPlayback component to play some video. I am trying to get the
slider to work. In MX, (and the documentation for CS3 tells you to
do the same) you would set the Component Parameter of totalTime to
get the slider to work. But, when I open the component inspector
there is no parameter for totalTime listed there. I have done this
hundreds of times in MX and have had no problem, but I can’t
figure it out in CS3.
set the publish setting to AS2, then drag the component on
stage, it will be the familiar component.
Similar Messages
-
Problem with FLVPlayback and component
First of all I had problem with control component. they are not working so i just named that ppo and change the visibility to false to get rid of problem!
ppo.visible=false;
Question1
(is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
Question2
what is the difference btw Flvplayback and FLVplayback 2.5 ?
Question3
whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
how can I solve my problem ?
___________________Frame 1______________
import fl.video.*;
import flash.events.MouseEvent;
var myVideo:FLVPlayback = new FLVPlayback();
control.visible=false;
myVideo.x = 115;
myVideo.y = -10;
myVideo.skinBackgroundColor = 0x333333;
myVideo.skinAutoHide=true;
myVideo.skinFadeTime=300;
addChild(myVideo);
btn1.addEventListener(MouseEvent.CLICK , c1);
function c1(e:MouseEvent):void
myVideo.source = '001.flv';
Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
---------------------------frame5-----------------------
import fl.video.*;
import flash.events.MouseEvent;
var myVideo2:FLVPlayback = new FLVPlayback();
control2.visible=false;
myVideo2.x = 115;
myVideo2.y = -10;
myVideo2.skinBackgroundColor = 0x333333;
myVideo2.skinAutoHide=true;
myVideo2.skinFadeTime=300;
addChild(myVideo2);
btn2.addEventListener(MouseEvent.CLICK , c2);
function c2(e:MouseEvent):void
myVideo2.source = '002.flv';
thank you in advanced..Question1
(is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
what are you calling the '..controlbar' and what are you calling the '...control component'?
Question2
what is the difference btw Flvplayback and FLVplayback 2.5 ?
2.5 has more features, http://blogs.adobe.com/ktowes/2009/05/announcing_dvrcast_and_flvplay.html
Question3
whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
how can I solve my problem ?
remove the click listener so you can only click once. then you may need to wait if testing online.
___________________Frame 1______________
import fl.video.*;
import flash.events.MouseEvent;
var myVideo:FLVPlayback = new FLVPlayback();
control.visible=false;
myVideo.x = 115;
myVideo.y = -10;
myVideo.skinBackgroundColor = 0x333333;
myVideo.skinAutoHide=true;
myVideo.skinFadeTime=300;
addChild(myVideo);
btn1.addEventListener(MouseEvent.CLICK , c1);
function c1(e:MouseEvent):void
myVideo.source = '001.flv';
Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
---------------------------frame5-----------------------
import fl.video.*;
import flash.events.MouseEvent;
myVideo.stop();
removeChild(myVideo);
myVideo=null;
var myVideo2:FLVPlayback = new FLVPlayback();
control2.visible=false;
myVideo2.x = 115;
myVideo2.y = -10;
myVideo2.skinBackgroundColor = 0x333333;
myVideo2.skinAutoHide=true;
myVideo2.skinFadeTime=300;
addChild(myVideo2);
btn2.addEventListener(MouseEvent.CLICK , c2);
function c2(e:MouseEvent):void
myVideo2.source = '002.flv'; -
FLVplayback and missing skin.
Helo all.
I am developing a website that uses the FLVplayback component to play a video. I have also made a custom skin for it as well.
- The SWF file that contains the FLVplayback component plays the video just fine, and has the skin.
- In the HTML document generated from Dreamweaver, everything plays fine as well.
- When i upload everything to a server, the video file plays, but the skin is MISSING!
The SWF containing the FLV playback component, the skin SWF and the FLV file are all in the same folder when i upload everything online.
I feel like I am missing something very simple.
If you have never been told the sky's color, or have ever seen it, how would you know it's blue?I had placed the containing asp file, the presentation.swf
file and the skin.swf file all in the same directory. -
Connecting flvplayback and an xml file
using flash 8 pro...
ive got a flv file saved in my folder... i am trying to use
the flvplayback component and get to the flv file via an xml
file... can someone please help me out with a sample of what the
xml file should look like...
right now this is what my xml file look's like and i have a
feeling it is wrong... in fact im pretty confident it is...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<tirade>
<video url="mikegundy.flv" />
</tirade>
when i choose import video file i put this in for the path to
the xml file : rtmp://Documents and Settings/Angie/My
Documents/video/tirade.xml and of course it dsnt connect... also
can someone please help me out with the initial action script i
need to put on frame 1 for the flvplayback component...
i have been wrestling with this since yesterday.... i have
googled the heck out of it..
please help...
treyAre you referring to previewing the report using the embedded designer within Visual Studio? If so, what happens if you run the report through a custom application using the viewer?
-
When to use FLVPlayback and when to use MediaPlayback component
Hi,
I looked at at the FLVPLayback component and the
MediaPlayback Component and I wonder when one should be used over
the other? Any experienced designer out there that can tell me?
thanks
-MalenaHey, My problem with using flvplayback is that SOME windows
vista computers, and i seriously cannot figure out exactly what it
is but they will play the flv very choppy and so i had to use
mediaplayback and it works fine on all computers that i have tested
it on. it was VERY annoying because my client kept attempting to
watch video from his computer and it came through as garbage and
when i watched it, well it was perfect. so i tested it out on
several different computers and operating systems and found that
certain computers were just not compatible. I am assuming they were
just not up to date? i dunno, i have a mac, dont have those
problems :) -
i am trying to play a " flv " file in the flvplayback
component via an xml file...please help... i have searched high and
low for tutorial's... please take a look and let me know what i
need to do to fix it...
here is the action script in frame 1
import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
{_width:320,_height:240,_x:100,_y:100});
my_FLVPlybk.skin = "file:///C:/Program Files/Macromedia/Flash
8/en/Configuration/Skins/SteelExternalAll.swf"
my_FLVPlybk.contentPath = "rtmp://Documents and
Settings/Angie/My Documents/video/videos.xml";
and here is the xml file it is supposed to pull the flv from
<smil>
<head>
<layout>
<root-layout width="320" height="240" />
</layout>
</head>
<body>
<video src="mikegundy.flv" />
</body>
</smil>
i dragged the component and placed it on the stage and then
editted the " as "... right now i get a black screen with the
player control's searching... finally no error's... it just isnt
finding the file...
thanks
treyif that xml file's name is flv.xml and you flvplayback component's instance name is flv, you can use:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = parseXML;
xml.load("flv.xml");
function parseXML(){
flv.contentPath = this.firstChild.firstChild.firstChild.firstChild.nodeValue; -
FLVPlayback and streaming video
I am reading about the different between progressive and
streaming video on the web. I want to use FLVPlayback to play
streaming video. In Flash help, to use streaming video we have to
create a connection to server right? And the code to connect to
streaming video on the server (FCS or FMS) is:
nc = new NetConnection();
nc.connect( url);
ns = new NetStream(nc);
ns.connect();
Also in the Flash help, in the FLVPlayback section, how to
play video using FLVPlayback is shown, but I could not see anything
related to the connection or NetStream variable as the above code.
So how can the FLVPlayback play streaming video? Could anyone help
me please?Unless the video is completely downloaded to the iMac you can not rule out the Internet connection.
Since it plays all other video with no problem the downloading stream would seem to be the source of the problem.
I had cable modem and it is no guarantee of a fast connection. Also even having a fast connection on one end doesn't mean that the source of the video is pushing it all that fast. -
FLVPlayback and RTMP streaming
Hello, I'm streaming a video on my websites Flash page using the FLVPlayback component. I have two questions however: when I unload the containing SWF file the video continues playing. According to the AS3.0 reference for CS4 I can use closeVideoPlayer(0) to remove the video file. I keep getting this error however: VideoError: 1007: Cannot delete default VideoPlayer at fl.video::FLVPlayback/closeVideoPlayer() at Index/closeStreamPlayer() The other question I have is...I need to have the player resort to a local flv file instead of streaming if the connection is refused by the streaming server or the file can't be found. If I were coding this I'd just create a NetStream and check the status. I'm wondering how I can append a status checker to the player to do the same thing. I can't find anything useful or apparent to me in the reference. Thanks! David
Hello are you loading the webpage on that local machine ?
theres a security thing in flash that wont let you play the
video in that way. open the html file on a different computer to
the streaming server -
FLVPlayback and VideoEvent.STATE_CHANGE Oddities
Hello all,
This is my first post, but this question has racked my brain and Google's servers all night, so I thought I would pose the question here.
Let me get started on the preliminaries of my problem so I can elaborate the issue. I know FLVPlayback is buggy but this seems like either a version problem or I might be in need of an update.
I currently monitor the VideoEvent.STATE_CHANGE event. When I first play a video with FLVPlayback by setting its .source property the VideoEvent.STATE_CHANGEevent fires in this order:
loading
buffering
playing
This is exactly what I need, however if I 'load a new video' by yet again setting the.source property the VideoEvent.STATE_CHANGE event fires in this order:
loading
paused
buffering
playing
paused
buffering
Which, incidentally, throws my event system out of wack, due to the video successfully playing while the last event fired is buffering. This causes my event tracking to be in an incorrect state.
I do handle the VideoEvent.READY event to run these methods on the FLVPlaybackobject:
video.pause();
video.playWhenEnoughDownloaded();
Am I doing something wrong in the order that I am calling the methods, or am I omitting a step in closing (which I've tired by getting the VideoPlayer.close() method) or disposing of something in the FLVPlayback object?
Any help or tips/direction pointing would be greatly appreciated! Thank you!I am not well-addressed in video matters, but when I look thru the events of the FLVPlayBack component I don't see a PLAYING event associated with it. I do see a VideoEvent.PLAYING_STATE_ENTERED event and a variety of others that indicate various statuses being initiated. Have you tried that event using the approach you want to take? If you look thru the help docs you should find the complete set of them tabulated.
-
FLVPlayback and MP3 Files - Possible?
I've got Flash 8 Pro on a Mac, and I'm trying to use the
FLVPlayback component to stream MP3s off a Flash Media Server (2).
The docs say: " New to Flash Professional 8, the FLVPlayback
component lets you quickly add a full-featured FLV or MP3 playback
control to your Flash movie. " but no matter what I do, FLVPlayback
doesn't want to look at my MP3. If I encode the same file into an
FLV wrapper, it works fine. Similarly, I can stream the MP3 off the
server using the MediaPlayback component, but I'd rather stick with
my existing (FLVPlayback-base) player if at all possible.
Any help? Is it possible?With Netstream object all will remain the same as with an FLV
file except the stream name in NetStream.Play API
For MP3 file using NetStream.play("Mp3:fileFile") should
work. -
FLVPlayback and preloader size difference
Hello,
I have put a preloader on a movie that plays a FLV (preloader on frame 1 and the FLVPlayback on frame 2). The problem is that the preloader thinks that the file size is only 38Kb and the FLV is 27,000Kb. So how do I make the preloader read the size of the FLV?
Thank you for your time,
Bernieyou need to create a preloader for the flv. i recently answered someone's inquiry about how to do that in this forum.
-
FMS 3.5.2 update, FLVPlayback and DVR?
Hello.
So, I have been told by various people that the new 3.5.2 update of FMS is supposed to fix the issues with live DVR playback and the FLVPlayback component. Specifically, that the progress bar is now supposed to update appropriately if new live video is still being added to the DVR'ed stream while the stream is being viewed in the FLVPlayback component.
However, I don't see any changes. There had been talk previously of a DVRCast application, but I don't see anything like that coming with the 3.5.2 update. Furthermore, the release notes for the update mention that users should update to the new version of the FMS Tools; however, as far as I can tell, there is no version of FMS Tools newer than the one that contained the original FLVPlayback_2.5 component... so, anyway, now I am using the 3.5.2 FMS and the version of FMS Tools currently available on the download page, and yet when I view a DVR'ed stream while the live video is still incoming, the progress bar doesn't update at all, and so for any video that arrives after what was the latest video when I opened the player, the playhead just sits at the very end of the progress bar.
Can anyone tell me what (if anything) I'm doing wrong here?
Thanks,
-DanThe development server is fully functional and you can connect up to 10 connections with it either locally or externally...open port 1935 in your router and use your external IP address for the rtmp connection.
-
OK i am really stuck, I have a flv file in flash I am using
the FLV Custom Component. I need to be able to display the running
and total time of the video in two seperat text field on the scene.
I can't seem to get this to work. My video is a converted flash swf
file to QuickTime then I creat a FLV file from the flash video
encoder. Please helpThere is probably a better way but this should give some
idea:
/// Assume 2 textfields tf1 and tf2 are on the timeline
// and FLV compoent is named: flc
this.onEnterFrame = updateTime;
function updateTime():Void {
tf1.text = flc.totalTime;
tf2.text = flc.playheadTime;
The textfields may display "undefined" for a second, until
the metadata for the FLV has loaded and the video has started.
HTH.
Tim -
FLVplayback and preview image how to do?
LIke youtube, they have a preview image of the flash video.
How do i get flash using actionscript to dynamically generate a
image realtime?
Oh, one more question, how do i convert any file to an flv
through the internet? dont worry, i'm not trying to beat youtube,
i'm doing this for a music studio website.
I heard of this ffmpeg.exe....how to use this? Do I put this
on my webserver? I use the paid yahoo webhosting.sorry kglad, that won't work. The image file has to be
dynamically generated on the spot online as i am creating a website
for new piano music company. He doesn't know how to use flash and I
have no time to manually do this for every video the web owner
uploads.
Speaking of which, ffmpeg is not compatible with yahoo
webhosting plan. yahoo is only limited to php 4.3.1.1. Switching
webhosts provider is not an option. is there any other way that
when the web owner uploads a video(any format), it can be converted
on the spot into any format(preferbly flv like youtube, but i wanna
add custom birates and such)? is there a way. I contacted yahoo
through email but they never answer(maybe they are too scared that
the answer may make me rethink of my webhosting). -
Hi all,
I have one flvplayback intance name is videom, i just want to
konw if the user clicked play button.
Besause i want to hide a picture when the user clicked play
button, hiding picture is easy, but how can i konw if the user
clicked play?
I use cs3Try this:
Maybe you are looking for
-
Moving iTunes files to external hard drive -- error message
Trying to copy iTunes files from iBook G4 to a nearly empty 320 GB FreeAgent Pro external hard drive. When I attempt to consolidate the files, I receive an error message saying "there is not enough room on external hard drive to copy files". I have a
-
Web Page hangs in Firefox when loading Google Analytics
About 1 month ago I noticed that Firefox hangs when loading websites while loading analytics. I know this because it shows analytics loading on the lower left side of the screen. I've read many posts around the net and I don't have a solution yet. Of
-
I have the current version of Itunes and am wanting to sync my iphone but exclude certain photos, as am close to exceeding my capacity. I do not have a "photos" tab in Itunes and have tried showing/not showing sidebar, etc. Photos tab is not listed
-
Desktop folders/icons moving when awakening from sleep
When I open my laptop and it awakes from sleep, it moves some of the folders around on my desktop. What's going on?
-
Problem with Zen Nano Plus--Please He
I just bought a GB Zen Nano Plus about a week ago. It worked fine until I had to change the battery. Now every time I play the mp3 music it automatically shuts down. I messed around with it and I figured out that every time the backlght shuts off, so