TheCanadian answered this perfectly, see below.
Hey.
The title is a little misleading since I figured a few things out. Please take a look at this code snippet and explain what’s going on…
Here’s the relevant information:
A extends B.
class B{
function B(pData){
trace(pData) //prints “undefined”
}
}
(in a callback function, in particular LoadVars.onData)
var pData=“Print me”
var foo=new A(pData)
Somehow pData isn’t getting to the constructor correctly… It has something to do with A being a subclass of B, because if I call the constructor of B directly, it works as expected.