Jump to content
GreenSock

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

Selected object not working on 4th item

Recommended Posts

Hello,

 

I have almost everything working the way I would like but after adding the 4th TransformItem, the TransformManager seems to confuse the selected objects and locks up. Please find the breakdown of the issue below. Any help would be greatly appreciated!

 

COMPONENT: TransformManager AS2

VERSION: Paid version, 6.02 (downloaded 5/9/2010)

 

STEPS TO REPRODUCE:

1) Start with MoveiClip A on the stage.

2) Create MoveiClip B as a duplicate of A using duplicateMovieClip.

2a) Selection, handles and transform work fine.

3) Create MoveiClip C as a duplicate of A using duplicateMovieClip.

3a) Selection, handles and transform work fine.

3) Create MoveiClip D as a duplicate of A using duplicateMovieClip.

3a) Selection, handles and transform work fine.

4) Create MoveiClip E as a duplicate of A using duplicateMovieClip.

4a) Problem starts here...

4a1) The hand mouse pointer appears on mouse-over of the new clip E but when I click to select, the handles appear for the previously loaded object (D) while the 4-arrow pointer seems to recognize the new object (E).

4a2) The TransformManager appears is locked. I cannot move, resize, etc.

4a3) When mousing over the new object, the mouse pointer is "sticky". I'm able to move the mouse pointer out of the transform area if I move quickly but otherwise the pointer sticks in place. It's as if there may be logic that is looping within the TransforManager code that is preventing it from processing other tasks.

 

TRANSFORM MANAGER DECLARATION IN _ROOT:

var manager:TransformManager = new TransformManager({allowDelete:true, constrainScale:true, forceSelectionToFront:false, autoDeslect:true, arrowKeysMove:true});

 

CODE USED TO ADD TRANSFORM ITEM:

manager.addItem(eval("main1.submain1." + new_clip_name), TransformManager.SCALE_WIDTH_AND_HEIGHT);

 

NOTES:

- I verified the parents of the objects (A through E) are the same.

- I have commented out the addEventListener for SELECT and DELETE that we had in there to verify this was not causing it.

- The parent clip for A (and B through E) is on a layer that is masked.

 

 

Thanks,

Dan

Link to comment
Share on other sites

The parent clip for A (and B through E) is on a layer that is masked.

 

There are known issues in Flash regarding masked layers (not bugs in TransformManager - bugs in Flash), so have you tried either removing the mask (just to see if that is what was causing the problem) or applying the mask via ActionScript instead of via the IDE? If that doesn't solve anything, could you please send me an FLA that demonstrates the issue? (it doesn't need to be your production file(s) - just something simple that shows it breaking)

Link to comment
Share on other sites

Got the sample you sent (thanks). The problem is that you're hard-coding the levels in a way that causes your duplicated object to overwrite the selection MovieClip. TransformManager must put a MovieClip on the screen that holds the selection handles, box, etc. See what I mean? Yours is conflicting with that. I'd recommend never hard-coding level values. Instead, use getNextHighestDepth() to ascertain the top-most level.

 

When I replaced your code:

duplicateMovieClip("initial_object", new_object, iCount + 1);

 

with this:

duplicateMovieClip("initial_object", new_object, getNextHighestDepth());

 

It worked fine.

Link to comment
Share on other sites

Yes...this worked. Thanks for the help!

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