Jump to content
GreenSock

Handycam

Using length of items array for a boolean

Moderator Tag

Recommended Posts

I have a button I was trying to enable only if there are items in the transform manager:


 

But it is not enabling when I add items to the transform manager. Am I missing something?

Link to comment
Share on other sites

Frankly, I'm not a big Flex guy but this sure seems like a data binding issue that's Flex-related, not so much TransformManager-related. You could just set up a listener for the SELECTION_CHANGE event and have it affect your button's enabled state.

Link to comment
Share on other sites

I wound up adding a function call whenever I add or remove an item to update the boolean.

 

I think all I'd need, though, is to make the "items" variable bindable. I can try it out; where is this variable set in your code?

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.
×