Added some constants and extra classes for Flash.This version is working properly.