AS3 Help
AS3 Help
- Started
- Last post
- 5 Responses
- redant
I am trying to load an swf and I tried code below, but I get an error any help is appreciated. Thank you.
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("display_name.jpg");
addChild(myLoader);
myLoader.load(url);I get this error:
TypeError: Error #1006: load is not a function.
- kult0
I think we need more code/context. Clearly "load" is a function of the Loader class, so something else must be wrong.
- redant0
I had a clip named Loader and linked. I think that was the problem. I'm trying to load a swf into a clip.
- acescence0
you're loading a swf, or a jpg? cuz that's a jpg. that code on it's own is fine
- kult0
Yep. Can't be sharing names like that ;)
- redant0
im loading a swf. it loads now. I was wanting to load in aclip, but not sure. Thanks.