Author: hqm
Date: 2007-12-11 08:24:21 -0800 (Tue, 11 Dec 2007)
New Revision: 7505

Added:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LibrarySWF9.lzs
Modified:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/TestApp.as
Log:
Change 20071211-hqm-0 by [EMAIL PROTECTED] on 2007-12-11 11:22:55 EST
    in /cygdrive/c/users/hqm/openlaszlo/devildog/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/lfc

Summary: 

New Features: swf9 development lfc

Bugs Fixed:

Technical Reviewer: dda (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:



Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs      
2007-12-11 13:55:06 UTC (rev 7504)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs      
2007-12-11 16:24:21 UTC (rev 7505)
@@ -12,6 +12,12 @@
 /** @access private */
 var _Copyright = "Portions of this file are copyright (c) 2001-2007 by Laszlo 
Systems, Inc.  All rights reserved.";
 
+if ($swf9) {
+
+#include "core/LibrarySWF9.lzs"
+
+} else {
+
 // Compiler runtime support first
 #include "compiler/Library.lzs"
 
@@ -58,3 +64,4 @@
   }
 }
 
+}

Added: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LibrarySWF9.lzs


Property changes on: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LibrarySWF9.lzs
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2007-12-11 13:55:06 UTC (rev 7504)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2007-12-11 16:24:21 UTC (rev 7505)
@@ -418,6 +418,7 @@
           o Sets the style object of the sprite 
       */
       public function setStyleObject( style:Object ):void {
+          // NYI
       }
 
 
@@ -425,6 +426,7 @@
           o Gets the style object of the sprite 
       */
       public function getStyleObject():Object {
+          // NYI
           return null;
       }
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/TestApp.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/TestApp.as 
2007-12-11 13:55:06 UTC (rev 7504)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/TestApp.as 
2007-12-11 16:24:21 UTC (rev 7505)
@@ -16,6 +16,10 @@
   // draws a randomly sized and colored circle. When the user clicks 
   // a circle, this class removes that circle from the screen.
   public class TestApp extends Sprite {
+
+      [Embed(source="logo.swf")]
+      public var logoClass:Class;
+
     public function TestApp () {
 
 
@@ -37,11 +41,20 @@
 
     var sprite2:* = new LzSprite(null, false);
 
-      sprite2.setY(100);
+      /*      sprite2.setY(100);
       sprite2.setSource("logo.swf");
       addChild(sprite2);
-      sprite2.addEventListener(MouseEvent.MOUSE_DOWN, describeImg) ;
+      sprite2.addEventListener(MouseEvent.MOUSE_DOWN, toggleplay) ;*/
 
+
+
+
+    var asset:DisplayObject = new logoClass();
+      trace('making new asset ' +asset);
+      addChild(asset);
+
+
+
       //sprite2.scaleX = 0.3;
       //      sprite2.scaleY = 0.3;
 
@@ -126,7 +139,24 @@
       }
 
 
+      static public var playing:Boolean = true;
 
+      /*      public function toggleplay(event:MouseEvent):void {
+          trace('toggle play on sprite', event);
+      var obj:AVM1Movie = AVM1Movie(event.target.content);
+          trace('movieclip = '+obj);
+                  if (playing) {
+              obj.stop();
+          } else {
+              obj.play();
+          }
+        
+          playing = (! playing);
+      }
+  */
+
+
+
       public function describeImg(event:MouseEvent):void {
           trace("describe "+event.target+" width="+event.target.width);
           trace("describe "+event.target+" height="+event.target.height);


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to