Copy link to clipboard
Copied
[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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
yes i dragged it in and yes its a debug version of the flash player
Copy link to clipboard
Copied
sorry forgot to indicate that i'm using Firefox 7 and Flash Player 10. maybe that is a flash player 10 bug.
Copy link to clipboard
Copied
Sorry I'm sure you have, but I'd double check your flash player plugin version the SampleDataEvent was added in Flash Player 10
They error suggests you have at least version 10 for your stand alone player (it works)
And at most version 9 installed in firefox (hence the error)
Copy link to clipboard
Copied
my player version is: LNX 10,0,45,2
Copy link to clipboard
Copied
Tested on another linux machine with FP 10.3.183.11 and it works. so perhaps SampleDataEvent was first introduced in that version or something.. but that should answer my question. thanks!