     var widgetData:Object;
 
     ExternalInterface.addCallback('setWidgetData', function setWidgetData(data:String, productData: String):void {
+
+      product = JSON.parse(productData);
+      index = product.index;
+      log('swf received data for product index ' + index);
+
       widgetData = JSON.parse(data);
       brandName.text = widgetData.initialProduct.brandName;
       productName.text = widgetData.initialProduct.name;


    function loaderClickHandler(e:Event):void {
      log('widgetOpenLightbox' + widgetUuid);
      executeJS("Shopbeam.swfOpenLightbox('" + widgetUuid + "')");
    }

    hoverArea.addEventListener(MouseEvent.CLICK, loaderClickHandler);

      listPrice.text = dollarFormatter.format((widgetData.initialVariant.listPrice / 100), true);
      //strikeThrough.width ...
      salePrice.text = dollarFormatter.format((widgetData.initialVariant.salePrice / 100), true);

    });

    stage.align = StageAlign.TOP_LEFT;
