Preloader causes SWF to download twice

Hi there,
I'm wondering if anyone else has run in to this issue, where
a movie with no 'export for runtime sharing' assets will be
downloaded twice when accessed via a preloader script (see
preloader code below). In this case, the SWF file 'main.swf' is
downloaded twice - the second time straight after the preloader has
finished with it. This is not usually detectable as most browsers
cache the movie and it is instantly taken from cache, however on
browsers that have the cache turned off this can be a very slow and
frustrating experience.

Hi kglad,
At first that seemed like a silly comment, but it forced me
to double-check everything. After the original block of code above,
the movie continues to play an animation on the main timeline,
always returning to the 2nd frame when done (the frame after the
code above). In the full code for the onLoadInit event I had a
_root.gotoAndStop(1); (see below) which called the movieclip
main.swf to load again... I have changed this to
_root.gotoAndStop(2); and it now works as intended.
Thanks for the starter! :)
-Shannon

Similar Messages

  • Preventing .swf re-download using director?

    hi, it may sound a newbie question, but here it goes...
    i am trying some tests here using director , and one of them
    is this script inside a button :
    var WEB = "
    http://www.interama.net/incorporated/teste.swf";
    var ID = preloadNetThing(WEB);
    function mouseUp()
    if ( netDone(ID) )
    var tempMemberRef = _movie.newMember("Flash");
    tempMemberRef.importFileInto(WEB);
    sprite(2).member = tempMemberRef;
    as you can see, the first thing that director will do is try
    to preload a .swf located in the link passed inside WEB.
    however, something that i would like to do is :
    HOW can i prevent director to RE-download the .swf IF the
    user, after closing the webpage, open it again...
    after all, i believe the .swf will be in the cache of the
    system, wont it? so, how could i make director "find out" that he
    doesnt need to download again the .swf since it is already in its
    cache?
    thanks for your time,
    Necropower

    hi, it may sound a newbie question, but here it goes...
    i am trying some tests here using director , and one of them
    is this script inside a button :
    var WEB = "
    http://www.interama.net/incorporated/teste.swf";
    var ID = preloadNetThing(WEB);
    function mouseUp()
    if ( netDone(ID) )
    var tempMemberRef = _movie.newMember("Flash");
    tempMemberRef.importFileInto(WEB);
    sprite(2).member = tempMemberRef;
    as you can see, the first thing that director will do is try
    to preload a .swf located in the link passed inside WEB.
    however, something that i would like to do is :
    HOW can i prevent director to RE-download the .swf IF the
    user, after closing the webpage, open it again...
    after all, i believe the .swf will be in the cache of the
    system, wont it? so, how could i make director "find out" that he
    doesnt need to download again the .swf since it is already in its
    cache?
    thanks for your time,
    Necropower

  • I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? Help - thank you

    I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? I read it MAY have something to do with am image it cannot load but I see them all loaded.  Help - thank you

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • Swf Not download in Browser

    Hi,
    Anybody any thing idea about Swf Not Download in IE,Firefox,etc.... How do Security that SWF Files?
    Thanks

    there's a swf banner at the bottom of the page.  it's positioned too far down the page, but it is displaying.  is that the problem?

  • How to Preloading a swf file in one application

    hello friends,
    How to preload a swf file in one application??
    i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this module in second panel when the user is doing logi. and when user logged in that time i have to show the second panel hiding the first panel.
    so how to do this i m not getting can anyone help me??
    Thanking you,
    Gajanan

    i have created a jar file.Now i want to reuse this
    jar file in another java program.Could anyone please
    guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code.

  • HT204088 An album downloaded twice on my iTunes and I'm charged twice for the album.  I want a refund for one of the charges.

    An album downloaded twice on my iTunes and I'm charged twice for the album.  I want a refund for one of the charges.  How do I do this?

    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I've Downloaded twice ''Additional Contents'' but the issue is still unresolved  ( '' EXS 24 instrument ''steinway Piano.exs '' Audio file '' stw per v1 024.AIF '' not found)

    I've Downloaded twice ''Additional Contents'' but the issue is still unresolved  ( '' EXS 24 instrument ''steinway Piano.exs '' Audio file '' stw per v1 024.AIF '' not found)
    Please Help

    "Additional Contents" I don't even know what that is? What app is it for?

  • Hi ive just downloaded my first album from itunes,only to find it has downloaded twice..how can i undo one of them..?

    Hi ive just downloaded my first album.only to find it has downloaded twice,how do i reverse this...

    If you're referring to the charge, you will need to contact support and have them review your case. Make sure to provide all the information.
    http://www.apple.com/support/itunes/

  • Preload external swf's

    Hi,
    Every time I have asked this question, people say , just go
    online you'll find lots of preloaders out there. Or, its documented
    really well in flash help. BUt I still dont get it. Im sure that
    anyone who knows actionscript moderately well can figure it out no
    prob.
    All I want to do is preload 3 external swf's into my main
    movie - and I want to include the preloading script in the
    preloading script I already have for my main movie. This is the
    script Im using (it has a loader bar etc,..).
    onClipEvent (load) {
    if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
    quickPlay = true;
    } else {
    preLoad = (_parent.getBytesTotal() * 0.75); //percent to
    preload
    _parent.stop();
    onClipEvent (enterFrame) {
    gotoAndStop(loadedIndicatorFrame());
    if (quickPlay == true) { //quickly play the anim
    if (_currentframe == _totalframes) {
    _parent.play();
    } else { //wait for the preload
    if (_parent.getBytesLoaded() >= preLoad) {
    _parent.play();
    Can someone help me out here?
    Also, if I preload it right at the beginning, do I need to
    additionally specify the place (empty mc) that I want to eventually
    run it in?
    Thanks a million for anyone who can help with this. Please
    dont tell me its well document\ed, because although it may, Its
    just as hard to figure it out with the documentation, Im not great
    at action script.

    I'm having a similar issue!
    I am currently building a web gallery that loads external
    .swfs (of each gallery) into movie clip containers within seperate
    frames.
    Is there any way to preload those .swfs in the background
    before they are called upon by going to those frames?
    An example of a site I built in this manner can be found
    here:
    http://gillestoucas.com/
    Help! Thanks a bunch!

  • HT1267 How do I get credit for something I downloaded twice by mistake?

    How do I get credit for something I downloaded twice by mistake?

    Go to the iTunes store, go to Support and Contact. Send them an email explaining your issue. There is no telephone or email support from iTunes. You should hear from them within 24 hours.

  • Mountain Lion downloaded from App store will not install. Downloaded TWICE it times out after 20 secs into install. Can't get any help!!! My Machine MacBook Pro  OS 10.6.8   Processor 2.66Ghz i

    Mountain Lion downloaded from App store on 11th and 12th June will not install. Downloaded TWICE it times out after 20 secs into install. Can't get any help!!! Going around in circles!!
    My Machine MacBook Pro  OS 10.6.8  
    Processor 2.66Ghz i7,
    4GB memory
    128GB solid state drive
    Purchased 2010

    Thanks very much for the advice. I trawled through the other answers on the site and it appears others had the same issue. I doubled the available space and the install went like clockwork... which is what one would norma;ly expect from Apple :-)
    Maybe Apple should have a ' definitely read me first' notice before a download takes place with CLEAR instructions to have more than the 6GB they indicate ofr the Mountain Lion download

  • Prevent movies from being downloaded twice (720p and 1080p)

    I noticed that iTunes downloaded each of my purchased movies twice. I guess it's the 720p version and the 1080p version.
    Anyways as my SSD is getting full I'm wondering if there is a way to just download the 1080p version. I don't feel like deleting the second download every time I buy a movie.

    Well the problem is that every movie gets downloaded twice. See the attached screenshots ...

  • Imovie downloading twice at the same time??

    I was prompted for an imovie download/update but didnt have the hard disc space initially.  I have now sorted that problem, but it looks like iMovie is downloading twice at the same time??  In the status bar under Launchpad it has two progress status alternating and when I open Launchpad, both progress details are listed under iMovie.  is it possible that it is double downloading?  Considering it is 1.94GB and I am pressed for hard disc space, I dont want it on here twice.  New to Macbook if that isnt already obvious!

    Hi cathygiliam,
    Thanks for visiting Apple Support Communities.
    If it seems like an iMovie update is downloading twice and you have concerns about available hard drive space, the best option may be to cancel the download(s) and start over.
    To cancel a download in App Store, in the toolbar, click Purchases, find the app in the list, hold down the Option key, and then click Cancel.
    To cancel a download in Launchpad, hold down the app icon until all the icons start to jiggle, and then click the app’s delete button (x).
    To cancel a download in the Finder, click the app's delete button (x).
    Mac App Store: Buy, download, and install apps
    http://support.apple.com/kb/PH11493
    Follow the steps in this article to download the update again:
    OS X: Updating OS X and Mac App Store apps
    http://support.apple.com/kb/ht1338
    Cheers,
    Jeremy

  • I was downloading a book and it wants to download twice--I don't need to buy it twice--how can I stop it?

    I was downloading a book into my ipod and it is trying to download twice--how can I stop it from downloading twice?

    Just let it download. If you got billed twice ask for a refund
    How to Get a Refund from the App Store

  • ITunes movie purchase downloading twice

    Hello all;
    I just purchased a movie on iTunes. The first time I clicked BUY, the system told me that it could not read my Apple account and to try a few minutes later. So I tried a little later but I clicked the BUY button again!
    Is this why the movie is downloading twice? One HD version and one standard version?
    Does this mean I will be charged twice? If so, will I get a refund?
    Thanks for any help or advice you can offer.

    I do not believe that Real Player Plus can burn any videos purchased from the iTunes Store to video DVD. RP Plus can burn non-protected videos from iTunes, but not the copy-protected files from the iTunes Store. If you have yourself successfully burned videos from the iTunes Store to a vide DVD (one that plays in a standard DVD player) with Real Player Plus, I'm sure many of us would be interested in such confirmation, as it would indicate that Real has hacked Apple's DRM in some way.

Maybe you are looking for

  • Why is my Macbook pro getting out of RAM memory?

    I am getting a message that tells me i am out of memory and it gives me an option to quit apps i have opened, most of times it's just Safari and i have no idea why is this happening suddenly, i have Mavericks 10.9.4 everything updated, and a 15 inche

  • Table Disappears in Dreamweaver CS3

    I am trying to update some pages that I did not create and that were not created in Dreamweaver. When I open the page in DW, the table with the text does not show up. Everything works fine when viewing in IE. This is the page: http://vzoners.com/seco

  • HELP PLEASE! Computer reads iTouch as a camera. Will not open in iTunes.

    Could an expert please answer this question. I've browsed the discussion board looking for answers but everyone just seems to have a different problem. I run Windows XP Pro. Everything was working fine until the new version of iTunes came out. Ok, so

  • Setting up dual screens in XP

    After no luck with Vista, I switched to XP. Now I have the problem that the Intel driver forces me to use the Notebook as the primary display if operating in a dual screen configuration. Is there any way to force it to use the external display as the

  • BO XIR2 SP3 FP3.3 - vertical alignment of 1st column of 2nd page ignored

    We have webi reports that have all cells set to vertical alignment bottom. If the report spans more than one page, the first column of the second page reverts to vertical alignment center for all cells in the column. All other columns remain with bot