ActionScript 2.0 :: Using The FlvPlayBack Component?
Apr 8, 2011With autoHide set to true would like to have the skin show when a video is loaded then fade away after a couple of seconds.
View 3 RepliesWith autoHide set to true would like to have the skin show when a video is loaded then fade away after a couple of seconds.
View 3 RepliesI was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:
import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);
[Code]...
But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?
I know nothing about flash but this is what I am doind with CS5 Adobe Flash Professional:1. Import video. I type in the server location of my .mp4 file.Now when I save it and embed on a webpage it loads and works perfect, however it is not looping. So my question is in adobe flash professional what do I need to exactly?
View 1 RepliesIm using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls. I dont really want to create my own controls, as im happy with the flv playback component. The FLVs playing in the component are external and are loaded into it via as3
View 13 RepliesI have tried numerous things but when I insert the FLVplayback Component into flash that is linked to an external video source the fullscreen function will not work but the video plays as needed.
View 15 RepliesI am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and hence the onComplete event is never fired. I somehow wanted to refresh the component when a new video is to be played.
View 1 RepliesI imported the flvplayback component on-stage in one frame and gave the instance a name of hv.If a button takes the movie to another frame, how do I pause the flv at that point
View 1 RepliesWhat are steps to do unload a flv file after clearing necessary memory used for its loading and also to remove the FLVPlayback component.his is the code i have used for creating FLVPlayback component and setting its source.
public var m_flvPlayer:FLVPlayback;
m_flvPlayer= new FLVPlayback();
m_flvPlayer.autoPlay = false;
[code].......
Publish to Flash 8 and using the FLVPlayback component as part of a larger elearning course.We have a legacy pause button that works by recursively looking through every item on stage and if the item is a movieclip following its children and so on. Something like this (there is more to the whole thing, but this is where the problem is):
findCurrent = function (obj){ // RECURSIVE SEARCH FOR MOVIECLIPS for (var i in obj) { if (typeof (obj[i]) == "movieclip" && obj[i] != obj) { if (obj[i]._name == "pauser"{
continue; } var m = obj[i]; m.frameWas = m._currentFrame; isCurrent.push(m); findCurrent(m); } }};
The issue is that when using the FLVPlayback component the 256 recursions limit is reached. I'm guessing that the video part contains a reference to playback controls skin and the playback controls skin contains a reference to the video part and the recursion just goes round and round till it hits the limit and then all actionscript is disabled for the rest of the file.
I thought of adding a counter, and that is probabaly a good idea, but I was wondering if there is anyway to identify that I've hit a video player and stop following it?
Obviously the topeof(myVideoPlayer) is coming back as "movieclip" or I wouldn't be getting this problem. I don't think there is a getQualifiedName for AS2, right? I looked at the properties and couldn't find one that said, "clearlyVideoPlayer."
I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1".This works great and gives me the right volume setting, but if the user touches the volume slider (which I'd like to keep), the new maximum volume is only one.
View 2 RepliesI have an array of videos coming from an XML doc. I am getting the name of my video in the trace statement okay, but am not sure how to go about loading the FLV video into the player.I have an FLVPlayback component on the interface named "video". The video I'm going to load will be ("videos/" + videoArray[0]))
View 3 RepliesIs there any way that i can load a local mp3 file using flvplayback?
View 2 RepliesI try to modify ncmanager file. (I want add parameter when connect method is called). I've edited this file but nothing happens in my application. After two hours of headacke, I delete NCManager (I've made a copy on my USB key).I try to place a FLVPlayback on my scene : no problem ! I can place it, but it does'nt work as I want.So I discover that even I try to change NCManager, this file isn't read.I need help to understand what I must do when I modify these file. Should I have to put it somewhere ? must I compile them and how ?
View 14 RepliesI need to use cue points in an FLVplayback component to load other movies. I've looked at several tuts, but most are for navigation.
View 7 RepliesI've noticed, that placing an FLVPlayBack component on Stage, instancenaming it myFLVPlayer and using this code:
Code: Select allmyFLVPlayer.addEventListener(Event.COMPLETE, playAgain);
function playAgain(e:Event):void {
trace("starting over");
[Code]....
Video won't play from XML
I have been trying to pull a single random video (.flv) from an XML list to play it using the FLVPlayback component. I managed to get the description from the <desc> tag and the title <vidtitle> tag in the xml file but can't get the flv to play in the player.
I dragged a FLVPlayback component onto the stage and gave it an instance name of "display" but I still cannot get it to work. I get no errors when hitting "control + enter" the video never loads. My code is below.
Code: Select all//Let's load our video classes
import fl.video.*;
import flash.events.Event;
import flash.net.*;
[Code].....
I'm working with an FLVPlayback component in Flash CS4 and I'm trying to target the seek bar handle, which according to what I've read so far, is created at runtime and it's assigned an instance name of handle_mc.I've tried targeting that, but with no success. After researching for most of my day and trying several different methods, I have no idea what else to do to have access to that handle and change its alpha property
View 1 RepliesI did a search, but couldn't find my issue, which was rather surprising. I have an actionscript 3.0 component (flvplayback) and I want to simply change the highlight color from the default green color. You used to be able to do this by a style manger "halo" color or something I don't remember exactly (AS 2.0), but this doesn't work w/ 3.0 components. I thought I could double click on the component in the library, but I can't seem to change the style that way either. I have also tried to place individual items on the stage, like the play button and change the styles there, but it doesn't inherit the changes to the flvplayback component.
View 2 Repliesi have set up a flvplayback instance and when a button is clicked i want it to load in and play a new flv
i have the following code:
// Add FLVPlayback Class (required for Playing flv's)import fl.video.*;// Create a new FLVPlayback object to hold the video var myVideo:FLVPlayback = new FLVPlayback();// set the width of the videomyVideo.width = 544;//set the video's widthmyVideo.height = 304;//set the video's heightmyVideo.x = 200;//set the video's horizontal positionmyVideo.y = 88;//set the video's vertical position// set the video source to the current video stored in the variable myFlvmyVideo.source = myFlv;// put the video on the stageaddChild(myVideo);
all this works fine and the first flv loads and plays fine no problems
[Code]...
I know how to use netstream but unless there is a way to use skins with it its not the way i want to go.
I have a couple of lessons that I have created in Flash CS3 for Flash Player 9 with AS3.In the main timeline of the lessons I have an flvplayback component setup to connect to our instance of Akamai's flash ondemand application to stream down several videos.
I have a customer who is behind a client side proxy server that is having an issue where the first 10-15 seconds of the any video plays then the video drops out and it appears that the flash player attempts to make a connection on another port which causes multiple audio streams to play but the video never comes back.From the network sniffer read out that their IT send me it appears that the flash player initially attempts to get out on port 80 then attempts port 1935 then attempts 443. if there is anyway to stop the flvplayback component from attempting multiple connections?
I created a stripped out application that just has a flvplayback component in it and when the end user opens that one it streams the video fine. I can only assume that my lessons which are using scorm and webservices to make database updates are reaching some bandwidth limit that the end users proxy doesn't like.
my flvplayback component is not working when i tried to pass the url of the video to be played from js to the actionscript.(using actionscript 2)
I properly embedded the swf and added the object ids as well. i just assigned the url to a string and then passed it to the function in the as but it's not working...
The problem is that f4v files that are not playing progressively. they fully download before starting to play.Here's the code (newly modified without success) for a simple module that plays 3 different f4v's on radio buttons. In theory they should stream progressively in a flvplayback instance called qualtestplayer when a radio button is pushed. [code]...
View 6 RepliesWill the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.
Here's my code... it's pretty simple:
import fl.video.FLVPlayback;
var myMusic:FLVPlayback = new FLVPlayback();
myMusic.source = "mySong.mp3";
myMusic.skin = "SkinOverPlayMute.swf";
myMusic.skinBackgroundColor = 0xCCCCCC;
addChild(myMusic);
I've been trying to get cuepoints out of my flv video with the following code without success:
[Code].....
Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file? I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project. When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin. If it is not possible to publish as one swf, how I can insert the 2 swfs into a Captivate file and get them to work?
View 3 Replies[URL]
I followed the above example in AS2,but only get the error:
Call to a possibly undefined method getNetConnection through a reference with static type fl.video:INCManager.Here's my code: this.addEventListener(Event.ENTER_FRAME,
[Code].....
I use flvplayback to play a 20 seconds flv video, but I can't get accurate playheadTime no matter how to set the attributes.
Here is my as3 codes.
import mx.video.*;my_FLVPlybk.playheadUpdateInterval=10;//my_FLVPlybk.seekBarInterval=100;//FLVPlayback.seekBarScrubTolerance=100;function the_play(eventObject:Object){ ta.text = my_FLVPlybk.playheadTime; // ta is a textarea.}function the_end(eventObject:Object){ ta.text = "video over";}my_FLVPlybk.addEventListener("playheadUpdate", the_play);my_FLVPlybk.addEventListener("complete", the_end);
I drag seekbar to between 0 and 8 seconds, it always obliges to 8.333 .
i'm trying to embed h264 mp4 video into website using flash cs3 professional.
when i select the source file it's looking for .flv files and not the mp4 file so the mp4's are greyed out.i read a great tutorial using a pc which shows the workaround for being able to see the mp4 files.url...I'm however using a mac and this method of putting an * in the file name box doesn't work on mac.
Is there any way to read cue points from a flv which i load intro a netstream object? I dont want to use a component.
View 1 RepliesHow do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add SoundMixer.stopAll(); for every button in my main and loaded swf but this will stop my background music as well....
The flvplayback component is located in another swf file and the code was added on the second frame of the movieclip call "scrollGroup"
//////////////////////////////////////////
import fl.video.FLVPlayback;
import flash.events.Event;
[Code]....