There is a new compiler warning which will be generated when a method
is defined inside of a state.

For example, this code would generate the following compiler warning:

<canvas>
  <view name="foo">
    <dragstate>
      <someview/>
      <method name="foo">
        ...
      </method>
    </dragstate>
  </view>
</canvas>



state.lzx:6:14: The tag 'method' cannot be used as a child of dragstate


Defining methods inside of states never actually worked in the way
people probably expected,
since the method get defined, but never removed when the state is
removed. As we
move to swf9, the compiler and runtime will not be able to support
dynamically defining and
undefining class (or instance) methods, so this warning will give
application writers notice to
rewrite code which is declaring methods inside of states.



-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to