I have three swfs I’ve made - one totally in Flash IDE, plus two Flash/Actionscript driven ones. Each of these runs well and are bug free - lets call them swf1, swf2, swf3.
So I decided to plonk them in a fourth file (swf4), using a blank movieClip to place each one into when a button is pressed.
The first movie drops in ok.
The second and third do not - in fact I’ve getting an error where it seems that it is trying to reference a text field inside swf2, although it runs ok on it’s own. I don’t get this - aren’t the swf files, once compiled, basically self contained? (No references to external files in any of these…)
I hope this makes sense, can anyone explain what is going on and how to get around it?
Here’s the code in swf4: (which works fine for swf1)
var myContent:URLRequest = new URLRequest(“swf2.swf”);
var myLoader:Loader = new Loader();
myLoader.load(myContent);
canvas.addChild(myLoader); // canvas is a blank movieClip
Error is this:
ReferenceError: Error #1056: Cannot create property status_tx on Main.
status_tx is actually a textfield created in swf2 in the flash IDE.