32 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
frenzy_rumble says

Hey,

I recently made an application, which has a bunch of looping animations on it. There isn’t too much actionscript.

However, according to some site speed guys, when played a long time, the swf EATS up memory ..tons of it.

Is there a way to clear the memory the swf is using every 5 minutes or so? or refresh itself to fix memory issues?

here’s the url to the swf, to get an idea of the complexity. all objects are about 20 frames per, and loop infinite.

http://erickpadilla.com/fanbox/fish.swf

4911 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Member of the Envato Team
+9 more
MarkBrodhuber Envato team says

Hello, I don’t know enough to give you assistant…but I am posting to kindly asking you to refrain from posting the same thing multiple times. In the future please only make one post regarding each subject.

I have deleted your other post.

32 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
frenzy_rumble says

no problem, wasn’t familiar with the forum structure, and noticed there was a flash specific sub-forum at the later point.

32 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
frenzy_rumble says

wanted to reply with more specifics.

the swf loops animations which consist of around 20 or so frames which are jpgs. The overall swf size is only 500k, but from what I am gathering, when flash redraws any of these jpgs, it pulls more memory.

Is it possible to reset the flash or refresh the memory used?

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

you can’t “refresh the momory” on flash…
you need to optimize your code…
to use same instances, delete old ones.. etc

32 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
frenzy_rumble says

ok, but how can i do that? is that controlled through actionscript, or what?

...I use EVERY jpg in every animation, and loop each animation. all unused items in library are gone. It’s not a file size issue, it’s a “flash eats memory” issue.

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

the way you scripted the code eats the memory… you need to understand and optimize you code

32 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 10+ items on Envato Market
frenzy_rumble says

???

but there is no actual code. only tweens and loops.

are you recommending rebuilding the entire swf, and controlling all animations via AS? that is impossible and impractical.

From what I’ve gathered info wise, certain players have issues with Memory Management and Garbage Collection.

4911 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Member of the Envato Team
+9 more
MarkBrodhuber Envato team says

I dont know much about flash…but I know for a FACT that animation is very much able to be controlled with AS. Most big wigs actually prefer it. The level of control is huge…

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

Hmm… i let open that flash some time and i did not see any problems with memory usage…
maybe is the processor usage that makes trouble?
keeps my Intel Q6600 at 30% .. pretty high for that kind of animations :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by