How can I get a loading animation to play while fly playback component loads a file?

Hi team,
Two part question here..
So I have a FLV playback component and a number of .flv files that it loads   ------>  using video1.source="film/whatever.flv";
There is a slight delay while the file loads and so I would like to
A) make this pause a bit longer (it would be so fast at the moment that any loading animation would be subliminal, but with nothing at all you get a second of blank which is not good either- so if I can get it to be a bit longer, like say 2 seconds..
B) have an animation play while this happens..
It does not need to show progress or anything, just like a spinning wheel or whatever.
I have been playing around with bufferTime but not really getting anywhere..
Can anyone help me out?
Thanks
sub

Here is a test with one flv player (video1) and two buttons (butt and butt1)
Ok so I have some code that kind of works using the countdown timer... but I obviosuly dont know why it works because if I change the seconds count down from 1 to 2 it only works once.
I get "working"
         "working"  trace twice and it works
After that I get the "working" trace but nothing happens    ...    I am close but would really like to understand a bit more what I am doing!
Any help greatly appreciated.
Cheers
Sub
import flash.events.MouseEvent;
var fl_SecondsToCountDown:Number = 1;
var fl_CountDownTimerInstance:Timer = new Timer(1000, fl_SecondsToCountDown);
video1.visible=false;
video1.load("film/film1.flv");
video1.stop();
butt.addEventListener(MouseEvent.CLICK, go);
function go(e:MouseEvent){
          video1.visible=false;
          fl_SecondsToCountDown = 1;
fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
fl_CountDownTimerInstance.start();
    video1.load("film/film1.flv");
butt1.addEventListener(MouseEvent.CLICK, go1);
function go1(e:MouseEvent){
          video1.visible=false;
          fl_SecondsToCountDown = 1;
fl_CountDownTimerInstance.addEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
fl_CountDownTimerInstance.start();
          video1.load("film/film2.flv");
function fl_CountDownTimerHandler(event:TimerEvent):void
{trace("working");
          fl_SecondsToCountDown--;
          if(fl_SecondsToCountDown==0){
                    trace("done");
                    playmovie();
                    fl_CountDownTimerInstance.removeEventListener(TimerEvent.TIMER, fl_CountDownTimerHandler);
function playmovie(){
          video1.visible=true;
          video1.play();

Similar Messages

  • How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    How can I get my ES2 loops to play correctly? I keep getting the message that the audio is not found when I drag the loops from my audio browser even though they play fine in the preview.

    It's exactly as I stated. Whenever I try to drag these kinds of loops (ESX24 / software instrument loops? the ones marked in green with the white music note next to them) from the loop browser into the timeline a message comes up saying Audio Not Found for that loop.  And a new track is created automatically when loops are dragged into the timeline, so I'm not creating some other random / synth instrument track so I'm not sure  what the deal is... But perhaps I'll try creating a software instrument track first and then drag the loop into that track and see what happens - maybe there's something with the default settings that automatically creates audio tracks whenever loops are imported?

  • All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    iTunes Store- Transferring purchases from iOS device or iPod to a computer
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    How to dowload purchased music

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • When I switched computers my songs now cut off and don't play out.  How can I get my songs back to play fully that I purchased from ITunes over the past years?

    When I switched computers my songs now cut off and don't play out.  How can I get my songs back to play fully that I purchased from ITunes over the past years?

    Other people have been having similar problems with songs over the last few days, I assume that there has been a problem with Apple's servers.
    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting those tracks from your iTunes library and redownload them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    If you aren't in a country where you can re-download music or if they re-download in the same state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find those songs and use the 'Report a Problem' link.

  • How can I get iTunes to locate and play all my music files?

    How can I get iTunes to locate and play all my music files?

    I have this problem too. I am researching now. Here is what I know so far. If you right click a song then get ifo the it will say Protected AAC or purchased AAC. Protected wont play on sonos, purchased will play on sonos. It seems that all my protected were purchased 2005 to 2009 or so. I am trying to find out if apply will convert these for a small dfee or if I use the itunes cloud these tunes will convert for me. downloading and reloading is not an option for me. Pretty much a money grab by apple either way. I am sure Steve is smiling.

  • After connecting to itune to down load and update my 3gs iphone it is now telling me "no sim card" How can I get round this?, after connecting to itune to down load and update my 3gs iphone it is now telling me "no sim card" How can I get round this?

    After connecting my 3gs phone to itune last night to download items and to get new updates my phone will not work, it says to add a sims card to phone but the sims is already in it.  How can I get my phone to work?

    Sounds like your iPhone was previously hacked/modified/jailbroken
    and the update has relocked it to the original wireless carrier. If that
    is the case, only the wireless carrier to which the iPhone is now locked
    can unlock it.
    Does the app Cydia appear on your iPhone?
    What does it say when you look at Settings=>General=>Carrier?
    What wireless provider do you normally use?

  • How can you get the car stereo to play songs on nano in order?

    Hi--I just got an ipod nano and connect it to my car stereo via a usb port.  No matter what controls I try (on the car) it just plays songs in alphabetical order of the song (regardless of the album title).  How can I get it to play in the order I want (like one album at a time)?

    Mine does. If you can browse by artist, album or song titles, chances are it can brwose through playlists as well. Also make sure that you don't have shuffle selected.
    The iPod should play songs in the order that they are listed on the display.

  • HT204370 how can i get a downloaded film to play ? it just keeps playing the trailer

    How can i get the film to play ?

    How/where are you trying to play the film ? If you've downloaded it on your computer's iTunes then you should be able to play the complete film from the Movies part of your iTunes library. If you've downloaded it on an iPad, iPhone or iPod Touch then it should be in the Videos app.

  • How can I get my itunes purchases to play on any mp3 player?

    I can't get my itunes purchases to play on my other mp3 players.  I don't want to download these programs people suggest on the internet.
    And really, I shouldn't have to. If I've already paid for the music, why can't I put it on the device I choose?  There must be a way. Any help? BTW, I'm using Windows Vista, (yuk)

    You can put the music on any device you choose, as long as the device can play the format. Purchases from the iTunes Store are in industry-standard AAC format. If you want to use them on a player that can only handle MP3, you need to convert the tracks. See:
    http://support.apple.com/kb/HT1550
    Regards.

  • How Can I get My iMac Running again when its stuck in the Loading boot up Screen?

    My 2010 21.5 Imac wont  stop loading, The wheel just keeps spinning and it doesn't even boot in safe mode. the only thing i can do is get into single user mode. My Mac doesn't respond to command + r. I am able to pull up a disk to boot from but it doesn't show a recovery disk, only "Macintosh HD", when i click it I'm back at the apple logo screen with spinning wheel.At this point i want to do one thing and that is factory reset the computer. a fresh install, delete everything, NO BACK UPS. I don't have the install CD (This Computer had a previous owner). If i were to buy a copy of the OS X from the apple store (I believe my computer was running 10.6.8, Im not 100%sure and i dont now how to find out at this point) would i be able to even put the CD in the disc drive? would it read the CD even though its stuck in the boot up(loading) screen? How would i get it out if the Drive doesn't read the disk? Do I have Other options? Thanks guys!

    You are using Snow Leopard. There is no COMMAND-R for a startup. That's for Lion or later.
    Call Apple and purchase replacement discs for your model. You cannot use the retail version of Snow Leopard on your model. You have no other options unless you have the original discs that came with the computer. When you get the discs:
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. Be sure you configure your initial admin account with the exact same
             username and password that you used on your old drive. After you finish Setup
             Assistant will complete the installation after which you will be running a fresh
             install of OS X.  You can now begin the update process by opening Software
             Update and installing all recommended updates to bring your installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • I have a load of songs in a checklist, how can I get the ones checked to play?

    I have a load of songs that I have check boxes next to. I want to get the ones that the user checks to play one after the other like a playlist?
    How can I do this? I'm new to macros etc.
    Thank you!

    Check boxes won't work. You need an actual player that supports playlists.  
    Have a look at Pickle Player.
    Nancy O.

  • When a html coded page requires the Windows Symbol font, Firefox does not call it, and the English alphabet characters display instead. How can I get the Symbol font to work when the page is loaded in Firefox??

    ''duplicate of https://support.mozilla.com/en-US/questions/902677''
    This site shows Greek letters and Greek words by calling for the Windows Symbol font. The page(s) involved display correctly in Internet Explorer, but not in Firefox 3.6.1 or 8.1. In Firefox, the Greek letter does not appear, it is just replaced with the English letter for the equivalent keystroke. Here is a html line that ought to cause Symbol's Greek letter lowercase alpha to be displayed, but all you get is an "a" :
    (td width="60")(p align="center")(big)(strong)(font face="Symbol")(span style="font-family: , Symbol")a(/span)(/font)(/strong)(/big)(/td)
    **I have had to replace the left and right carets with left and right parentheses. Otherwise, the line actually executes, disappears, and just leaves a bolded "a" on the next line.***

    Reemphasizing, the page code works on Internet Explorer. It does _not_ work with Firefox ver 3.6.1 nor ver 8.0.1 (which I upgraded to, to see if that would solve the problem). The MDC FAQ solution is not a solution, because it forces the html coder to change his language just to accommodate Firefox. Firefox needs to change to conform to standards.
    What did work was that I followed the solution offered on:
    http://hutchinson.belmont.ma.us/tth/firefox3.html
    "How to reenable symbol font in Firefox 3 on Windows"
    <b>**********Solution*********</b>
    Download the file:
    http://hutchinson.belmont.ma.us/tth/symbol8859.otf
    Go to Control Panel/Fonts/Install New Font
    Install the font that was downloaded.
    <b>************Problem Solved*********</b>
    I think Firefox wants you to use _its_ font faces, not the standard Windows fonts. They do not have a Symbol font to replace the Windows TTF, I guess.

  • HT4527 How can I get my itunes music to play the entire song?

    After My hard drive crashed and burned it was replaced with a new Hard drive.  I restored my itunes folder from my external back up drive. when I go into itunes all of my music appears and most of it plays. However, my older purchases  will only play a few bars of music and then it skips to the next song.  There are no error messages or "!" to indicate what is happening.  I've deauthorized both of my computers and reauthorized the one with the new drive, but no improvement.  How can I fix this?

    ldarst55 wrote:
    I have a new ipad and I need to get all of my music loaded.  However, I cant sync it to a computer.
    Where is your music?
    Why can't you sync the iPad to your computer?

  • How do I get my "preloader" animation to play immediately

    On slower DSL connections, my animation takes a few minutes
    to load. I'd like to add a small "loading" animation to keep the
    user company while my large animation loads. I have both animations
    complete. I'm not not sure what code to add (and where) to get the
    first one to appear immediately and the second one to appear when
    it's ready to show it's face.
    PLEASE HELP!
    Thanks

    swissgrid wrote:
    > On slower DSL connections, my animation takes a few
    minutes to load. I'd like
    > to add a small "loading" animation to keep the user
    company while my large
    > animation loads. I have both animations complete. I'm
    not not sure what code to
    > add (and where) to get the first one to appear
    immediately and the second one
    > to appear when it's ready to show it's face.
    -The basic loader with some progress bar and % of the loaded
    movie-
    On first frame of your timeline place the following action :
    stop();
    this.onEnterFrame = function () {
    bl = this.getBytesLoaded();
    bt = this.getBytesTotal();
    if (bt <= 0) {bt = 99;}
    offPreloader.gotoAndStop(Math.floor((bl / bt) * 100));
    preload_txt.text = Math.round((bl / bt) * 100) + " %";
    if ((bl == bt) && (bt > 0)) {
    delete this.onEnterFrame;
    gotoAndPlay (3);
    Than on the very same frame make a movie clip with some shape
    tween from small to large, this will be your progress bar.
    Make it 100 frames long. Once done give it instance name
    "offPreloader"
    Last thing to do is to place dynamic text field with instance
    name "preload_txt"
    so it can display the % of the loaded movie.
    Pretty much it.
    Just make sure that the progress bar is not too large, like
    made
    out of bitmap images, you want to keep the preloader frame
    as small as possible so flash can load it quickly.
    Than start your content from frame 3 and you all done ---- TA
    DAAA !!!!
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

Maybe you are looking for

  • Why are the additional effects on Photo Booth not working?

    I upgraded my OS to Mountain Lion a few hours ago and I tried out the Photo Booth and found out that the first page of effects (the new ones) were not working. Is there any way to fix this?

  • Clicking noise in iTunes 8.2

    I am experiencing a new clicking noise in any song I have in my library all the sudden. These files have all been ripped properly and they have been working for years with no problems. All of the files I have also play perfectly in Windows Media Play

  • Syncing movies on iPad 2

    Why is it that when I add a new movie to my itunes account and then sync my iPad, the iPad syncs every movie that was already on it as well as the new one? I only have the "Sync Movies" and "Includes iTunes Extras" checked.

  • Need help in design scenario

    Hi experts, I have a scenario in which XI put an xml file in a destination server (very simple scenario, SAP>Proxy>File receiver CC). The new request is: to make a call to SAP after having put file in destination. In this call I have to write to SAP

  • SPAM/SAINT - OCS package does not match current software component vector

    Hello Experts, This could happen on any type of system I suspect, but it is on my Solution Manager (7.01 on Eh1). I downloaded a support stack (27)and was checking the components requirements.  I use the  Directory box in SPAM, and I go into New Supp