Author: max
Date: 2007-12-04 12:05:52 -0800 (Tue, 04 Dec 2007)
New Revision: 7444
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
Log:
Change 20071204-maxcarlson-X by [EMAIL PROTECTED] on 2007-12-04 00:26:37 PST
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix splash and sendToBack() on subviews of canvas
New Features:
Bugs Fixed: LPP-4212
Technical Reviewer: promanik
QA Reviewer: enw
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: Preserve old behavior from before r6973 for the canvas.
Tests: See LPP-4212
Files:
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20071204-maxcarlson-X.tar
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-12-04
18:45:07 UTC (rev 7443)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-12-04
20:05:52 UTC (rev 7444)
@@ -1568,14 +1568,22 @@
}
// [todo hqm 01-24-07] SWF-specific
- var mb = this.__LZbgRef;
- if (mb == null) {
- this.setBGColor(0xffffff);
+ if (this.owner == canvas) {
+ // if this is the canvas sprite
+ var mc = this.getMCRef();
+ if (mc != null) {
+ mc.menu = cmenu;
+ }
+ } else {
var mb = this.__LZbgRef;
- mb._alpha = 0;
+ if (mb == null) {
+ this.setBGColor(0xffffff);
+ var mb = this.__LZbgRef;
+ mb._alpha = 0;
+ }
+ this._bgcolorhidden = true;
+ mb.menu = cmenu;
}
- this._bgcolorhidden = true;
- mb.menu = cmenu;
if (mb == null && mc == null) {
if ($debug) Debug.warn("LzView.setContextMenu: cannot set menu on view
%w, it has no foreground or background movieclip", this.owner);
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins