Select to view content in your preferred language

Converting SampleFlexViewer to 2.0 library

1979
2
07-28-2010 09:03 AM
StephenJakubiak
Emerging Contributor
I am having trouble moving my original SFV application to the 2.0 library which is run in Flash builder 4. I have got all the esri class changes done successfully but have a disconnect between my BaseWidget and Widget Manager. When I click on a widget I get null references with the map and it doesn't seem to set a value for the map in the Base Widget. As well it doesn't load my preloaded widgets or carry the styles over to the widgets. I was wondering if anyone came across the same issue when converting the SFV to the 2.0 library. I also have converted the app to SDK 4.0.

Thanks
Stephen Jakubiak
GeosurfInc.
Tags (2)
0 Kudos
2 Replies
StephenJakubiak
Emerging Contributor
A little more description. In the Base Widget class where it sets map the function gets a null value passed to its parameter ex.

public function setMap(value:Map):void
  {
   map = value;
  }

As well in this function value is null as well

public function setPreload(value:String):void
  {
   widgetPreload = value;
  }

If someone has insight to where this value comes from that would be greatly appreciated.
0 Kudos
StephenJakubiak
Emerging Contributor
I was able to solve this problem. it was simply a dispatch event that was needed.
0 Kudos