Jump to content
Search Community

Silly question

Guest ChromeDemon
Moderator Tag

Recommended Posts

Guest ChromeDemon

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

Link to comment
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?

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