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
[EMAIL PROTECTED]

Reply via email to