windbreakerdoss / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SetVariable doesn't seem to work in Firefox using dynamic publishing #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using the dynamic publishing method with id -> loadingflash
2. function showLoading() {
  str = arguments.length>0?arguments[0]:'Searching please wait...';
  var set = false;
  try { window.document['loadingflash'].SetVariable("loadingText", str);
set=true; } catch(e) { set = false; }
  if(!set) {
    try { document.loadingflash.SetVariable("loadingText", str); } catch(e)
{ set = false; }
  }
  if(!set) {
    try { document.embeds['loadingflash'].SetVariable("loadingText", str);
} catch(e) { set = false; }
  }

What is the expected output? What do you see instead?
The Variable should to set in the flash movie. Instead catch(e) gives no
properties and other messages.

What version of the product are you using? On what operating system?
Firefox: 2.0.0.13
SWFObject: 2.0
Flash Player: 9,0,115,0 

Please provide any additional information below.
Works if I just use O/E code.

Original issue reported on code.google.com by google.a...@rain.com.au on 16 Apr 2008 at 12:35