A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Quick help with large *.swf :-)

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    3
    Hi,
    I'm not very experienced in flash, but have a lot of fun with Flash MX for win XP. I've been making a slide show with a lot of 1024*728 jpegs and some animated text. Everything is pretty basic and just running along the timeline. It seemed to work pretty well, but now that I'm finished, the result is a really large file and my computer tends to hang up (the program that runs the swf is shut down by Windows) in the middle of my presentation. I've been considering trying to divide it into several swfs or something to ease the demands on my computer. A simple slideshow shouldn't be that much of a problem for a 1,5 GHz as I consider it. Why doesn't it work and what should I do?

    I would appreciate quick help, as the deadline for my little project is closing in :-)

    Kristian Hanstad
    Jørpeland, Norway

  2. #2
    Arckid - Curving the Web
    Join Date
    Dec 2000
    Location
    India
    Posts
    1,412
    how long it is? i mean frames?

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    221
    well just load in the slides as you need them (jpg's or swf's)..

    make a new array , fill the array

    ->then make a load function and put it in root

    -> put on you're buttons to increase or decrease

    Code:
    slideArray= new Array();
    
    slideArray[0] = "image1.jpg"
    slideArray[1] = "image1.jpg"
    slideArray[2] = "image1.jpg"
    
    // function in _root
    
    container = null;
    num = 0;
    
    function loadSlideNum(){
    // if num is larger/ smaller as the array num!
    
    if(num > slideArray.length) num = 0;
    else if(num<0) num = slideArray.length;
    
    if(container==null) createEmptyMovieClip ("container", 1)
      container.loadMovie(slideArray[num]) 
    }

    on the button + & -


    Code:
    on (release) {
    num = num+1
    _root.loadSlideNum()
    }
    
    on (release) {
    num = num-1
    _root.loadSlideNum()
    }
    Okeey this would fairly do the job .. goodluck !!

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    3
    Originally posted by aashu.com
    how long it is? i mean frames?
    About 5700 frames (20 fps), somewhat 60 jpegs, 84 Mb swf...

  5. #5
    Junior Member
    Join Date
    Jun 2002
    Posts
    3

    Smile Thank you - I made it

    Thanks for your help, nyls! I guess this script would do the trick, I've saved it for future reference... This time, however, interactivity was only barely included in the file (start/stop movie), so I just dropped it and exported it as a .mov file and got a nice and stable thing. Pretty unorthodox and not compatible with the intentions of the flash format, but good enough for me, though

    Have a nice time,

    Kristian
    Jørpeland, Norway

  6. #6
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    84mb... thats scary... like was said before i would look into dynamically loading some of those jpgs (movies and sounds too).

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