Preloading 2nd movie while 1st plays

I have two movies,
Animation01.swf (30K) and
animation02.swf (2MB). Additionally, I have a preloader
movie,
preloader.swf.
What I am trying to do is from the preloader.swf is to load
the first move (Animation01) and as soon as it finishes loading, to
play it. While Animation01 is playing, I'm trying to preload
Animation02 in the background. Animation02 must only begin playing
after the first one finishes.
On the first frame of Animation01 and Animation02 I have a
boolean variable
donePlaying set to
false. On the last frame of each animation I set the
donePlaying variable to
true so I can access it from the preloader. I am doing this
(incorrectly?) to know if the current movie has finished playing so
I can start playing the second one.
I have searched high-and low and have seen discussions on
what is almost the same problem/solution. From these discussions I
have created the code below. What is happening right now is that I
can't seem to call
moviesLoaded[0].play()... Meaning that nothing plays. If I
remove the
targetMc.stop() from inside the
onLoadComplete event handler, then both movies play right
away atop each other :(

Kglad, your suggestion did not work (or I still didn't
understand you.)
Ok, my deadline is tomorrow (it's 2am now)... ouch. One thing
I realized is that the previous code I posted is needlessly
complex, as it takes an arbitrary number of movies to preload. This
is dumb because I only want to preload two movies. So, I tried
simplifying it a bit. Following is the logical concept of the
movies I have:
preloader.swf
|___FrontEnd-Ext-v16.swf (first movie to preload)
|
|___Mesozoic_Animation-v32.swf (second movie to preload)
Now it seems I have two problems. My handlers are not getting
called on the INIT event of the Loaders. Also I can't seem to
access the Loader.content so I can do something like
mcLoaderOne.content.stop(). Some one, kindly tell me where
in my code I'm making the mistake(s).
FYI - This is pertaining to ActionScript 3. My goal is to
preload one move then play it automatically. While the first move
plays, the second movie will be preloaded into cache. When the
first movie finishes playing and the second movie is done loading,
then play the second movie. Here's the new code I've written.

Similar Messages

  • Itunes crashes on addition of artwork to movie folder and apple tv (2nd generation) will not see itunes while itunes plays playlist over wireless network to airport express??

    I have 4 non apple pc exhibiting same issue. Whether you have ten movies on board the pc or 500 on external storage Itunes locks up after you "get info" and try to add video cover from IMDB whether the art is in my pictures on PC or off USB key / external storage. Very frustrating to the extent that I bought a macbook thinking that it may be a non apple issue and bingo same issue whether films on macbook or on nas/ external usb. Effectively itunes may be made to crash by adding artwork!
    2nd Issue noticed at weekend I have a small music library of approx. 35gb music in itunes music folder when a playlist was being played within itunes and airplay was selected to an airport express that is connected to distributed music system in house all works well during party. Guest have access to DJ app via remote app or control of content being player. My kids disappeared into the front room and while playlist on notices 2 things. The ipod touch ( 4 mths old) would not connect to apple tv player 2nd generation while airplay on to music system and the infra red remote remote worked fine but apple tv would not see video files in itunes while airplay on. When airplay disabled all absolutley fine , re- enabled airplay and apple tv bumped again. I have a wireless N router and have successfully had 2 apple tv 2nd generation working off itunes video files without issue. There are delays but both are seen in remote app and both players see itunes folders. I would have thought video streaming to apple tv players sucked up more bandwidth that one airplay to airport express and one apple tv 2nd gen.
    Anyone experienced same

    OK - I managed to fix this. Will document for others.
    I started to think it was a firewall thing. So I turned off both my Windows 7 firewall and my BT Home hub firewall. It started working!
    So turned back on the BT home hub firewall - still working. So it must be a windows 7 firewall.
    Went in and checked that Itunes was there as an exception... Yep. So why still not working?
    Found out that the entry in my Windows 7 firewall said I-Tunes - but when you looked at the details button it wasnt pointing to a program - it was just blank.
    So added a new entry and pointed that at the I-Tunes exe file.
    Now all working...

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Flash Player freezes on 2nd monitor while playing fullscreen game on 1st one

    Flash Player freezes (shows something like slideshow with frame rate near 1-2 per sec, everything is ok with sound) on 2nd monitor while playing fullscreen game on 1st one.
    Windows 8, flash player 12, chrome.
    Tried to use other versions of flashplaers, other browsers - didnt help me.
    SOLVED: my computer for some reason didnt want to download updates. that was the reason of this problem.
    Thanks in advance.
    Philip

    Ok, Have just finished re-starting comp and have installed 10.3 & much to my suprise the games on Kongregat and Facebook are working. Have also, just to be safe checked the Firefox plug-in to make sure it was running the correct plug-in
    Shockwave Flash
    Shockwave Flash 10.3 r183
    I imagine this is it...I would have thought it should've been adobe flash but???  I will proccede to put it through the normal paces and pray it doesn't  die on me   will update as needed on this page.

  • TS1702 I am having problems downloading 2 purchased movies. Cars 2 & Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. Not wo

    Hi
    I am having problems downloading 2 purchased movies. Cars 2 & Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. I tried what they suggested at the apple store, but I am still not successful. It continues to tell me there is a download error. Please help! Need these movies for my 3 year old!

    User to user forum.
    Apple is not here.
    You need to contact iTunes support:
    http://www.apple.com/support/itunes/contact/

  • I have an ipad2. PLEASE can anyone tell me if I can watch a movie purchased from iTunes without wifi (after I have downloaded the movie and hit play while connected). My husband is going for chemotherapy and the hospital does not have wifi.

    I have an ipad2. PLEASE can anyone tell me if I can watch a movie purchased from iTunes without wifi (after I have downloaded the movie and hit play while connected). My husband is going for chemotherapy and the hospital does not have wifi.

    Yes, if the movie has been downloaded to the iPad, then you can watch it without Wi-Fi.

  • Can i still play my show/movie while browsing

    i would like to know if there is a way to browse through the apple tv channels and libraries while still playing the show i am watching

    No

  • DVD Studio: 1st-Play menu buttons not "clickable" ...

    hi Folks,
    Using DVD Studio Pro 4.1.2 ... creating my first complex build; I have one "first play" menu,
    offering 3 choices (via buttons), that lead to 2 sub-menu's or a 1st track choice.
    I embedded a 5-min audio clip to play behind the "1st-play" menu, which I did get to work.
    When I simulate the compilation, all buttons on all menus work fine.
    When I burned the compilation to DVD, none of the 3 buttons on my first play
    menu worked.  None seem "clickable" while the music plays, hovering over
    any with the mouse did not change the shape of the pointer, as is is expected.
    Is there something in the playing of music that might be screwing up the
    linking ability of the button?
    Seems that once the music stopped, I could somehow get into one of the sub-menu's
    playing the DVD on my iMac, playing it on a PC, nothing worked.
    Any suggestions would be appreciated!
    thanks

    Tried Gary's suggestion, dropped in a 3-second black movie (.mov, rendered in FCE - not a graphic) for the 'first-play' menu, which is set to jump the 'main' menu with the 3 choices and the music in the background.  It gets to the 2nd menu, but the 2nd menu buttons are also not clickable (again) in the final burn.  They ARE in the simulation.
    a little frustrated by my Mac world on this one, I sent my AC3 & M2V streams over to my PC - but these files - at least the M2V portions,(rendered by compressor) are not readable and bring up arcane error messages in both my DVD authoring programs on the PC (DVD Architect Studio & DVD Lab Pro).   That's a different game altogether, though.
    anyway, still wasting DVDs and no answer yet..
    thanks for all attempts ...

  • When playing a video I have downloaded from iTunes I get the message "This Movie Cannot be played on this machine"

    When playing a video I have downloaded from iTunes I get the message "This Movie Cannot be played on this machine".  The weird thing is that I downloaded the film from iTunes and while it was downloading I was watching it with my kids on my IMac. Once it had finished downloading I went with them to the living room Tao carry on watching on our apple tv.  The apple TV wouldn't play it and said I needed to authorise my Pc, then the IMac gave the message above and I haven't been able to play it since.  All my other downloaded films play.  I am running iTunes version 10.2.2. And my iMac is Running Snow Leopard OS 10.6.7.  Anyone who can shed some light on this weird situation will have my upmost thanks

    Hi,
    I have the same problem. Been trying to find some answers, but not a lot of info about this. It seems to happen only when:
    - itunes library is stored remote (NAS or external HD)
    - starting a movie/show before download has finished will make it fail next time you try to start
    Hope this gets fixed soon.. it's making purchasing content via itunes a hassle

  • Playing movie on tv; playing but not showing up; what output, DVD?

    1st time trying to play movie on tv; playing but not showing up; do I need to change output?  Only DVD & DVR shown. Thx

    You need to provide more information. How are you connecting your iPad to the TV. Are you using an Apple TV 2, a component AV cable, a composite AV cable or the digital AV cable?

  • Error 50 or freeze when watching a movie while downloading from itunes store since version 10.6 (windows 7 64bit).

    When I am downloading a tv show and try to play it at the same time, not matter the remaining time of the download, itunes stop the download with an error after a couple of minutes. (error 50.) Somethimes, it just freeze instead. I am able to resume the download and watch again till the next stop.
    I have no problem just playing or just dowloading, only when doing both. I have this problem since version 10.6 only. This affect all my new downloads since then.
    My first guest would be  a hard drive saturation that can't handle the load. Maybe  itunes stop downloading when the hard drive is too busy. But again, never had this problem before. It it was the case, the playing should stop, not the download !
    My config is iunes 10.6.040, windows 7 64 bits.
    Thanks for your help.

    This has been happening on my Windows 7 64-bit computer as well same exact problem with the latest version of iTunes. It does look like they have some kind of bug in this new version where the downloading process just dies when it has to deal any I/O wait from file playback, really a bad bug as this is a core function of iTunes that shouldn't have gotten through the testing process.  I have to say that iTunes is one of the buggiest pieces of software I have ever used in my entire life, all kinds of regressions and bugs with every update and they are on version 10.6.x !  Apple must have some poor developers in the iTunes team, hey guys put down the bong and chips and actually establish a standard continuous integration and testing process with good test coverage for iTunes! You shouldn't have regressions on such core functionalities especially with a software as mature as this, what's going on? Or is it that you've been instructed to make the software a crappy as possible for Windows so everyone goes to buy a Mac and OS X?
    More bugs just off the top of my head in the latest iTunes 10.6.x:
    - In the download screen when you double click to playback a movie while it is downloading, if you pause the movie the play button goes grey, you cannot start playing the paused movie again without quitting the movie and clicking to start it again from iTunes
    - The next/prev chapter buttons during movie playback don't work at all anymore, they simply crash the movie, close the window and go back to iTunes
    - Many times after getting the unknown error -50 or -39 because you tried to play a movie while it was downloading, when you go back to the download window to restart the download iTunes loses all the downloaded movie content it had it starts over for no apparent reason!  Wonderful!
    For a company that sells/rents really expensive movies and music you would expect a really high standard go into the software development process, apparently shareholders are more important than customers.

  • How do I call a Movie Clip to play from within another MC?

    Here's a simple one I'm sure but I can't get it to work or find a solution online.
    I have a movie with 2 movie clips on the stage, the first clip is triggered to play on a button click (which works fine) but I want the 2nd clip to start playing when the first ends. I've tried putting MovieClip2.gotoAndPlay(1) script on the last frame of MovieClip1 but I get  "1120: Access of undefined property".
    I very much appreciate your help.

    Try using:
    MovieClip(this.parent).MovieClip2.play();

  • Movies app not playing movies...

    hey guys i know that Tablet s supports 1080p mkv and 720p mp4 videos playback........
    but today when i loaded a 720p movie the hobbit....it wont work in movies app...
    the movie runs well in gallery app but does not work in movies app.......any suggestion
    dont tell me to restart cause i did it....wiped my usb storage clean.....still no work

    MKV ain't supported by sony ever they consider it a piracy container while its much more then that i agree.
    anyway use mx player its much better supports anything you need subtitles need be enabled tough through menu, and their options for hardware acceleration and hardware acceleration+ but i dont known about tablet s1 having support for that just give it a try if it work.
    the only nice thing about movies app is that it looks nice but it don't even support hardware+ acceleration i can see video slow down while it play butter smooth through mx player.

  • "This movie cannot be played on this machine"

    So after buying a music video on iTunes i click on it to play but This movie cannot be played on this machine popped. So i decided i had to update my iTunes and i did but it didnt work soo like to know why.

    Plus the file kind says Protected MPEG-4 video file while the rest say Purchased but i bought the video

  • Run iPhoto slideshow on 2nd display without 1st display going black?

    Hi there,
    I can't seem to find a clear answer on this one. I have just connected a 2nd display to my mac mini via the thunderbolt connection. When I put iPhoto 11 onto the 2nd display desktop and run a slideshow it plays on the 2nd screen but my 1st screen goes black, which isnt ideal as I want to be able to carry on working on my 1st screen.
    Is iPhoto 11 able to run a slideshow on a 2nd display without 1st display going black? If not, is there a way around this by using other software?
    I have the 2nd display set up in extended mode not mirror.
    I am running OSX 10.9.2.
    Many thanks,
    Andy.

    Is iPhoto 11 able to run a slideshow on a 2nd display without 1st display going black?
    No.
    There may well be, but it's not possible with Aperture either.
    Alternatives to iPhoto's slideshow include:
    iMovie is on every Mac sold.
    Others, in order of price:
    PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Pro X $299
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Pro X is the most capable app of them all. You get what you pay for.

Maybe you are looking for