Preloader only fills 1/2 way before the video starts

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 Variables
var flvControl = display;
var flvSource = "op.flv";
// Create event handler functions to control the progressbar
function progressHandler(event:VideoProgressEvent):void
   var bl = Math.round(event.bytesLoaded/1000);
   var bt = Math.round(event.bytesTotal/1000);
   // Update progress...
   pb.setProgress(bl,bt);
function readyHandler(event:VideoEvent):void
   // Remove progressbar when we start playing...
   removeChild(pb);
// Set progress bar state
pb.mode = ProgressBarMode.MANUAL;
pb.indeterminate = false;
// Add listeners and load the video
flvControl.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);
flvControl.addEventListener(VideoEvent.READY, readyHandler);
flvControl.source = flvSource;
Here is an example of the video:
http://orthopreferred.us/test/ortho/op1.html
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?
Thanks!

I have tried your code change and the progress bar still does not completely load. It goes just a bit the the video appears.
I edited the fla to this (see bold):
import fl.video.*;
import fl.controls.ProgressBarMode;
// Set Variables
var flvControl = display;
var flvSource = "op.flv";
// Create event handler functions to control the progressbar
function progressHandler(event:VideoProgressEvent):void
   var bl = Math.round(event.bytesLoaded/1000);
   var bt = Math.round(event.bytesTotal/1000);
   // Update progress...
   pb.setProgress(bl,bt);
function readyHandler(event:VideoEvent):void
   // Remove progressbar when we start playing...
   removeChild(pb);
// Set progress bar state
pb.mode = ProgressBarMode.MANUAL;
pb.indeterminate = false;
// Add listeners and load the video
flvControl.autoPlay=false;
flvControl.addEventListener(VideoProgressEvent.PROGRESS, progressHandler);
flvControl.addEventListener(VideoEvent.READY, readyHandler);
flvControl.source = flvSource;
flvControl.play();
//end
Progress bar barely moves then the movie appears and plays.
See example:  http://orthopreferred.us/test/ortho/op1.html
My fla can be downloaded here: http://orthopreferred.us/test/ortho/op1.fla

