a7mdfm / flexpaper

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

Javascript error on page load #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install the newest Adobe Flash Player (10,1,82,76) in Internet Explorer 8 on 
Windows Vista.
2. Navigate to http://flexpaper.devaldi.com/
3. Note script error in bottom-left corner.

What is the expected output? What do you see instead?
No errors should occur. Instead, you get a script error "Object doesn't support 
this property or method." This comes out of the following code (presumably 
injected by swfobject or Flash itself.)

    function __flash__addCallback(instance, name) {
      instance[name] = function () { 
        return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
      }
    }

I have confirmed that the instance object is indeed the <object> that swfobject 
inserts. However, it does not respond to the CallFunction method.

What version of the product are you using? On what operating system?
Adobe Flash Player (10,1,82,76) in Internet Explorer 8 on Windows Vista. 
Confirmed bug in both stable FlexPaper (1.3.1) and the release candidate 
(1.4.0rc1).

Original issue reported on code.google.com by pncal...@gmail.com on 17 Aug 2010 at 7:40

GoogleCodeExporter commented 8 years ago
Incidentally, inside the __flash__addCallback call, name = "Zoom". This comes 
out of this swfobject-initiated call:

    __flash__addCallback(document.getElementById("FlexPaperViewer"), "Zoom")

Original comment by pncal...@gmail.com on 17 Aug 2010 at 7:42

GoogleCodeExporter commented 8 years ago
fixed in 1.4.0 RC2. New javascript file added

Original comment by erik.eng...@gmail.com on 19 Aug 2010 at 4:12

GoogleCodeExporter commented 8 years ago
Thanks for the quick turnaround! Love the project and plan to purchase a 
license for a work project.

Original comment by pncal...@gmail.com on 19 Aug 2010 at 8:29