LzSprite (swf8)
         // always stop on the first frame
-        this.queuePlayAction( "stop" , 0);
+        this.queuePlayAction( "stop" , f, rel);

Please remove comment "always stop on the first frame", too.

Otherwise looks good, but I haven't tested it yet.


On 5/21/2010 6:56 AM, Max Carlson wrote:
Change 20100520-maxcarlson-R by maxcarl...@friendly on 2010-05-20 21:46:58 PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix playback of multiframe resources to be consistent across runtimes

Bugs Fixed: LPP-9021 - views with multiframe resources should actually play

Technical Reviewer: ptw
QA Reviewer: mdemmon

Details: LzRequires,Library - Remove unused LzRequires include.

kernel/Library - Add shared LzResourceLibrary object for use across runtimes.

swf/LzSprite - Use LzResourceLibrary for resource size lookups, default all 
resources to stopped, correct queuePlayAction() call for stop()

dhtml/LFC - Use shared LzResourceLibrary object.

swf9/LFCApplication - Use shared LzResourceLibrary object.

swf9/LzSprite - Update compiled multiframe resources to support play() and 
stop().

LaszloCanvas - Remove unused resourcetable property.

SWFWriter - Write resource info to LzResourceLibrary like swf9 and dhtml

Tests: All apps run as before.  Updated testcase at LPP-9021 works consistently 
across runtimes.

Files:
D       WEB-INF/lps/lfc/kernel/swf/LzRequires.as
M       WEB-INF/lps/lfc/kernel/swf/Library.lzs
M       WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M       WEB-INF/lps/lfc/kernel/dhtml/LFC.js
D       WEB-INF/lps/lfc/kernel/dhtml/LzRequires.js
M       WEB-INF/lps/lfc/kernel/dhtml/Library.lzs
M       WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
M       WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M       WEB-INF/lps/lfc/kernel/Library.lzs
D       WEB-INF/lps/lfc/kernel/LzRequires.lzs
M       WEB-INF/lps/lfc/views/LaszloCanvas.lzs
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100520-maxcarlson-R.tar


Reply via email to