On 2009-04-06, at 12:44EDT, Tim Dauer wrote:

And here are my Questions:

1. What happened to the "id"-Tags? Every object I referred to by the object's id could not be found anymore - the call points to an undefined object. As up now I have to relate directly to my used objects - but I miss that feature badly and I am sure this had not be abandoned!

Are you talking about being able to say

<view id="p7">

? This is still supported, but you cannot dynamically add views by id. This is a restriction in swf9 (and possibly other future runtimes) that you cannot dynamically add global variables. If you need a global to refer to a dynamically-created view, you would have to say:

<script>
  var p7;

...

  p7 = new lz.view(...);

2. Could be related to the first question: When I use the expression "foo = new lz.Delegate(...)" I can not call that "foo" link to the actual object later in the code - it points to an undefined object. Could that be abandoned as well?!

This should work. If you have a small test case showing the incorrect behavior, please file a bug. Or maybe send it to the list so we can see where you might be going wrong.

Note, the documentation for <handler>/Delegate has some issues right now, which may be part of your confusion. We are trying to work to a solution where you will be able to do everything you need to do in LZX using the <handler> tag and not have to make lz.Delegate's by hand. (See http://jira.openlaszlo.org/jira/browse/LPP-7816).


Reply via email to