Skip to main content
Inspiring
December 16, 2011
Question

Verify Error with SampleDataEvent in browser

  • December 16, 2011
  • 1 reply
  • 3069 views

[AS3]

import flash.events.SampleDataEvent;

var data:SampleDataEvent = new SampleDataEvent(SampleDataEvent.SAMPLE_DATA);

[/AS3]

compile it with Flex 3.6 and run local works, then run in browser, works.

compile it with Flex 4.5.1 and run local works, then run in browser, throws exception:

An ActionScript error has occurred:

VerifyError: Error #1014: Class flash.events::SampleDataEvent could not be found.

    at global$init()

Is that a known Adobe bug? Are there any workarounds to it?

This topic has been closed for replies.

1 reply

_spoboyle
Inspiring
December 16, 2011

i created a small project that simply created a SampleDataEvent and displayed sampleDataEvent.toString() on the stage.

Everything worked fine

compiled with Flex 4.5.1.21328

firefox 8.0

flash player WIN 11.1.102.55

Inspiring
December 16, 2011

Did you try dragging the .swf into a browser and see if it also works?

Edited: oh sorry didn't read you tested on firefox 8. did you have debug version of flash player installed?

_spoboyle
Inspiring
December 16, 2011

yes i dragged it in and yes its a debug version of the flash player