Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Aug 29, 2014 Aug 29, 2014

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

TOPICS
ActionScript
194
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2014 Aug 29, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 29, 2014 Aug 29, 2014
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines