I can do 2-things. Load an external swf, and change the color of an object. When I put these two things together, it doesn't work. How do I change the color of the loaded swf? I want to access instance names in loaded swf files.
WHAT I WAS TOLD
I have to package it and set up a class paths. Is there an easy way for now?
alt text http://www.ashcraftband.com/myspace/videodnd/ball.jpg
ball.swf
"white ball on the stage named blueball"
load.fla
//load ball.swf
var bgLoader:Loader = new Loader();
bg_mc.addChild(bgLoader);
var bgURL:URLRequest = new URLRequest("ball.swf");
bgLoader.load(bgURL);
//change color of ball to blue "code works in ball.swf"
var myColor:ColorTransform = blueball.transform.colorTransform;
myColor.color = 0x066ccf;
blueball.transform.colorTransform = myColor;
ERROR #1120
access of undefined property
NOTE
swf files are all actionscript-3. I've played with the publishing and security settings.
EXPERIMENT "to understand using symbols in external swf files"