dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: preloading for projectors

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    8

    preloading for projectors

    Is there a difference in the preload code for a web site vs. a projector?

    I am converting a web site to a cd-rom projector running full screen. It plays poorly. It doesn't seem to be preloading any of the animations. Preloading on the web site seems to work fine. I use the common preload code:

    if (_framesloaded == _totalframes) {
    gotoAndPlay("Start");
    }

    Any help would be appreciated.

  2. #2
    general rule bender Gloomycus's Avatar
    Join Date
    Nov 2000
    Location
    ontario canada
    Posts
    1,538
    Technically a preloader isn't needed for a projector because all the content is already present.

    you could try the following code if you are determined to use a preloader. make a movie clip with this code

    Code:
    onClipEvent(load) {
       _root.stop();
       tkb = _root.getBytesTotal();
    }
    onClipEvent(enterFrame) {
       lkb = _root.getBytesLoaded();
       if ((lkb/tkb) == 1) {
          _root.play();
       }
    }

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    8
    Thanks, I'll give that a try.

    I understand that I don't technically need a preloader for a projector, and the animations play fine when the projector is normal size. The problem is that the client wants the projector to play full screen. That's when the animations play horrible.

  4. #4
    general rule bender Gloomycus's Avatar
    Join Date
    Nov 2000
    Location
    ontario canada
    Posts
    1,538
    it may just be because of the animations themselves when they play

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center