Hm... I faced this awkward "ABC data is corrupt" error today while
maintaining someone else's code. The code passage it was occurring was
a dynamic created DataGridColumn with an inline (but not completely
"anonymous") labelFunction:

var c:DataGridColumn = new DataGridColumn()
c.labelFunction = function moneyLabelFunction(...) {...}

The guy who developed was using the r28 Flash Player, and I'm using
the r60. I roll backed to the r28 to confirm that the error didn't
shown up in that version, only in the r60. The solution was easy:
turned that function in a true anonymous one:

c.labelFunction = function(...) {...}

[]s
Fabio Terracini


On 2/21/07, verifyfailed <[EMAIL PROTECTED]> wrote:
> Is subclassing "Class" legal?
>
> I have code like this:
>
> <pre>
> public class ArrayOf extends Class {
>   public var elementType : Class;
>
>   public function ArrayOf(elementType : Class) {
>     this.elementType = elementType;
>   }
> }
> </pre>
>
> Which compiles just fine, but when I run it, I get a bytecode
> verification error, like so:
>
> <pre>
> verify global$init()
>                         stack:
>                         scope:
>                          locals: global
>   0:getlocal0
>                         stack: global
>                         scope:
>                          locals: global
>   1:pushscope
>                         stack:
>                         scope: global
>                          locals: global
>   2:debugfile "C:\myproject;ArrayOf.as"
>                         stack:
>                         scope: global
>                          locals: global
>   6:debugline 8
>                         stack:
>                         scope: global
>                          locals: global
>   8:findpropstrict {mypackage}::ArrayOf
>                         stack: global
>                         scope: global
>                          locals: global
>   12:getlex 3
>                         stack: global Object$?
>                         scope: global
>                          locals: global
>   14:pushscope
>                         stack: global
>                         scope: global Object$
>                          locals: global
>   15:getlex 43
>                         stack: global Class$?
>                         scope: global Object$
>                          locals: global
>   17:pushscope
>                         stack: global
>                         scope: global Object$ Class$
>                          locals: global
>   18:getlex 43
>                         stack: global Class$?
>                         scope: global Object$ Class$
>                          locals: global
>   20:newclass mypackage::ArrayOf$cinit()
> VerifyError: Error #1107: The ABC data is corrupt, attempt to read out
> of bounds.
> </pre>
>
> Any Tamarin experts out there?
>
> Thanks
> --Mark
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>

Reply via email to