Copy link to clipboard
Copied
I am trying to run this code in a button function:
hilite2_mc.addEventListener(MouseEvent.MOUSE_DOWN, playhilite2);
function playhilite2(event:MouseEvent):void
{
hilite2_mc.play();
ExternalInterface.call("parent.doNextStep");
nextFrame();
}
nextFrame works when I publish and in the webpage, but if I click on it in a folder it does not work. I can put nextFrame above the External code and then it works fine, but I would rather not do that...
Thanks in advance
Copy link to clipboard
Copied
If you are using ExternalInterface then you need that for the program to work - the web page provides that ExternalInterface.
Copy link to clipboard
Copied
I have this code loaded on the first frame:
import flash.external.ExternalInterface;
Everything works everywhere except for clicking on the swf in a windows folder...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now