PiRSquared17 / svgweb

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

setInterval causes tack overflow with Flash #626

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

counter = setInterval(function(){
        var t = parseInt(child.getAttributeNS(null, "height"), 10) + 1;
        t.toString();
        child.setAttributeNS(null, "height", t);
        if( t == 200)
        {
        clearInterval(counter);
        }

        }, 0.5);

What is the expected output? What do you see instead?
I get "Stack Overflow at Line..."

What version of the product are you using? On what operating system,
browser, and version of Flash?
IE8

Please provide any additional information below. Reduced test cases are
always appreciated!

Whenever i use the setInterval, on the Flash version i get this alert warning 
about stack overflow.
Please Help.

Original issue reported on code.google.com by FFabrica...@gmail.com on 8 Sep 2011 at 1:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can't manage to make the setInterval work even forcing other browser with 
Flash renderer..
The script is embedded in a svg file...

Original comment by FFabrica...@gmail.com on 8 Sep 2011 at 2:02