-
Load .swf to a specific location
Hi all. Having a problem loading an external .swf to a specific location in AS3.
This ia the code I am using currently.
"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"
I have tried to create a blank movieclip (info_space) and load it into there but I think AS3 is a bit different and can't get it to work. (see below)
"
function iGoogle(event:MouseEvent) {
trace("you clicked me");
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("get_this_info.swf", "info_space"));
}
igoogle_btn.addEventListener(MouseEvent.MOUSE_DOWN , iGoogle);
"
If anyone could help I would really appreciate it. Would love to know how to load to specific x/y coordinates too if you know how.
Thanks in advance!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|