Tue 02 Apr 2013 04:53:35 PM UTC, comment #3:
I've created a dummy flash page to demonstrate this problem,
by using 16x16 pixel SWF dimension, set stage to 'noScale' mode in the movie's constructor,
and immediately grab Stage.width, Stage.height
then set the obtained dimension to TextField,
similar to what SounManager2 do at runtime.
My dummy flash page with source code (compiles in MTASC)
and screenshots also attached; file #27747
This is a correct trace output from Adobe Flash Player 11:
You'd see that Flash Player switched to <embed>'s dimension immediately in Stage.scaleMode="noScale" statement, with resize event instantly fired.
In the screenshot, you'll see that Flash correctly displayed "Hello World".
This is a trace output from Gnash 0.8.10:
You'd see that Gnash didn't change to <embed>'s dimension immediately in Stage.scaleMode="noScale" statement.
It instead, delayed until constructor finished execution, then applies the new dimension (with resize event fired afterward).
In the screenshot, you'll see that Gnash displayed only the "He" part.
Gnash: gnash 0.8.10-1~lenny, browser-plugin-gnash 0.8.10-1~lenny from getgnash.org APT repository
Browser: iceweasel 3.0.6-3 from Debian repository (no addons)
System: Debian GNU/Linux 5.0 Lenny on i386
|