Preloader for Flash video FLV

Hello

I'm still learning AS3.

After being on gotoandlearn.com I managed to get my FLV play but I can not find how to create a preloader bar like the one seen on this site

http://sleeptolive.com/

I did the preload for use with bytes of external SWFs loaded / total of bytes, but I don't know how to do one for use with the code for this video.

The code I have so far:

Video: video of var = new Video (883, 370);

addChild (video);

Video.x = 10;

Video.y = 10;

var nc:NetConnection = new NetConnection();

NC. Connect (null);

var ns:NetStream = new NetStream (nc);

ns.addEventListener (NetStatusEvent.NET_STATUS, onStatusEvent);

function onStatusEvent(event:NetStatusEvent):void

{

switch (event.info.code)

{

case "NetStream.Play.Stop":

removeChild (video);

removeChild (masker).

removeChild (stopButt);

gotoAndPlay (2);

break;

}

}

var meta: Object = new Object();

meta.onMetaData = function(meta:Object);

{

trace (meta.duration);

}

NS.client = meta;

video.attachNetStream (ns);

NS. Play ("sleepToLiveIntroMovie.flv");

Video: video of var = new Video (883, 370);

addChild (video);

Video.x = 10;

Video.y = 10;

var nc:NetConnection = new NetConnection();

NC. Connect (null);

var ns:NetStream = new NetStream (nc);

ns.addEventListener (NetStatusEvent.NET_STATUS, onStatusEvent);

var t:Timer = new Timer (100.0);

t.addEventListener (TimerEvent.TIMER, preloadF);

t.Start ();

function preloadF(e:Event) {}

trace (NS.loadedBytes, NS. TotalBytes);

{if(NS.loadedBytes>0&&ns.loadedBytes>=ns.) TotalBytes)}

t.Stop ();

t.removeEventListener (TimerEvent.TIMER, preloadF);

t = null;

}

}

function onStatusEvent(event:NetStatusEvent):void

{

Switch (event.info.code)

{

case "NetStream.Play.Stop":

removeChild (video);

removeChild (masker);

removeChild (stopButt);

gotoAndPlay (2);

break;

}

}

var meta: Object = new Object();

meta.onMetaData = function(meta:Object);

{

trace (Meta.Duration);

}

NS.client = meta;

video.attachNetStream (ns);

NS. Play ("sleepToLiveIntroMovie.flv");

Tags: Adobe Animate

