• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Verify Error with SampleDataEvent in browser

Advocate ,
Dec 16, 2011 Dec 16, 2011

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?

TOPICS
ActionScript

Views

2.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

Copy link to clipboard

Copied

my player version is: LNX 10,0,45,2

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 16, 2011 Dec 16, 2011

Copy link to clipboard

Copied

LATEST

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines