Yes, scoping is method-level, not block-level in javascript/actionscript.

-Max

Philip Romanik wrote:
Approved, although I do have a scoping question in LzHistory.as. 2 variables are defined inside a block (var args, var lastscope), yet they are used outside the block. Is this by luck, or does ActionScript support this?

Phil


Change 20061204-maxcarlson-w by [EMAIL PROTECTED]
computer.local on 2006-12-04 09:56:03 PST
     in /Users/maxcarlson/openlaszlo/legals

Summary: Add Lz.callMethod() to flash gateway

New Features:

Bugs Fixed:

Technical Reviewer: promanik
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation: Lz.callMethod() accepts string in the form of a
javascript method call, which is then evaluated and executed in
Flash.  Lz.callMethod accepts arguments, e.g. Lz.callMethod
('aview.testMethod(\'foo\', true, false, 1, 0, width, height)') calls
canvas.aview.testMethod('foo', true, false,  1, 0, width, height) in
Flash.

Release Notes:

Details: Lz.callMethod() accepts a javascript method which is then
evaluated in Flash and executed.  Update test cases, clean up
flash.js, update wrappers.


Tests:

Files:
M      test/lfc/legals/testjscomm/test6.html
M      test/lfc/legals/testjscomm/copy-of-hello.lzx
M      test/lfc/legals/testjscomm/test8.html
M      WEB-INF/lps/lfc/services/LzHistory.as
M      WEB-INF/lps/lfc/LaszloLibrary.lzs
M      WEB-INF/lps/templates/html-response.xslt
M      lps/includes/source/embednew.js
M      lps/includes/source/flash.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20061204-
maxcarlson-w.tar




--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to