Closed Bug 160511 Opened 22 years ago Closed 22 years ago

Error with scriptable Flash 6 plugin: "plugin.SetWindow is not a function "

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 159393

People

(Reporter: aleksander.adamowski, Assigned: rubydoo123)

References

()

Details

Attachments

(1 file)

Build id: 2002073118 trunk, Windows 2000

See this address for all files that comprise the testcase:
http://olo.office.altkom.com.pl/domowa/mozilla/2002_08_01_flash_js/
The jscomm.fla file there is a Flash 5 movie that tries to invoke JS method on
the page where it is embedded. The jscomm.swf is its compiled form.

The testcase works fine in Internet Explorer 6 with Flash plugin: after clicking
the round, red button in the SWF movie, the "text" word switches its color
between red and green (by means of simple JavaScript function).

In Mozilla, there's no effect when clicking the button, instead there's an error
message in the JavaScript console:


Error: plugin.SetWindow is not a function
Source File: javascript: function jsScriptObject(obj) { this.wrappedJSObject =
obj; } jsScriptObject.prototype = { evaluate : function(expression) { return new
jsScriptObject(eval(expression)); } }; var plugin = document.embeds['jscomm'];
plugin.SetWindow(new jsScriptObject(window),589361028);
Line: 1
Attached file Zipped testcase
Just in case my server goes down.
wfm using build 2002073118 on Win2k (trunk) + Flash 6.0.40 and the flash xpt file.
What's this flash xpt file? I can't find it anywhere on my local filesystems.
xpt allows scriptability. unless u have it..this testcase will not work. pls 
download the plugin from macromedia (latest/scriptable flash) and try this..it 
will work. pls let me know, thx!
flashplayer.xpt is only installed in Netscape 7 components directory
Mozilla is not recognized (np*.dll is copied but components dir is missing
flashplayer.xpt)
try installing netscape 7 then flash then copy flashplayer.xpt to tour moz
components dir
Confirming that Netscape browser is required to get hold of flashplayer.xpt.

Macromedia player's installer issue.

Any suggestions how to inform Macromedia of this issue (seek help of Netscape
tech evangelists probably)? I've already tried to report the problem with Linux
Flash plugin (bug 58339) to them through their standard bug reporting web form,
through e-mail, and comments to support documents on their site, and never got a
response - they basically seem to ignore any input from users.
Should this bug have Product -> Tech Evangelism ?
BTW copyinf flashplayer.xpt to Mozilla's plugins directory also fixes the problem. 

In my opinion, placing it in plugins dir is more consistent (it's a part of the
plugin, so it should go there) than placing it in components (which is full of
xpt's already and it's harder to vgrep for flashplayer there).

*** This bug has been marked as a duplicate of 159393 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: