[Laszlo-dev] For Review: Change 20090220-bargull-Y8a Summary: loadratio for swf9 and change for security check
André Bargull
andre.bargull at udo.edu
Thu Feb 19 16:40:03 PST 2009
Change 20090220-bargull-Y8a by bargull at dell--p4--2-53 on 2009-02-20 00:53:38
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: loadratio for swf9 and change for security check
New Features:
Bugs Fixed: LPP-7709, LPP-7716
Technical Reviewer: max
QA Reviewer: promanik
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Renamed sound playback related methods:
- "startPlay" to "startSoundPlay"
- "stopPlay" to "stopSoundPlay"
- "updatePlay" to "updateSoundPlay"
Removed "frames", "source", "lastreswidth", "lastresheight",
"skiponload", "baseurl". All of them were either no longer needed or
left-overs from the original dhtml kernel based sprite implementation.
Moved loadurl computation in "setSource" in a separate method
("getLoadURL").
Removed null-pointer check in "applyStretchResource" because it was done
twice.
Moved framenumber computation and setting from "stop()" and "play()"
into a separate method ("updateResourcePlay").
LPP-7709:
Add all loader-events immediately after constructing the Loader, even
though the comment at "loaderInitHandler" says that it won't work (which
is a lie). See event description for "init" (flash.display.LoaderInfo):
"Dispatched when the properties and methods of a loaded SWF file are
accessible and ready for use."
So the "init"-event is dispatched far too late and therefore no
"progress"-events were detected and therefore no "onloadratio"-events
for users.
LPP-7716:
Don't use "parentAllowsChild"/"childAllowsParent" to avoid security
exceptions, instead use a simple try-catch block when accessing the
loaded content. Also moved the playback warning from
"loaderEventHandler" to "stop"/"play", because otherwise these warnings
did appear when loading a simple application in debug-mode (triggered by
avm1movie assets for the debugger).
Tests:
testcase from LPP-7709, note that "onloadratio" events are generated
amazon-demo in swf9
Files:
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20090220-bargull-Y8a.tar
More information about the Laszlo-dev
mailing list