Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Dcoo

Cant get crop to work

Recommended Posts

Yep, you could loop through the selectedTargetObjects which are Crop instances, and tween the "target" of each. 

Link to comment
Share on other sites

Sorry I'm not that advanced at as3, so this could sound really dumb, but, how would I find the target of the selected object if I don't know its name? It's added from the Camara?

  • Like 1
Link to comment
Share on other sites

var items:Array = yourManager.selectedTargetObjects;

for (var i:int = 0; i < items.length; i++) {

    TweenMax.to(items[i].target, 0.75, {alpha:1});

}

Link to comment
Share on other sites

Good lord, you make it look so easy, I have been pulling I hair out over this one!
 

I thank you and my hair thanks you!

  • Like 1
Link to comment
Share on other sites

Ha ha, no problem. Cheers!

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