ActionScript 3.0 :: Converting FLV Preloader With FLVplayback Component
Jan 12, 2009
I have a working pre-loader in AS2 that counts up the bytes when loading an flv into a plain video object, and displays a progress bar and percent counter. But now I need to use the FLVplayback component instead, and need to do it in an AS3 projector...and I'm stuck. Please don't tell me RTFM or search Google or LiveDocs -- I've been doing that for several days, and the FLVplayback component drives me crazy. It doesn't seem to have the functionality of a video object, like bytesLoaded, and my attempts to load an flv into the component just give me errors.
point me in the right direction? What I posted is the code that works for AS2 and the video object. The video object is called my_video, the dynamic text box is called progressMessage, and the progress bar is oddly called progressBar. If it makes any difference, I'm doing this in a projector, not a browser.
have a swf that plays an flv in the flvplayback component. Currently, I have an external preloader that loads the swf, then once the swf is displayed the flvplayback component buffers. I would like the external preloader to also load the flv buffer. I had done it before it AS2 by having the first 50% of the preloader be the swf,and then have the flvplayback component invisible and have the last 50% of the preloader do the flv buffer.Maybe this is a crazy solution, is there a much easier and logical way to do this?My real problem is that my external preloader loads the swf and the preloader bar using the addChild method and I can't figure out how to have the swf communicate with it's sibling to update the progress bar on the progress of the flvplayback component.
I 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 want to make a preloader for flash mx 2004 that when it finish becomes to decrement another time. I would like to do it to modify the flash preloader component.
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?
Im 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
I 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.
I 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.
I 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
What 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;
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.
I 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]))
I 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 ?
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.
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
I've a TextArea component in my MovieClip. When I double click on it, I want to switch to TextField component, allowing me to change its content. When I click outside, I want to restart its original class (TextArea).
I'm doing this, but didn't work: element.addEventListener(MouseEvent.DOUBLE_CLICK, changeName); private function changeName(e:MouseEvent):void{ e.target.type = TextFieldType.INPUT; } Where element is a TextArea (classic and dynamic text).
This is how my MovieClip looks. "Name" is the TextArea that I want to allow user changes. I'm setting it like this: Nombre de instancia = Instance name (empty) Texto clasico (classic text) Texto dinamico (dynamic text)
The MovieClip is controlling my by own base class (called 'ConfLayer'). Inside it I have this: public function doStuff(e:MouseEvent):void{ // element = TextArea 'Name' element.addEventListener(MouseEvent.DOUBLE_CLICK, changeName); } private function changeName(e:MouseEvent):void { var tarea:TextArea = e.target as TextArea; var tf:TextField = tarea.TextField; // this line throwing error tf.type = TextFieldType.INPUT; }
Because AS3 gives me errors, I tried this: private function changeName(e:MouseEvent):void { e.target.TextField.type = TextFieldType.INPUT; } When I double-click on TextArea element, the previous string removes and I can't write nothing.
I 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.
i 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]...
Will 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);
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?