Я пытаюсь отправить событие ошибки в приложении AS3:
dispatchEvent (новый ErrorEvent (ErrorEvent.ERROR, false, false, "my error message"));
, но яполучить следующую ошибку времени выполнения:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::ErrorEvent@2c04239 to com.adobe.protocols.dict.events.ErrorEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at my line of code..
это мои операторы импорта в верхней части файла:
import flash.display.MovieClip;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;
import flash.security.IURIDereferencer;
import flash.security.ReferencesValidationSetting;
import flash.security.RevocationCheckSettings;
import flash.security.SignatureStatus;
import flash.security.XMLSignatureValidator;
import flash.utils.ByteArray;
import mx.utils.Base64Decoder;
import mx.utils.Base64Encoder;
import mx.utils.SHA256;
что происходит?
спасибо