[Laszlo-dev] regression in swf9, in the state example in test/swf9/hello.lzx

Henry Minsky hminsky at laszlosystems.com
Fri May 2 18:41:41 PDT 2008


I'm getting this runtime error in hello.lzx when I click on the pink square
which
is supposed to apply the state to make the purple square appear.


[Fault] exception, information=ArgumentError: Error #1063: Argument count
mismatch on LzState/apply(). Expected 1, got 0.
Fault, $lzc$handle_onclick$mystate_$m80() at $lzc$class_view_mystate.as:6
 6     this.mystate.apply()
(fdb)


the code is

  <view id="mystate"  x="650" y="80" onclick="this.mystate.apply()" >
    <state name="mystate">
      <view width="50" height="50" x="50" y="40" bgcolor="#ccccff"
            onclick="parent.mystate.remove()">
              <text>xxx Click me to remove state</text>
      </view>
    </state>
    <view width="50" height="50" bgcolor="#ffcccc"/>
    <text name="t1">Click me to apply state</text>
  </view>


Can we make LzState.apply 's "ignore" are be optional?




-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080502/aa9ebc55/attachment.html


More information about the Laszlo-dev mailing list