gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #38625] Gnash initially set Stage.width and Stage.he


From: Nachanon Vetjasit
Subject: [Gnash-commit] [bug #38625] Gnash initially set Stage.width and Stage.height to SWF metadata regardless what <embed> tag says
Date: Tue, 02 Apr 2013 16:53:35 +0000
User-agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.9.168 Version/11.51

Follow-up Comment #3, bug #38625 (project gnash):

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:

<init>: start
w: 500 h: 200 (resized)
w: 500 h: 200
<init>: end

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:

3005:1] 214 TRACE: <init>: start
3005:1] 214 TRACE: w: 16 h: 16
3005:1] 227 TRACE: <init>: end
3005:1] 231 TRACE: w: 500 h: 200 (resized)

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

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38625>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]