[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [bug #37146] Gnash displays the parent MovieClip before c
From: |
Nachanon Vetjasit |
Subject: |
[Gnash-commit] [bug #37146] Gnash displays the parent MovieClip before child MovieClip gets loaded |
Date: |
Sun, 19 Aug 2012 04:13:02 +0000 |
User-agent: |
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.9.168 Version/11.51 |
URL:
<http://savannah.gnu.org/bugs/?37146>
Summary: Gnash displays the parent MovieClip before child
MovieClip gets loaded
Project: Gnash - The GNU Flash player
Submitted by: nachanon
Submitted on: Sun 19 Aug 2012 04:13:01 AM GMT
Category: None
Severity: 3 - Normal
Release: 0.8.10
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hello, I have used Gnash 0.8.10 to a Flash 7 file that tries
to invoke gotoAndStop() on a child MovieClip using this code:
var submovie:MovieClip;
var enteredFrame:Boolean=false;
public function onLoad():Void {
trace("main: load");
trace("main: attaching sub");
submovie=attachMovie("SubMovie","submovieclip",1);
trace("main: finished loading");
}
public function onEnterFrame():Void {
if(enteredFrame) return;
enteredFrame=true;
trace("main: first appearance on frame");
submovie.gotoAndStop(2);
trace("main: completed appearance");
}
Which SubMovie has 2 frames: frame 1 contains a blue circle, and frame 2
contains an orange circle.
And when SubMovie loads, it will issue gotoAndStop(1) on itself.
On Macromedia Flash player, SubMovie was loaded and displayed right _before_
MainMovie's onEnterFrame().
So SubMovie sets itself to frame1, then MainMovie sets it to frame2.
Thus, an orange circle displayed as final result.
But on Gnash, SubMovie was loaded and displayed _after_ MainMovie's
onEnterFrame().
So MainMovie sets SubMovie to frame2, then SubMovie sets itself to frame1.
Thus, a blue circle displayed as final result, which was incorrect.
http://www.mediafire.com/?vpymu3on4ui4mrw
This is a correct image result from Macromedia Flash Player 7
If you saw it in action, you would notice a blink of blue circle at the
beginning, and it stopped with orange circle.
Flash Player 7 debug output:
main: load
main: attaching sub
main: finished loading
sub: load
sub: finished loading
sub: first appearance on frame
sub: completed appearance
main: first appearance on frame
main: completed appearance
http://www.mediafire.com/?pmrf47hd80944fk
This is an image result from Gnash 0.8.10
If you saw it in action, you would notice a blink of orange circle at the
beginning, and it stopped with blue circle.
Gnash debug output:
2802:1] 414 TRACE: main: load
2802:1] 414 TRACE: main: attaching sub
2802:1] 414 TRACE: main: finished loading
2802:1] 414 TRACE: main: first appearance on frame
2802:1] 414 TRACE: main: completed appearance
2802:1] 505 TRACE: sub: load
2802:1] 506 TRACE: sub: finished loading
2802:1] 506 TRACE: sub: first appearance on frame
2802:1] 506 TRACE: sub: completed appearance
http://www.mediafire.com/?5k4imfrpltp6mg4
This is my test flash file, accompanied with source code,
created from Macromedia Flash MX 2004 (Flash 7).
Also attached here.
Note: The pentagon displayed on the screen was the MainMovie
[MainMovieClip.as], the circle was the SubMovie [SubMovieClip.as].
System: Debian GNU/Linux 5.0 "Lenny" i386
Gnash: gnash_0.8.10-1~lenny from getgnash.org APT repository
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 19 Aug 2012 04:13:01 AM GMT Name: loadorder.zip Size: 2kB By:
nachanon
Test flash file (flash 7), with source code
<http://savannah.gnu.org/bugs/download.php?file_id=26389>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37146>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [bug #37146] Gnash displays the parent MovieClip before child MovieClip gets loaded,
Nachanon Vetjasit <=