Select to view content in your preferred language

Error on Link Widget

989
4
10-05-2011 09:00 AM
BrunoPereira1
Deactivated User
Hi,

I'm tryin to use Link Widget, but I get a Error:
the method addListener does exists (AppEvent.addListener).

Call to a possibly undefined method addListener through a reference with static type Class.

I'm using SDK 4.1 and Flex version 10.0.

What is the error?
Thanks!
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Bruno,

   You would only be getting this error if you are attempting to use this Flex Viewer 2.4 widget in an earlier version.
0 Kudos
BrunoPereira1
Deactivated User
My mistake! I'm sorry,

But you have examples to use the same functionality in version 2.2?


Thanks!

Bruno,

   You would only be getting this error if you are attempting to use this Flex Viewer 2.4 widget in an earlier version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bruno,

  Try changing this line:

AppEvent.addListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);


To this:

ViewerContainer.addEventListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
0 Kudos
BrunoPereira1
Deactivated User
Robert, Thanks Again, One more time, once again, over again 😄


Bruno,

  Try changing this line:

AppEvent.addListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);


To this:

ViewerContainer.addEventListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
0 Kudos