18 Replies Latest reply on Aug 30, 2010 1:52 PM by kglad

    No loaders in .EXE?

    ActivEdit Level 1

      My main project loads an external .swf ("room") depending on which button the user clicks. Once that external .swf ("room") is loaded, the viewer chooses a ("demo") .swf to view. For each button click, a loader is to appear showing the viewer that the desired room or demo is loading. All of this works fine for the web...please click the link below to view.

       

      The problem exists when I try to publish as an .EXE. We'd like to send these out to prospects on CD and thus I need an .EXE to autorun when insterted in a PC. I've published the main .SWF (overhead map) as an .EXE and burned a cd containing all necessary files. Now when the user clicks a room and then a demo, the loader that shows up fine on the web does not appear...the button stays in the down state until the demo .swfs loads and then the demo appears and plays. Can anyone suggest what the problem may be? Thanks!

       

      Using Flash 8 and AS 2

       

      http://distribution.activant.com/distribution-software-demo/

        • 1. Re: No loaders in .EXE?
          kglad Adobe Community Professional & MVP

          copy and paste one of the problematic load statements from you fla.

          • 2. Re: No loaders in .EXE?
            ActivEdit Level 1

            kglad, I'm not sure where the problem lies since the loader works fine for the web, so

            I'm going to copy and paste the loader code from the main (building) project and one of the room

            projects. I can add button code from each project if you feel that might be helpful as well. Thanks

             

            Main Project code:

            stop();

            fscommand("showmenu", false);

            fscommand("fullscreen", true);

            fscommand("allowscale", false);

            extLoader_mc._visible = false;

            btnHome_mc._visible = false;

            var globalVolume:Sound = new Sound();


            function setButtonToVisible ():Void {
            btnHome_mc._visible = true;
            btnWebsite_btn._visible = true;
            }

             

             


            //---------------MovieClipLoader---------------\\


            /*var mcLoader:MovieClipLoader = new MovieClipLoader();
            var myListener:Object = new Object();
            mcLoader.addListener(myListener);

            myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
            extLoader_mc._visible = true;
            var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
            extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
            if (bytesLoaded >= bytesTotal) {
              extLoader_mc._visible = false;
              myLoader.play();
            }
            }*/

            var mcLoader:MovieClipLoader = new MovieClipLoader();
            var myListener:Object = new Object();
            mcLoader.addListener(myListener);

            myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
            stopAllSounds();
            extLoader_mc._visible = true;
            btnWebsite_btn._visible = false;
            myLoader.stop();
            var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
            extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
            if (bytesLoaded >= bytesTotal) {
              extLoader_mc._visible = false;
            }
            }

            myListener.onLoadComplete = function(target_mc,bytesLoaded,bytesTotal) {
            myLoader.play();
            }
            //------------------------------------------------------------------------------\\


            IT Room Code:

            stop();

            extLoader_mc._visible = false;

            btnIT_mc._visible = false;

            swfBKG_mc._visible = false;

            _root.setButtonToVisible();

             

            //---------------MovieClipLoader---------------\\


            var mcLoader:MovieClipLoader = new MovieClipLoader();
            var myListener:Object = new Object();
            mcLoader.addListener(myListener);

            myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
            extLoader_mc._visible = true;
            _root.btnWebsite_btn._visible = false;
            swfBKG_mc._visible = true;
            itLoader.rdcmndPause = 1;
            var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
            extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
            if (bytesLoaded >= bytesTotal) {
              extLoader_mc._visible = false;
            }
            }

            myListener.onLoadComplete = function() {
            itLoader.rdcmndResume = 1;
            _root.btnHome_mc._visible = true;
            _root.btnWebsite_btn._visible = true;
            btnIT_mc._visible = true;
            }
            //------------------------------------------------------------------------------\\

            • 3. Re: No loaders in .EXE?
              kglad Adobe Community Professional & MVP

              copy and paste one of the problematic load statements from you fla means exactly what it says.  copy and paste one loadMovie() or loadMovieNum() or loadClip() line from your fla and paste it here.  when you use an mcl, you should have a loadClip() method somewhere.

              • 4. Re: No loaders in .EXE?
                ActivEdit Level 1

                this is from the "room" .swf that loads a demo file.

                 

                btnSQL_btn.onRelease = function () {
                mcLoader.loadClip("SQL.swf",itLoader);
                btnSQL_btn.enabled = false;
                btnDyna_btn.enabled = false;
                btnAlert_btn.enabled = false;
                btnPortals_btn.enabled = false;
                btnReports_btn.enabled = false;
                btnReports_btn.enabled = false;
                _root.btnHome_mc._visible = false;
                }

                • 5. Re: No loaders in .EXE?
                  kglad Adobe Community Professional & MVP

                  is the "room" swf loaded into your main (_level0) swf?  if yes, show the code that loads the "room" swf.

                  • 6. Re: No loaders in .EXE?
                    ActivEdit Level 1

                    Yes it is. Here you go:

                    btnIT_btn.onRelease = function () {
                    mcLoader.loadClip("IT.swf",myLoader);
                    btnWarehouse_btn.enabled = false;
                    btnIT_btn.enabled = false;
                    btnSales_btn.enabled = false;
                    btnAccounting_btn.enabled = false;
                    btnFrontCounter_btn.enabled = false;
                    btnTruck_btn.enabled = false;
                    btnECommerce_btn.enabled = false;
                    btnExecOffice_btn.enabled = false;
                    btnConfRoom_btn.enabled = false;
                    btnPurchasing_btn.enabled = false;
                    btnOutsideSales_btn.enabled = false;
                    }

                    • 7. Re: No loaders in .EXE?
                      kglad Adobe Community Professional & MVP

                      if all your swfs AND the exe are in the same directory AND you have no case mismatches, there should be no problem.  ie, check your directory setup and double check your use of case.  ie, IT.swf is not the same as it.swf or IT.SWF when loading locally.

                      • 8. Re: No loaders in .EXE?
                        ActivEdit Level 1

                        They are definitely all in the same directory. I'll check the cases though. I'm just not sure why everything would work fine with the loader when hosted on the web, but not when published as an .EXE for a CD. Thanks for looking into it!

                        • 9. Re: No loaders in .EXE?
                          kglad Adobe Community Professional & MVP

                          case doesn't matter online.

                          • 10. Re: No loaders in .EXE?
                            ActivEdit Level 1

                            Ahhh, got ya. I taught myself flash for this project and am not really familiar with web

                            desiging. Learned something new, thanks!

                            • 11. Re: No loaders in .EXE?
                              kglad Adobe Community Professional & MVP

                              you're welcome.

                               

                              if case-mismatch is the problem, please mark this thread as answered.

                              • 12. Re: No loaders in .EXE?
                                ActivEdit Level 1

                                Will do.

                                • 13. Re: No loaders in .EXE?
                                  ActivEdit Level 1

                                  No case mis-match and the preloader still will not show up. I've search all over for a similar problem to what I'm experiencing to no avail. I'm stuck! It wouldn't be a problem except that some of the demo files are upwards of 12mb and when they choose those demos, the preloader doesn't show and it's stuck on the "room" picture until the demo .swf loads. I fear that some viewers may not be patient enough to wait until the demo .swf loads and plays. It's gotta be something with the .EXE format...but I do need and .EXE so that the CD will auto-run.

                                  • 14. Re: No loaders in .EXE?
                                    kglad Adobe Community Professional & MVP

                                    you're not going to see a preloader when loading local files and noone should be stuck on anything waiting for a 12mb local file to load.  it should load about as fast as your cd's seek speed.

                                    • 15. Re: No loaders in .EXE?
                                      ActivEdit Level 1

                                      It only hang for a second or so before the demo.swf plays (about the same amount of time it would take the loader to show).

                                       

                                      One more quick question. Since no loader will show for this project, does the movie clip loader script slow the process at all? I highly doubt it, but was just curious. Thanks again!

                                      • 16. Re: No loaders in .EXE?
                                        kglad Adobe Community Professional & MVP

                                        no, it doesn't.

                                         

                                        your swf should display about as quickly as anything else that you insert into your drive, hear it whir and within a few seconds see a display.

                                         

                                        p.s.  please mark this thread as answered, if you can.

                                        1 person found this helpful
                                        • 17. Re: No loaders in .EXE?
                                          ActivEdit Level 1

                                          Got ya, thanks for the insight

                                          • 18. Re: No loaders in .EXE?
                                            kglad Adobe Community Professional & MVP

                                            you're welcome.