Results 1 to 9 of 9

Thread: Preloaded Comic

  1. #1
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Preloaded Comic

    -------------

    Script: Preloaded Slide Show
    http://www.dynamicdrive.com/dynamici...eloadslide.htm

    To a degree, this script is exactly what I have been searching for for about a week, however, I'm going to need to... 'mutate' it a bit (ha ha! That's a coding joke! Get it? No? Nevermind).
    what I would LIKE this to do is have a self populating array of the images (.gifs and .pngs) construct instead of me having to put the image names in manually every time I put a new one in.
    I bet that sounded confusing. What I'm trying to do is make this work for my sprite comic website, and, much like most online comics, I plan on updating the 'slide show' regularly. Thus, adjusting the begining array would be a pain after a while.

    So what am I asking? How would I go about making the array at the begining of the script search for every file in a directory (or right under it), then assign it to it's numeric spot in the array.
    Don't know if it will help, but the file names Always start with 'M' and then the number of the 'comic' (e.x. M1.png is the first strip of the comic and M10.gif is the tenth).

    If I missed anything, please ask, as I plan on checking back on the forum, at least, daily.

    -------------

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Would you like me to make you one of these?

    http://www.dynamicdrive.com/forums/showthread.php?t=718

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you can find a way to adapt your idea into the preloaded slide show script, I would greatly appriciate the help.
    I'm not sure why I'm having such a problem with this: I just can't seem to wrap my head around it.

    Thank you, cr3ative

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I can only easily do that as a stand alone program which generates arrays - I can code VB pretty fast and troubleshoot anything quickly, but coding in other langages is a difficulty. Time restraints prevent me from doing so.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Will the number of images always stay the same as well? This is required before you can dynamically populate the array with M1.gif, M2.gif... until Mx.gif

  6. #6
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    With a bit of daydreaming this morning I realized a preloaded code would be a terrible idea because of the sheer size the array would become. It wouldn't be unusual for my strips to reach anywhere from one hundred to two hundred images, making for impossible load times.

    Instead, I need a navigator for each image. Crap.

    Thanks for the help though guys.

    :EDIT:
    cr3ative, if you can still get your pregen script to me, I'd appriciate it. I think I can still salvage this project by stitching together two other scripts into this one. Mmm, how exciting :|
    Last edited by r3dh4t; 12-01-2004 at 11:40 AM.

  7. #7
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    :/ Tis a .exe program, nayt a script.
    It creates arrays.
    I'll post one soonish.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  8. #8
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    An exe that creates an array? What the heck is the output? A .txt file?

  9. #9
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It's a text box. Just like the one I'm replying to this thread in.

    cr3ative
    19 days till christmas
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

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