Hello,
FILE1.SWF (AS2) that loads it’s variables from a .txt file using
LoadVariablesNum("variables.txt", 0);
file1 has a dynamic textbox with a var from variables.txt
FILE2.SWF (AS3): AS3 SWF that loads FILE1.SWF:
import flash.display.*;
import flash.net.URLRequest;
//definitions and laoding default clip
var rect:Shape = new Shape();
rect.graphics.beginFill(0xFFFFFF);
rect.graphics.drawRect(0, 0, 800, 600);
rect.graphics.endFill();
addChild(rect);
var ldr:Loader = new Loader();
ldr.mask = rect;
var [url:String](http://www.kirupa.com/forum/String) = "\FILE1.SWF";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
Both are in the same folder. Problem is that variables are not loaded into the textbox when FILE2 loads FILE1.
In AS2 i could just do loadMovieNum(“FILE1.SWF”,1); and everything would be fine.
Is a problem with levels?