MRchildNEO / svgweb

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

[flash renderer] only the functions defined on the first <script> block inside the svg are accessible via svg.defaultView #533

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create various <script> blocks inside an external svg;
2. set <meta name="svg.render.forceflash" content="true" />
3. try to access the functions defined in the 2++ <script> blocks via 
document.getElementById('svg').contentDocument.defaultView

What is the expected output? What do you see instead?
All the specified functions should be accessible via doc.defaultView.
Only the first functions are accessible and callable.

What version of the product are you using? On what operating system,
browser, and version of Flash?
Using dracolisk, firefox 3.6.8, Flash 10.1.53.64, Ubuntu 10.04

I'm attaching a file that shows the problem.
It captures the fact that using the flash renderer the clicked2 function in not 
available via doc.defaultView AND that the same function is also not available 
"inside" the external svg (the functions are triggered by clicking the 
green/red boxes).

Original issue reported on code.google.com by nesr...@gmail.com on 1 Aug 2010 at 8:47

Attachments: