added __construct in Flash to avoid bug in php<5.3.3