Hey there,
Well, i'm trying to display a simple text but when i trigger it i get this error:
Code:
VerifyError: Error #1024: Stack underflow occurred.
Code:
trait method QName(PackageNamespace(""),"Notification")
method
name null
param QName(PackageNamespace(""),"String")
returns QName(PackageNamespace(""),"void")
body
maxstack 5
localcount 6
initscopedepth 9
maxscopedepth 10
code
getlocal0
pushscope
pushnull
coerce QName(PackageNamespace("flash.text"),"TextField")
setlocal 4
pushbyte 8
setlocal2
pushbyte 16
setlocal3
findpropstrict QName(PackageNamespace("flash.text"),"TextField")
constructprop QName(PackageNamespace("flash.text"),"TextField"), 0
coerce QName(PackageNamespace("flash.text"),"TextField")
dup
setlocal 4
findpropstrict QName(PackageNamespace("flash.text"),"TextFormat")
pushstring "_sans"
pushbyte 18
pushint 1044480
constructprop QName(PackageNamespace("flash.text"),"TextFormat"), 3
setproperty QName(PackageNamespace(""),"defaultTextFormat")
getlocal 4
getlocal1
setproperty QName(PackageNamespace(""),"text")
getlocal 4
pushfalse
setproperty QName(PackageNamespace(""),"selectable")
getlocal 4
getlex QName(PackageNamespace("flash.text"),"TextFieldAutoSize")
getproperty QName(PackageNamespace(""),"LEFT")
setproperty QName(PackageNamespace(""),"autoSize")
getproperty QName(PackageNamespace("", "#0"), "stage")
coerce QName(PackageNamespace("flash.display"), "Stage")
getlocal 4
callpropvoid QName(PackageNamespace(""),"addChild"), 1
returnvoid
end
end
end
end
i trigger it with :
Code:
getlocal0
pushstring "helllow"
callpropvoid QName(PackageNamespace(""),"Notification"), 1
What stack? it's a fresh created trait
I can't find what is wrong..