4 * A class with a few memory-management methods, as much as
\r
5 * such a thing exists in a Flash player.
\r
6 * Copyright (c) 2007 Henri Torgemane
\r
8 * See LICENSE.txt for full license information.
\r
10 package com.hurlant.util
\r
12 import flash.net.LocalConnection;
\r
13 import flash.system.System;
\r
17 public static function gc():void {
\r
20 new LocalConnection().connect('foo');
\r
21 new LocalConnection().connect('foo');
\r
24 public static function get used():uint {
\r
25 return System.totalMemory;
\r