Guest ChromeDemon

Silly question

Recommended Posts

I put this into my AS:

 

manager.addSelectionBoxElement(deleteButton, "topRight", 40, 0);

 

how do I reference to the deleteButton, to change scaling or other things on the deleteButton?

 

Maybe I am to dumb to see the right way??

 

thanx in advance

Share this post


Link to post
Share on other sites

You should keep a reference yourself. Like:

 

private var _deleteButton:DisplayObject;

function myFunction() {
   _deleteButton = this.getChildByName("delete_btn"); //or whatever
   manager.addSelectionBoxElement(_deleteButton, "topRight", 40, 0);
}

 

See what I mean?

Share this post


Link to post
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.