I m getting intelligence under VCode but import statement not added.

On 27-Nov-2017 9:02 PM, "Harbs" <[email protected]> wrote:

> It sounds like you’re missing the js.swc references.
>
> > On Nov 27, 2017, at 5:04 PM, [email protected] wrote:
> >
> > Hi,
> >
> > I am trying to  Image preview with Royale  and used  Royale FileAPI but
> gettign following error. Please suggest.
> > var fileReader:FileReader = new FileReader();
> > fileReader.addEventListener("onload",onFileLoad);
> > fileReader.readAsDataURL((fileProxy.model as FileModel).blob as Blob);
> >
> >
> > Error: Type was not found or was not a compile-time constant: FileReader.
> >
> >                var fileReader:FileReader = new FileReader();
> >                               ^
> > d:\ApacheFlex\workspace\FileUpload\src\FileUpload.mxml(34): col: 49
> Error: Call to a possibly undefined method FileReader.
> >
> >                var fileReader:FileReader = new FileReader();
> >                                                ^
> > d:\ApacheFlex\workspace\FileUpload\src\FileUpload.mxml(36): col: 81
> Error: Access of possibly undefined property Blob.
> >                fileReader.readAsDataURL((fileProxy.model as
> FileModel).blob as Blob);
> >
> > Thanks,
> > Prashant Kumar
> >
>
>

Reply via email to