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

External interface callback breaks differently in different browsers.

New Here ,
Sep 24, 2013 Sep 24, 2013

egad, got a bunch of hours in on this, and while putting a copy online for this question, found out that chrome and ie work fine, it's just firefox.  anyway, kind of simple, but a pain to explain, but here goes.

javascript-loading SWFs into a div: new one replaces the old one.  using external interface to start/stop SWFs, and get info about their playing status.  made a simple version for this question and i'll throw the link down below.  the problem goes like this:

i load the initial swf.

a button on the page has no problem starting and stopping the swf.

another button on the page replaces the current swf with a new one.

firefox: when you first load the page, you can load SWFs as many times as you want, and wherever you stop, the start/stop button will work fine, but it won't work any more on any loaded SWFs after you use it on the first one.

oddly, i'm finding out more about this as i go along:

chrome: works fine online, but doesn't work at all locally.

ie: works fine both online and locally (sigh)

firefox: does the described problem locally and online.

am i missing something altogether here?  i mean you know, looking for what i need to do for this to work consistently.

if you want to see the problem, i've put the whole thing here:

https://dl.dropboxusercontent.com/u/11385083/problem2/index5.html

you can also download all these wonderful files from the page.

thank you thank you thank you anyone who can figure this out.

if you want more info just ask.

i'll be happy so blabber more and about this so anyone interested

thanks,

gpb

TOPICS
ActionScript
747
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 Expert ,
Sep 24, 2013 Sep 24, 2013

the only problem i am aware of is you can only have one instance of your externalinterface using file(s) open at any one time in any one browser.  ie, in any browser, if you have two tabs open to your file(s) at one time, you'll break 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
New Here ,
Sep 24, 2013 Sep 24, 2013

haha nope.  thanks kglad.  i knew this wasn't the problem since i've opened and closed these things a gazillion times now but...  thanks for the tip, though.  hadn't thought about the tabs and all.  i've used external interface a lot myself, and never have trouble.  but i've never swapped swf files out and tried to use it from one to the next.  i'd sure hate to think that it's something like, because i've previously opened a swf that uses external interface, i can't use it on any subsequent swfs.  yikes.  would ruin my whole plan.  thanks again.

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 Expert ,
Sep 25, 2013 Sep 25, 2013
LATEST

you're welcome.

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