View Full Version : Spry tabs with flash buttons

08-17-2010, 01:36 PM

I managed to make flash buttons communicate with spry tabs through actionscript 3.0. But somehow, it only works in IE, Safari and Chrome.
When it comes to Firefox and Opera, the regular spry tabs work, but the flash ones don't. Here's the as3 code I used for the buttons:

import flash.external.ExternalInterface;

b1.addEventListener(MouseEvent.CLICK, onButtonClick);

function onButtonClick(event:MouseEvent):void
var tab:uint = ExternalInterface.call("TabbedPanels1.showPanel(0)");

Sorry, I'm not sure if this should be posted in the js, html or flash forum anyway..