Can’t compile your project in Flash Builder with ANT because of a lack of memory? Do this :
Got to Run –> External Tools –> External Tools Configurations
Select your ANT task on the left hand side, then select the JRE tab. In the VM arguments box type this
Now run it again. Should work. Thanks.