ActionScript 3.0 :: Preloader For A Video (not Streamed)?
Sep 21, 2008
I'd like to make a preloader for a flv playback, so while waiting for the video to load, you can have the preloader. What I did was put the flv playback inside a movie clip, which has as the first frame the preloader and as the second frame the flv playback (which I call as instance myVid). But it doesn't work, it stays in the first frame with the bar loaded and never goes to the second with the movie clip. Maybe I shouldn't use the normal code I use to make a preloader for a whole site. Can anyone help? I attach the code I use for the preloader.
View 8 Replies
Similar Posts:
Oct 20, 2006
I need to create a progress bar for my streaming video to let the user know how much of the video has already been downloaded/streamed. Making a progress bar for a progressive download is easy, just check the bytesLoaded vs the bytesTotal. But apparently with a streaming video those do not work. What exactly do I need to check in order to create a progress bar for a streaming video. Here is my sample code that doesn't work for the progress bar.
View 9 Replies
Feb 23, 2010
[code]This is my code that i have inserted into the first frame(?) of the fla file.When I use the swf in a html web page, i can hear the video but I can't see it and play skin cannot control the video.This is also a part of a security token code which i'm implementing on the client-side.
View 14 Replies
Mar 24, 2010
I have Flash Media Server, and I think it's free edition coz i dont input serial number when i installed it..I have problem to have people stream from my pc, there's a public IP address assigned/mapped to a development PC here..I'm able to stream it locally from my computer, fyi, my computer is using windows XP and the development PC is using windows 2003 server..and there's an apache webserver already installed there..
1. if i dont install the apache server bundled with the FMS, is it okay? I dont intend to stream through port 80...
2. what is the difference between port 1935 and 19350? I saw 2 files in the FMS directory, namely fms.ini and Adaptor.xml in fms.ini it binds to 1935, but in adaptor.xml it binds to 19350...
3. in adaptor.xml there one value like this:
<HostPort name="edge1" ctl_channel="localhost:19350">${ADAPTOR.HOSTPORT}</HostPort>
there's an explanation in above it that it binds to some ip we configure here, but if you wanna bind to any ip then omit the localhost and leave it like ":19350" my question is that is this necessary to do so in order for people outside our network to connect the development PC ?
4. about security at the proxy server or ISP, I've confirmed with my boss that he's opened the port 1935 to be allowed, and he's also confirmed with the ISP that they dont block port 1935..
View 2 Replies
Aug 5, 2009
Im trying to capture mic data from a swf, stream it to adobe flash media server, and save it as a wav file. Currently I can only stream the mic data to the server and save it in FLV format. how I can covert it to a WAV or save it as a WAV?
View 2 Replies
Jan 11, 2011
I am loading various movies into a "shell"movie as and when they are needed using loadMovie... However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path...
_root.holder_mc.loadVariablesNum("scorevars.php"," post");
But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact...
View 1 Replies
Feb 24, 2004
I am loading various movies into a "shell"movie as and when they are needed using loadMovie.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path _root.holder_mc.loadVariablesNum("scorevars.php"," post");My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.
View 5 Replies
Feb 24, 2004
Scenario:I am loading various movies into a "shell"movie as and when they are needed using loadMovie... No problems there.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the completepath..._root.holder_mc.loadVariablesNum("scorevars.php"," post");But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.
View 5 Replies
May 3, 2010
I have spend my whole day trying to find a good way to access ID3 tags in AS3.0;In my project I am making a sound object and assigning it a URL: Then I stream the sound into a sound channel:[code]I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.[code]
View 9 Replies
Oct 13, 2011
Just wanted to ask, is it at all possible to create sound spectrum from the data that RTMP server streamed? I read this computeSpectrum and it says
"In addition, this method cannot be used to extract data from RTMP streams, even when it is called by content that reside in the same domain as the RTMP server."
I will not be using FMS so it stays inpossible. Are there any available hacks with php and the server or whatever?
View 1 Replies
Dec 14, 2011
In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position.So after research the URLStream class seems to cure this problem and I found a good streaming class hereThis class works very nice except when there is heavy load on the server causing lag.When this lag happens the class will dispatch the complete event yet the image will not show.Watching the download with HTTPFox shows the image in fact does get loaded.
I assume there is some kind of delayed issue with the URLStream class and the author of this class tried to correct it using the setTimeout method. I also tried delaying the dispatching of the complete event using a timer and not dispatching until if( this.width != 0 ) was detected and this seemed to work much better.But it is still haunting me just not as often.
View 1 Replies
Apr 10, 2012
Does anyone know if Flash Media Server has a function that allows you to see statistics on which particular streams are being delivered?Seems like that would be a handy tool in determining which bitrates are important to continue providing, and which are superfluous, and if it's time to try encoding at higher bit rates.
View 2 Replies
Nov 8, 2004
I am trying to have a streamed mp3 loaded from xml, randomly play a new song on complete. I already have it play randomly onload. Here is what I have, and it doesnt work .
Code:
tickerLength = 52;
for (i=0; i<tickerLength; i++) {
leading += " ";[code].........
View 1 Replies
Nov 8, 2004
I am trying to have a streamed mp3 loaded from xml, randomly play a new song on complete. I already have it play randomly onload. Here is what I have, and it doesnt work :
Code:
tickerLength = 52;
for (i=0; i<tickerLength; i++) {
leading += " ";[code].....
View 1 Replies
Apr 7, 2011
is there a way to define a client side playlist like this:[code]but instead of a single videofiles for each playlistentry use dynamic streaming?I know how the DynamicStream class is working and how to set it up but i can't find any information if it is possible to combined those two techniques.
View 1 Replies
Dec 23, 2009
I have a xml video background and need to add a preloader before the video is buffering. The problem is that I am loading the video from xml file and from what I've tried the preloader works for the swf file but not for f4v video loaded externally. You can check the preview here: [URL]. What I've come with is to compress the video so Ill get a smaller file or change the buffer time, but the priority is to come out with the preloader.
View 1 Replies
Jun 25, 2009
I'm still learning AS3. Having been on [URL]..I've managed to get my FLV playing but I can't find how to create a preloader bar like the one seen on this website I've done preloaders to use with external swf files bytes loaded / bytes total but I don't know how to do one for use with this video code.
[Code]...
View 13 Replies
Aug 30, 2011
I have created a preloader, to load a single swf file, that has embedded video and sound.It works when I test it, using Air 2.6 settings. But when I compile it, the swf plays, but the sound and video are missing in the swf. I addded the swf, the mp3, and flv files to be included in the Air app. Do I need to add a reference to them as well in the code, or is there some other reason they may not be appearing? Do I need to load the src files into the library of the preloader?
If I play the original swf, that is being called and loaded, it plays with the sound and video. The original swf, the sound src and the video src are all in the same directory with the preloader.fla.
Here is my code for the preloader. It is all in frame 1 of my flash file.The file does not have anything else, other than the dynamic text instance "percent" on the stage.
[Code]...
View 4 Replies
Sep 26, 2011
I'm using the FLV playback component and the pre-loader is not working. I have also right clicked on the flv playback component, gone to properties and unchecked Export for Actionscript but still doesn't work.
View 7 Replies
Sep 25, 2011
I'm using the FLV playback component and the pre-loader is not working.I have also right clicked on the flv playback component, gone to properties and unchecked Export for Actionscript but still doesn't work.
View 2 Replies
Sep 12, 2010
I have preloader bar of loading video. If i use NetStream actions bytesLoaded and bytesTotal to create preloader this show how many bytes are loaded I want to create how many seconds of video file are loaded. The same preloader are on youtube player. If i use NetStream actions and if i move slider of position to end of preloader bar video is no playing from place where i put slider but slider are go back, and then video is playing. I want to video are playing from place where i put slider.
View 1 Replies
Oct 14, 2010
I am very new to Flash CS4, however I was able to create a preloader with help from a Dan Carr tutorial.Here is my source
import fl.video.*;import fl.controls.ProgressBarMode;
// Set Variablesvar flvControl = display;var flvSource = "op.flv";[code]....
The movie loads and plays but the preloader only loads part of the way. How would I go about having the preloader progress bar load all the way then have the movie start?
View 10 Replies
Aug 1, 2011
I also have a bit of code to stop the video from playing and then resuming again.import flash.net.NetConnection;import flash.net.NetStream;import lash.events.AsyncErrorEvent;import flash.events.NetStatusEvent;import flash.utils.Timer;
/*1)convert the video into an flv or f4v supported format2) go to library and select new video3)place the video to the stage4)give an instance name of videoHolder*/var myVideo:NetConnection = new NetConnection ();//null because we are going to use the video
[code].....
View 5 Replies
Jul 25, 2009
I want to add this function to my videoplayer class :
Code:
private function onProgress(e:ProgressEvent):void{
var percent:Number = e.bytesLoaded / e.bytesTotal;
[code].....
View 4 Replies
Nov 13, 2009
I have an external video that I have attached through NetStream and it works okay, however I have another one that is longer and not working at all. That file is set up exactly the same as the one that is working, so I don't know what's wrong with it other than perhaps the file is too large to handle that way?
[Code]...
View 2 Replies
Feb 8, 2011
I am using the video component with AS3. I have an external flv which loads nicely...that's fine. Now I am looking for a way to remove a preloader animation once the video starts streaming. The preloader is just an animation without a status (percent) bar. In plain English the code would be: if flv file is streaming, fade preloader animation I am also noticing that the first frame of the video shows while it's loading...is there a way to change it so that nothing is seen until streaming? If worst comes to worst I can always make a mask.
View 1 Replies
Mar 30, 2009
I am new to flashCS4 and done 2 of lee's tutorial's and have 2 questions.
1) how/where do I add a preloader to file when each vid is clicked on ?
2) how do I set a mc to be seen as a button in browser when you mouse over it ?
VideoGallery: [URL]
AS Code:
Select allstop();
hum1.addEventListener(MouseEvent.MOUSE_DOWN, vidStart1, false, 0, true);
hum2.addEventListener(MouseEvent.MOUSE_DOWN, vidStart2, false, 0, true);
hum3.addEventListener(MouseEvent.MOUSE_DOWN, vidStart3, false, 0, true);
hum4.addEventListener(MouseEvent.MOUSE_DOWN, vidStart4, false, 0, true);
[Code] .....
View 2 Replies
Dec 16, 2009
I have a preloader and 10 swf that needs to be cache. My problem was that when the preloader started, it was not only caching the swf, but a lot of .flv and a lot of the same player skin (flvplayback component). I don't need and don't want to preload or cache those .flv. They need to be load only when someone is on the page not before (in real time, not preload).
But the problem is that the videos (flv) are on the first frame of every swf cause I need the video to start when they enter the page. So when the preloader start, it starts to preload the videos too (since they are on the first frame).Is there a solution to change the behavior of the preloader or restrict what he can load ?Is there a better way to make my video start on enter frame without putting it on the first frame ? Something that would not be preload and cache but that would start when the user enter the page ?
View 1 Replies
Aug 24, 2004
I need to load an external movie that includes some video. That external movie is like 95mb. How can I preload everything so that there is no lag when I get to the scene where I load the external swf? This movie, of course, is not getting put on the internet. I am using Flash as sort of a high end Powerpoint app. Not sure if this is just a basic preloader or not.
View 2 Replies
Apr 24, 2010
how to make text acting as a preloader so that its color changes as preloader percentage. i dont mean how to apply the math, i mean how to mask it or whatever action to achieve that effect?
like for example imagine the red is constantly growing to the right letter by letter (actually pixel by pixel:
View 2 Replies