Similar Messages

  • Trying to place an image before a video starts

    I have a very preliminary website with some flash and video. It passes the validator. The flash and video work but the video software isn't able to show any of the video until someone presses the play button - it just shows a black box.
    According to the video software provider, their player can't show a preview image. I wonder if it's possible to "overlay" an image with the same div, then have it disappear or move to the background when the play button is clicked.
    Failing that, does anyone know of a similar program which can insert a video easily into Dreamweaver? The one I'm using was cheap and easy but if it can't/won't do what I need it's a waste of time and effort.
    For some reason I can't paste the code...

    I don't think the suggested method (<div> background image) will work with the example Web page video you linked to.... here is why...
    Inside the <div> is code for a special Windows Media Player... (not a very good choice by the way)... meaning that the <div class="videobox"> has content (the video player) which will cover over the background image.... leaving the black box and some controls showing.
    Code also contains an IE conditional statement and nothing in the
    <!--[if !IE]>
    so nothing displays in FF.... nix all that player code and use something else.
    A better route (in my opinion) would be to first choose a better video type than mpeg (better compression and quality per file size)... choose an mp4 for example.
    Now you have a much wider range of player options.
    For example:
    http://flowplayer.org/
    http://www.pickleplayer.com/
    http://www.longtailvideo.com/players
    Any of these players plus an mp4 file would be much better than your current choice. They all support a "poster frame"... or image that displays before the video starts.
    If you need to convert mpeg to mp4, Handbrake does a good job:
    http://handbrake.fr/
    Best wishes,
    Adninjastrator

  • Hello  Simple problem - don,t know how to solve it.  With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was de

    Hello
    Simple problem - don,t know how to solve it.
    With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was defective and went to get a new Magic Mouse after lots of frustration. Today, I have an edit to do it it does the SAME thing !!
    I was like ????#$%?&*(???
    Opened all the lights and taught I've trow the new mouse to the garbage and was using the defective mouse again... no !! - ??
    Actually, the bran new mouse is doing the same thing. What I understand after investigating on the motion and watching carefully my fingers !! -  is that when I click I have to keep my finger at the EXACT same place on the mouse... drag and release and it's fine. If I click by pushing on the mouse and my finder is moving of a 1/32th of a millimeter, it will release and my selection will be to redo. You can understand my frustration ! - 75$ later... same problem, but I know that if I click with about 5 pounds of pressure and trying to pass my finger through the plastic of the mouse, it you stay steady and make it !
    The problem is that scrolling is enable while clicking and it bugs.
    How to disable it ??
    Simple question - can't find the answer !

    Helllooo !?
    sorry but the Magic Mouse is just useless with the new Adobe Premiere CC and since I'm not the only one but can't find answer this is really disappointing. This mouse is just fantastic and now I have to swap from a USB mouse to the Magic Mouse every times I do some editing. My USB mouse if hurting my hand somehow and I want to got back to the Magic Mouse asap. Please - for sure there is a simple solution !
    Thanks !!

  • In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say  (No Sender) (No Subject) This message has no content  Date: different but all of them way before the internet (late 60's early 70's and some times 2000)

    In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say
    (No Sender)
    (No Subject)
    This message has no content
    Date: different but all of them way before the internet (late 60's early 70's and some times 2000)
    can't open or delete any of them. These messages are not on my PC
    I have three different accounts but it seems like they are coming from my gmail account
    Thanks for the help
    JC Garza

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • TS4006 is there a way to undo the "Erase" command before the deletion starts?

    is there a way to undo the "Erase" command before the deletion starts while the phone is turned off.  In my case the erase is pending the phone being turned on.  Now that I have found the phone, I don't want the deletion to happen.  How can I undo the command before turning on the iPhone?

    There's no way to block the remote wipe.  But once it's been wiped, you can perform a restore from your backup on either icloud or itunes.

  • 16:9,  Black border all the way around the video.

    Using a Canon GL2 video camera I shot a short video in anamorphic 16:9. I then imported it into FCP, in the same format. Exported it and brought it into DVDSP in 16:9.
    Everything looked great on my 4:3 TV. It looked like it letterboxed just fine and would project on an HD TV just fine. However, once it opened up on screen it only covered about 95% of the screen. There was a black border all the way around the video.
    Anyone have an explanation for this. Better yet, a solution to correct this problem.
    Thanks
    Kyle

    If you had got the settings wrong I would expect there to be large borders down the sides, as if you were watching a 4:3 channel on a 16:9 TV that is not set to zoom the image. I don't think you would describe that as 95%.
    When you say open up on screen, do you mean on a computer, or on a projection screen? In either case you see the whole image, including the stuff beyond action safe, which you probably wouldn't see on a 4:3 TV or a 16:9 HDTV. Many cameras only fill 702 of the 720 pixels. If you look at the original DV file from the camera, does it fill the full width of the 720 wide image space, or does it have thin black broders?

  • Audio ends before the video - PPro CS4

    I am using PPro CS4 on windows 7 Home Premium 64bits (i7 - 6Gb - NVIDIA Quadro FX 580 - SATA hd's ...).
    AVCHD Video format were recorded with a Panasonic TM700 (audio is 5.1) and downloaded to the HD using Panasonic HD Writer software.
    I am able to play the video along the audio of each clip using the Windows Media Player, for instance.
    But when I import the clip to PPro CS4, "most of the time" the audio ends well before the video for each clip. The audio lenght will vary from 1/3rd to 2/3rd of the total lenght of the clip. And sometimes it plays all the way. I just can't figure out what is happening. At first I thought I should give more time for the audio to be processed even after the encoding bar (lower left of the PPro screen) had finished, but it didn't help.
    Anybody?

    Thank you Hunt for your fast reply.
    Unfortunately I won't be able to answer most of your question due to lack of knowledge.
    Files are as they were recorded, AVCH and 5.1 audio downloaded directly from the SD card and camera memory (Panasonic TM700). No convertion made.
    No file size limitation whatsoever.
    I do give plenty of time for the files to conform - at first I thought it could be the problem (in my GUI is a yellow bar on lower right)
    When I play the files on Media Player, the audio plays without any problem for the whole lenght of the video. So I assume the file is not corrupted.
    Any clue about this issue?  Tks again

  • My i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this???

    my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • How to add a Title (slide? screen?) BEFORE the video track

    Hello,
    I'm very new to Adobe Premiere Pro and I'm trying to figure out how to add a title to my project but I don't want the title on the start of the video in the sequence. I'd like to add it to a black screen, maybe with some transition effects, that will play prior to the video starting. Do I need to create a black image in CS and add it as a still and just add the title to the still which I can position before the video/audio track A starts?
    I'm hoping that there's something I can do right within Premiere that will give me a place to put the title before my video starts. I didn't see an option to add a blank slide or something to that effect that I can add title to.
    thanks for your assistance!
    The more I learn the more excited I get, this software is great.

    Thanks for the link.. like I said in my post, I'm brand new to the software and I've been watching and following guides for hours. Time is not on my side, I have a project that must be done by the end of this week and I have very limited time after work.
    So when I have the head at the begining of my main track and click INSERT in the source monitor window it inserts a duplicate of the entire video so I have TWO videos in my sequence. This is clearly not what I'm wanting so I'm assuming that there's something I'm missing. I've searched google but don't see anything.
    I'm just looking to add a black, blank screen that I can add a title to before my video begins. I realize this may be rudamentary to season vets but as I said, I'm very new and trying to learn this all quickly and I would really appreciate if someone could point me directly to some information about it. I'm not afraid to read and learn, hell I love it, but I'm pressed for time so someone just telling me, "go learn the software" with a link to a huge FAQ, doesn't really help me.
    I've already learned a ton from some great guides but I have yet to have anyone indicate how to add extra footage (be it a still or blank video) directly from Premiere Pro.
    Thank you all for your time!
    EDIT: I think I figured it out... I just bumped the start of the main track up about 10 seconds and I added new item "Black Screen" right in front of it. I will add the title to this. Thanks all.

  • After a time my computer starts flashing it is resolved by turning off Thunderbird. There is no link to how long before the flashing starts.

    After an unspecified time my computer starts flashing. I assumed it was a hardware problem but found that every time I switch off Thunderbird the flashing stops. If i turn it back on the flashing has stopped but eventually returns. There is no time link, it might be hours before the flashing starts. It is always resolved if I turn off Thunderbird. I have compacted folders, altered check for new email times. I cannot force the flashing to start.

    In System Preferences > Startup Disk, select your internal hard drive by clicking on it. The trouble you are seeing is because the Mac is looking for a network to start from and can't find one. Point it to your hard drive instead.

  • Encore: Audio from imported mpeg goes missing 1/4 of the way through the video

    I have an mpeg that I imported into Encore and the audio stops working part of the way through the video. There are no issues with the audio outside of Encore...it plays throughout the entire video. Any suggestions on what could be the issue?

    Rob,
    Never used Elements, so not familiar with what the Export options are. However, H.264 is best used an a delivery format and not an "intermediate" codec. By first converting to H.264, then letting Encore transcode again, there is quality loss. If you must use an intermediate, an .avi would be a better choice, something high-quality with less compression. For instance the free Lagarith or UT codecs are great (just download/install) if Elements export options would let you configure something like that. Basically a lossless encode step (or as close to lossless as possible). Then bring that .avi into Encore.
    To add to Stan's comment, IF Elements does have an "H.264 Blu-ray" export option available, that should result in .m4v and .wav clips, m2t is not part of the equation.
    Thanks
    Jeff

  • RMBP: Sometimes, after having been shut down, i have to press the power button several times before the machine starts up. It's 3 weeks old, and this has happened 2 times now. Is there something wrong with my rMBP?

    rMBP: Sometimes, after having been shut down, i have to press the power button several times before the machine starts up. It's 3 weeks old, and this has happened 2 times now. Is there something wrong with my rMBP?

    Did you purchase the Mac new?
    You have 14 calendar days from the time your items are delivered to initiate a return as noted here.
    Even though you are past the 14 day limit, if it were me, I'd take the Mac back and explain what's going on. Your Mac should work out of the box.
    message edited by:  cs

  • Hi! I just joined the creative cloud. As a photographer I would like to download photoshop and lightroom. When I try to do this, before the download starts, I get the message: 'we are experiencing some problems, please try later'. I've tried multiple time

    Hi! I just joined the creative cloud. As a photographer I would like to download photoshop and lightroom. When I try to do this, before the download starts, I get the message: 'we are experiencing some problems, please try later'. I've tried multiple times for the last 3 days but no change... Any ideas?

    Michelmolder please try utilizing a different web browser.  If you continue to experience difficulties then I would recommend reviewing Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html for information on how to install Photoshop and Lightroom directly through the Creative Cloud Desktop application.

  • My SD video keeps jumping between the upper and lower frames. So the video starts frame blending and blurring in and out.

    My SD video keeps jumping between the upper and lower frames.  So the video starts frame blending and blurring in and out.  The sequence settings are set to
    Editing Mode: DV NTSC 29.97 frames/second. 
    Pixel Aspect Ration: D1/DV NTSC (0.9091)
    Fileds: Lower Field First
    Display Format: 30fps Non-Drop-Frame Timecode
    720 x480

    What is the source of your video, and exactly what is inside your video?
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • My MacBook Pro gets really hot when I open a video file of any kind and the video starts lagging and the image fades away, also with anything that starts the fan. Is extremely hot on the left upper corner. Is there something I can do about it?

    My MacBook Pro gets really hot when I open a video file of any kind and the video starts lagging and the image fades away, also with anything that starts the fan. Is extremely hot on the left upper corner. Is there something I can do about it?

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

Maybe you are looking for

  • Issue in Multiload script and import text file format

    I am using text output file from essbase to be imported to HFM using multiload The separator is tab for records. It seems i need to use tab separator in row 6 of text file (multiload) for dimension tags because separator should be same as in data rec

  • HT5672 Hi guys , can i update my old macbook to OSX via app store payment?

    Hi guys , it is my fiorst so dont laugh!! i need to update my old macbook ( 2009 series) into OSX Lion can i do it remotely , vioa paying through app store? thks Yiannis

  • Stock posting during Recurring inspection.

    Hello Folks, We are currently in the process of implementing the Recurring inspection process for Batch managed materials. If a Batch of material is available in multiple Storage Locations (for example two), the Job 'Deadline Monitoring of Batches' t

  • VDSK1 configuration not working

    Hi Experts , I have set up all the necessary configurations for feature VDSK1 , including creation rules but when i create IT0001 for an employee , the desired combination is not getting fulfilled . -Mentioned the combination for VDSK1 in creation ru

  • Where to consume expansion click in JTreeTable?

    Hi! I have the following question concerning a JTreeTable (tried it with the classic TreeTableExample2 from http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html ) : I want that whenever I click an expand/collapse button of the Tree eit