loadMovie and memory usage

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default loadMovie and memory usage

    Dear Developers,

    I have a big problem with Flash 7 (and 6):
    I need to attach a movieclip which contains a jpeg image several times (up to
    50 times!). But I want to do this dynamically on the fly without changing the
    fla-library, compile it, upload it,....

    So my problem is: If I first load the jpeg image into my movieclip with
    loadmovie and then dynamically attach or duplicate this movieclip to Stage
    several times, the Flash Player needs for ex. 50 times the memory size of one
    image!

    If the image is placed within the library (no dynamic load with loadMovie),
    Flash simply takes the image and duplicates it internally so that the memory
    usage is very low.

    So with the dynamic loadMovie solution, Flash player needs about 50MBytes
    memory, with the image placed within the library only 1 MByte. A big difference!

    Are there any workarounds available? Maybe changing the image server-side with
    a Generator... but for MX?

    notaus123 Guest

  2. Similar Questions and Discussions

    1. COM memory and CPU usage
      i have installed a VB6 COM component in the Component Services of IIS 4.0. i'm not sure if it's been properly set-up. it keeps eating up huge...
    2. Too Much Memory Usage
      make sure you're not running norton protected recycle bin.
    3. CPU and Memory usage
      Hi How do I find CPU and memory usage for all process on a system over time? I would like to run such a script and write the result to a log...
    4. memory usage
      i need help in being able to control my memory usage when my computer starts. when my computer starts it is using about 140-160 mgb of memory i...
    5. PS Memory Usage
      Russel, if you're running Windows 98 / ME, it could be (and I insist, COULD) the problem. Windows 98 and alike (pre-XP) are known to have memory...
  3. #2

    Default Re: loadMovie and memory usage

    ig you use 'loadMovie' the player should do some caching (if the image is the
    same) and prevent memory leaks.
    Caching, AFAIR, works if you load the same image, from the same URI, in the
    same or different mc holder(s).

    HTH,

    -c.

    CesareRocchi Guest

  4. #3

    Default Re: loadMovie and memory usage

    yes. but downloading or caching is not the point. i mean the internal memory usage of the flash player
    regards
    notaus123 Guest

  5. #4

    Default Re: loadMovie and memory usage

    ok ok, but if you don't want to modify your fla the only solution is going with
    loadMovie ...
    and its consequences. Even if you find a way to decompile and recompile wouy
    swf on server side
    I doubt you can change the library.

    Good luck.

    -c.

    CesareRocchi Guest

  6. #5

    Default Re: loadMovie and memory usage

    with the swift-generator it was possible to simply replace images within
    compiled swf files. but there's no support for MX swf available, only flash 5.
    but thanks for your help. maybe macromedia will fix this bug one time...

    cu
    cs

    notaus123 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