Check that m_sys->currentVm is not NULL in mouse handlers.
If a multiname does not depend on runtime date, resolve it once and save the pointer.
Because flash Integer/UInteger are always 32 bit!
As we do not use multiple inheritance in types Number,Integer UInteger and Boolean, this is save
There were two usages of getClass() in the code, one which expected getClass() to do incRef() on the class before returning it and one that expected getClass() to not incRef it before. Expected incRef: c->super = Class<ASObject>::getClass() builtin->setVariableByQName("TextField","",Class<ASObject>::getClass()) Expected no incRef: if(c->prototype == Class<ASObject>::getClass()) if(c->prototype->isSubClass(Class<ASObject>::getClass())) Previous commits have introduced Class_base::getRef() which returns a Ref<Class_base> to make obvious that the caller gets a fresh reference. Previous commits also have converted the usecases 'super' and 'builtin->setVariableByQName' to use getRef(). This commit now changes the semantics of getClass() to return the Class_base object _without_ incRef'ing it in accordance to the two other usecases ('prototype == Class<ASObject>::getClass()' and 'isSubClass').
This makes it possible to write _NR<ASObject> o; if(o) .. as if uses explicit cast.
Fixes segmentation fault when mousing over movies. (lp#880391)
…tatic member" This reverts commit eb2ce9b.
This reverts commit 2a374f1.
TextField.setTextFormat(): Return NULL on null input.