Jump to content
GreenSock

vdubplate

Question about positioning elements in as3 [SOLVED]

Recommended Posts

I'm trying to pull in a movieclip in as3 and position it on the stage.

I'm having a little trouble.

 

This is what I have:

 

var ld:Loader = new Loader()

ld.load(new URLRequest("test.swf"))

addChild(ld)

 

test.swf.x = 100;

test.swf.y = 100;

 

the loading part works but im having no luck positioning the clip afterwards.

Link to comment
Share on other sites

You don't reference it with "test.swf". You'd move your loader around. In your case,

 

ld.x = 100;
ld.y = 100;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×