Jump to content
Search Community

Question about positioning elements in as3 [SOLVED]

vdubplate
Moderator Tag

Recommended Posts

Posted

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.

Posted

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

 

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

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.
×
×
  • Create New...