Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Text Compression?


    If have a project that saves data as a text file.

    Sometimes these files can get to be pretty big.

    I was wondering if there is a Text Compression algorithm that anyone knows that has been written into, or could be, into Lingo?

    A way to compress a string and then decompress it?


    >>> ## Why Python is a model for all
    >>> import this
    The Zen of Python, by Tim Peters
    sprout_68 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Compression
      Hi David, If your images are jpeg or png, then link them to the cast instead of importing them. Then place the linked files on the CD. The linked...
    2. PDF Compression
      Hi All, I need to write a custom code in JAVA which should be capable of handling the compression of pdf files. Any help would be highly...
    3. Compression?
      When exporting a pdf from Quark Xpress, should I use the compression (jpg/zip) if the file is to be printed? I have been using no compression but the...
    4. compression of text and "line graphics"
      Hello, I want to export an InDesign 2.01 file (WinXP) as PDF. In the Compression tab there is the option "compress text and line graphics" (in...
    5. Video Compression...
      In my Director project, I have some 640x480, 30fps Quicktime videos embeded. I've tried adjusting many of the Sorenson compression settings...I get...
  3. #2

    Default Re: Text Compression?

    well I can't directly answer your question. But isn't a zip file the same thing as compression.
    I have heard that you can get xtras to both read in and read out zip files. I have absolutely no idea of the name of the particular xtra though.

    But I remember reading something about this on [url]www.director-online.com[/url]

    sorry I can't be more help



    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    see my photos of the sunrise eclipse

    [url]http://www.geocities.com/hairybobby2000/ecllipse.html[/url]
    hairybobby webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Text Compression?


    I was looking more for a formula that I could write into Lingo that can take a string and shrink down the number of characters.

    I might have to look to the Zip xtras out there.

    thanks,

    and how did that movie script I posted work for you? Did it help find the behaviors that people had attached?

    sprout

    >>> ## Why Python is a model for all
    >>> import this
    The Zen of Python, by Tim Peters
    sprout_68 webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Text Compression?

    Thanks again for that script sprout,

    I was just really asking because i didn't know how to do it?

    I wanted to know that when i was making this behavior

    [url]http://www.geocities.com/hairybobby2000/pageturn.html[/url]

    its a quad script that works like a book.

    I needed to know which sprites had the behavior attached but I just totally fiddled around it.
    The fiddle works nicely and I suppose i should have changed it to yours but I haven't got round to it.

    Basically when the behavior starts i set the locz to the spritenum+ 22700. And so to detect which other sprites have the script attached you just test the locz for between 22700 and 22850
    Its not perfect because someone might set the locz to 22700 for some other reason but it works nicely. and its only about one or two lines


    I just about think i can get away with it though it is a total fiddle!!!!

    What do you think should I do it the right way - ie yours!!






    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    see my photos of the sunrise eclipse

    [url]http://www.geocities.com/hairybobby2000/ecllipse.html[/url]
    hairybobby webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Text Compression?

    if yours works then leave it as is!

    If you can find a use for mine, go right ahead!! at your own risk..




    >>> ## Why Python is a model for all
    >>> import this
    The Zen of Python, by Tim Peters
    sprout_68 webforumsuser@macromedia.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139