Skip to main content
little*big*man
Participating Frequently
June 10, 2009
Answered

How can I control stage position for swfs loaded by Loader class?

  • June 10, 2009
  • 1 reply
  • 597 views

I'm creating a grid of buttons that, when clicked, will load a specific swf and I'd like for each swf to play in a certain portion of the stage.  When I use the Loader class:

var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("abc.swf"));
addChild(my_loader);

the swf always displays at top left.  Is this an attribute of the individual swfs that I'm loading, or can I address the position in the main movie?

Thanks-

Sean

This topic has been closed for replies.
Correct answer

...

addChild(my_loader);

my_loader.x = 500;

my_loader.y = 250;

1 reply

Correct answer
June 10, 2009

...

addChild(my_loader);

my_loader.x = 500;

my_loader.y = 250;

little*big*man
Participating Frequently
June 10, 2009

Thank you sir!

June 10, 2009

you're welcome