Hi
I’m having problems with this code - it’s to show a reference popup when you mouseover a button:
function showRef(o:Object, s:String) {
var str: String = “’”+o+"’";
var arr: Array;
arr = str.split("");
str = "ref"+arr[2];
str = str.substr(0, str.length-1);
var obj: Object = this[str];
this[str]._visible = true;
trace (this[str]);
if (s == “chart”) {
if (!graphBig){
obj._x = 30;
obj._y = 275;
} else {
obj._x = 200;
obj._y = 290;
}
}
}
It works fine when I publish it as a standalone swf - the ref popup shows and repositions fine (I get a trace saying something like this: “_level0.ref_X”). But the swf is being called into a framework, and that’s when I get a problem as the trace then shows “undefined”.
Be gentle with me, I’m pretty new to all this. 