Similar Questions

  • Transparent background for Flash video

    I would like to know how to create Flash videos with a transparent background. This allows video to be played on a web page so that the content of the web page shows through the alpha channel of the video. I can edit video in Adobe AfterEffects to generate the file .flv with an alpha channel that can be exported in Flash 8. But when I import into Flash 8 and create the .swf file, Flash provides an opaque background (I chose the color). I want to be able to keep the transparency effect, I created in AfterEffects.

    Here's a URL for the effect I want to achieve:

    http://eimpression.myrealtytools.com

    The video appears rooted at the bottom of the page. It is a very cool effect that I would like to be able to reproduce. I'm guessing that it may require that some actionscript to control the alpha of the background. Any help to understand this would be greatly appreciated.

    to get the transparency effect, actually enter you the .html surrounding using "wmode = transparent" Google this and you should fine a tutorial. Don't forget that when you actually wmode and its value to paste here twice (like all other tags that are already there).

  • No sound for Flash videos in any browser

    I am running Windows 7 Ultimate 64-bit with Service Pack 1, which is a 64-bit operating system.

    • I can play videos in all browsers (IE, Firefox, Chrome and Opera), but do not hear any audio signal that use Flash.
    • Videos that use Apple's Quicktime works perfectly with audio in all 4 of these browsers!
    • If I download the Flash video on my hard drive and the cheek, the sound works fine.
    • Can I play music on my desktop and all other sound works fine.
    • It is not my hardware; audio works fine.

    It's the Flash drive I have installed:

    • Adobe Flash Player ActiveX 64 - bit Version 11.1.102.62 11
    • Adobe Flash Player 11 64-bit Version of the 11.1.102.63 Plugin
    • In control panel - system and security, there is an icon called 'Flash 32-bit Player'.  I thought I had installed the 64-bit version.  Is simply misnamed or a clue to the root cause of the problem?

    The problem is with Adobe Flash Player.

    • Audio was OK during playback of a video in any browser.
    • I recently installed a proposed update and then no sound!
    • This has happened several times in the past.
    • I have no audio signal until the next update, and then it works.
    • Next update, it's broken again.
    • It is the installation of Adobe.

    My recent attempt to solve this problem:

    • Uninstalled Adobe Flash Player ActiveX 64 - bit Version 11.1.102.62 11
    • Uninstalled Adobe Flash Player 11 64-bit Version of the 11.1.102.63 Plugin
    • Downloaded the latest version of Flash Player from Adobe
    • Reinstall the Flash Player
    • Restarted
    • Tried to launch videos in IE8.  No sound!
    • Tried to launch videos in Firefox.  No sound!

    The solution proposed in http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html is poorly organized and poorly written as it is difficult to follow the steps.  It's basically a run-on sentence of 21 pages.  Above all, he tries to solve the problem of browser.  I don't think that it is a browser-specific problem.

    Does anyone have a solution for this problem that actually works?  Many people have offered solutions on forums everywhere on the Internet of "turn on your speakers" to «editing the registry...» ».  I have not found a solution that works.  I spent hours scouring the Internet and various forums for a solution to this problem.  There are thousands of people who are trying to solve.  What is the solution?

    Do a clean install: How to do a clean install of the Flash Player?

  • single screen for flash videos

    I have a guitar tutorial on my website. I have a lot of 1 minute flash videos that can be viewed. Right now I use javascript to open a new browser to view each video... This means that there are different screens (video) for each video. How to use 1 simple video player to play flash videos? so, when I click on a playlist video shows in the same player? I don't know if this can be understood without an example of Mr. I want just 1 video player on my page and a link or playlist to play the videos in the same drive... Sorry if it does not make sense!

    Thank you

    Player WWD

    JW Player

    FlowPlayer

    Wimpy Rave

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

    Post edited by: Nancy O.  Links changed

  • Flash Video (FLV) slide show & amp; ActiveX

    I've added a FLV video to my index page. This is a slideshow I created in Photoshop first and then exported a .flv file. I have not yet published on this site (maybe that's my problem, but I don't want to post until I know for some). Whenever I saw in different browsers, pop iExplore attention Active X. Safari and Firefox are very good. I don't want people who consult the website having to click 3-4 warnings just to display the first page on this Web site. I have tried to research this issue online and all I could come up with was that I might need a file named AC_RunActiveContent.js. But all the comments say that Dreamweaver inserts this file. Well, it didn't, so I guess I don't need! Do you know how the ActiveX popup go away. (I'm a newbie, so please use a 'simple' language!) Thank you!

    Security settings for the IE browser will give you the ActiveX warning when you
    get a glimpse of a local file. Place the page files and the dependant to the server and test
    Once again. You should not see the warning.

    --
    Nancy O.
    ALT-Web Design & Publishing
    www.Alt-Web.com

  • Difficult to settle for Flash video

    http://img.skitch.com/20100414-chq1qrm7879yqps5s886ixx82f.jpg

    http://img.skitch.com/20100414-n666ubpdxebg9dgtbwx9pqwmb3.jpg

    Just Acrobat will not place me the video inside the box.

    As I said, it seems that you must align the selected grid. You can display the grid (in AA5 - I'll have to wait for the job to comment on if it has changed more recent versions) by pressing ctrl-u and the snap is ctrl-Shift-U.

  • Format options for AE CS3 - Adobe Flash Video - causes the crash

    As the title States. I see so many people say Adobe Flash Video is the way to go for export options still AE always crashes on me when I choose it is-Options of Format (output module in the render queue).

    I use Flash all the time and it works fine but since I can't access format options FLV of AE. Whenever I press on it AE crashes everything.

    It's one of the things Adobe just never fixed in CS3? I don't bother to read reviews saying to use anything else to make it. This is not what I am asking so save. I created a simple object in AE and I just want to see what it looks like with FLV export. AVI seems good but looks like everyone said it would be better as FLV. Given that I can't access the options of format to FLV is the worst option and unclear, which leads me to believe he was one of those things Adobe just abonded in CS3.

    I searched and found nothing. I will continue my research, but the choice of Adobe for the format of forum could not be slower. If Adobe can answer this question, perhaps I can shed some light on the economies of its members an agony and teach them some PHP. It's rediculously slow and my worst forum puts it to shame.

    The implementation of FLV in CS3 left a lot to be desired and video Flash - both FLV and much F4V the best and the most recent- are much better in CS4 and later versions. (Don't forget that Adobe acquired Macromedia just before CS3 came out, so it was not a lot of time to get solid integration.)

    If you can, I recommend using something later than After Effects CS3 for Flash video output.

  • Computer lock up on flash videos.

    Recently, I rebooted my computer and have had some problems with the hard lock flash videos force me to restart. This never happened to the videos on my hard drive, only these im in streaming on youtube/justin.tv and other video sites flash online. Sometimes it will lock to the top of immiditely on the first video, other times it will happen after awhile, and sometimes it happens at all. The more I see videos more randomly it must lock up.

    I thought it might be something to do with internet explorer, so I downloaded chrome, but it does not solve the problem either.
    Another thing is it's a blocking 'slow', when this happens nothing will respond on the keyboard (caps lock, shift, ect) but my mouse cursor will still for a while, and once it happened that I was talking to friends on Skype and I could still hear talk, after a few moments Skype dropped me out of the call, and after a few more moments I heard a beep sound of my computer Tower, then my mouse cursor has stopped working - force me to restart.
    Any help would be appreciated.

    Disable acceleration for Flash video.

  • create a preloader for flv

    I don't know why the following code does not work. If I keep the ns.play("flv/movie/flv"); line outside the PlayerStatusHandler the film plays very well, but I am trying to create a preloader for the flv file using ns.bufferTime. My first switch statement works very well, but the latter is never called.

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    Create an object to contain metadata

    var md_obj:Object = new Object();

    md_obj.onMetaData = metadata;

    md_obj.onCuePoint = onCue;

    NS.client = md_obj;

    ns.bufferTime = 5;

    Create an event listener to listen to the status Net (event video)

    ns.addEventListener (NetStatusEvent.NET_STATUS, PlayerStatusHandler);

    function PlayerStatusHandler(event:NetStatusEvent):void {}

    switch (event.info.code) {}

    "NetStream.Play.Stop" case:

    replay_mc.visible = true;

    break;

    case "NetSream.Buffer.Full":

    NS. Play("FLVS/Movie.flv");

    break;

    }

    }

    Start and stop your flv outside your check for buffer.

  • Prepare the video for Flash

    I have some videos that I prepared to play Flash on a website, but I have mucho problems get Flash to recognize the files that I want to play. I use Final Cut Studio - preparation FCP and compressor to encode. Should I do something bad encoding or prepare the video for Flash. I would use Adobe encoder, but is not compress anywhere near the necessary efficiency, so I'll try to properly prepare their in the compressor.

    Any suggestions/advice?

    you create flv files?  If so, you use the flvplayback component in flash to play the flv file?

  • Convert mpeg or avi in flash for Web video

    Hello
    I wanted to know how to download a mpeg, avi or wmw to a website and convert a file flash video? What software is involved? What is the easiest way to achieve this? Is there a tut out there or a book that details of this method?

    Thank you

    I wanted to do this in the past, it is possible with ffmpeg, but unless you are a programmer of several which I am not it seems pretty advacned... (I gave up). There are hosts that that will add to their servers for you, but it's quite expensive.
    In the end I decided to make a link to...
    http://www.rivavx.com/?encoder
    They offer a free encoder, your users can download and convert video files to flv format before downloading.

  • How can I watch and download videos like youtube flash videos if flash player can't stand not for mobile phones using the android version 4.0?

    My mobile android version is 4.1.2. At the present time, I can't watch and download videos from youtube. If flash player does not support any mobile by using the version of android more 4.0, how can I watch and download these flash videos?

    You can always download and install Flash for Android 4.0 which still works on android versions greater than 4.0, which is located on this site (http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html), which is the own adobe site. Look for the Flash for Android 4.0 and the latest version. Although it is not advisable to use an outdated version of flash as it is not secure.

  • Recommended hardware requirements for flash streaming video?

    What are the hardware requirements recommended for streaming 720 p using the Chrome browser without lag or stutter flash videos?

    I ask, not minimum and recommended requirements.

    You're probably better to ask Google (for Chrome) and Adobe (for flash).

    However, this can help - http://www.adobe.com/products/flashplayer/tech-specs.html of https://support.google.com/youtube/answer/78358?hl=en

    See also https://helpx.adobe.com/flash-player/kb/poor-video-quality-flash-player.html that can help.

  • Need help with coding for HTML5 with emergency Flash video

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 with emergency Flash video. Not sure if the coding is correct. Do I need any other JavaScript etc.?

    code.jpg

    Another thing is that you don't have to include SWF as aid manual if you provide all 3 ogv, webm & mp4 video formats as one of these formats will certainly be played in any browser that is fully compatible HTML5.

    Still one thing you could do if you don't mind hosting your video on Youtube is to get an embed code for Youtube - in this way, you don't have to convert all the files. YouTube will do it for you and it will play on devices of HTML5 as well as supports Flash player of relief for devices that cannot play HTML5.

  • problem with the tutorial: creating a dynamic playlist for streaming flash video

    Hi, someone tried the tutorial: creating a dynamic playlist for streaming flash video?

    I followed the instructions exactly as stated in the tutorial and test the fla file, it worked perfectly, when I open the swf file using macromedia flash 8. All looks good. Nothing has changed except that the url is replaced by 'rtmp://localhost/videosource' in the xml file.

    After I publish the file by using the parameter: network access only, I try to open the file swf and html file, the thumbnail does not appear and there is no way I can click on videos. What I see is that the list, and there is no answer the flash media server 2. All files in the same folder. Someone please help with this problem? Thank you

    .. .i debug movie step by step
    and realized that the xml file is read by the code...

    Your initial problem said it worked but not playing outside of the
    Flash authoring environment simply load the SWF from the hard drive.

    The Flash programming environment is an environment of confidence and so you really
    need to test what a swf loading in the mode of deployment since the
    hard drive is not a valid deployment, unless a Flash player installed is
    available outside the web browser that you would like you have the
    Authoring tool and your users will not.

    Use a browser with http://yourdomain.com/yourmovie.html to make final
    debugging.

    In this regard, you will need to debug movie when running in real time
    mode in a web browser with http:// A technical track, I suggested is of
    create a temporary TextField might be named out_txt and send the trace message to
    It's like out_txt.text += 'my Expression of Trace ".

    --
    LON Hosford
    www.lonhosford.com
    Number of happy bits exempts your way!
    "free23" wrote in message
    News:e4a37a$AK5$1@forums. Macromedia.com...
    Sorry but I don't understand what you mean... to debug the movie step by step
    and realized that the xml file is read by the code...
    It is a sample of my log files:
    #Fields: date time x - pid registered x x - ctx x-comment
    2006-05-15 20:08:58 3072 unloaded application instance (i) 2651170
    VideoSource/_definst_-
    2006-05-15 20:48:19 3848 (s) FCApplication 2641173 successfully loaded.
    2006-05-15 20:48:19 3848 (s) 2641173 Communication Executive
    successfully.
    2006-05-15 20:48:19 3848 (s) SimpleConnect 2641173 successfully loaded. -
    2006-05-15 20:48:19 3848 (s) successfully loaded 2641173 videoconference. -
    2006-05-15 20:48:19 3848 (s) 2641173 Video Playback loaded successfully. -
    2006-05-15 20:48:19 law enforcement components of Communication 3848 (s) 2641173
    successfully.
    2006-05-15 20:48:19 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: not defined.
    2006-05-15 20:48:19 3848 (e) 2641190 error: msg sent to the client command
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: not defined.
    2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: not defined.
    2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: not defined.
    2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: not defined.
    2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
    connection has been accepted. -
    2006-05-15 20:49:42 3848 (s) 2641173 sends this message: Hello! You are
    logged in as: false.

    I hope this helps...

Maybe you are looking for