Skip to main content
mhunter1964
Known Participant
August 29, 2014
Question

code works when published and in web page but not in folder view

  • August 29, 2014
  • 1 reply
  • 253 views

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

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
August 29, 2014

If you are using ExternalInterface then you need that for the program to work - the web page provides that ExternalInterface.

mhunter1964
Known Participant
August 29, 2014

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...