Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Why does moving a bone symbol with .x = newx only moves the root bitmap ??

Community Beginner ,
Sep 11, 2015 Sep 11, 2015

Hi !

I've started using bones to animate a toon like character with a very simple armature.

This toon was created inside a MovieClip Symbol, which I can instantiate in my scene etc.

I can call start/stopDrag() and everything works fine.

But, when I try to move it by program (once the drag is finished, I need to "snap" it or move

it myself) the only thing that moves is the torso, which is the root bone's bitmap.

I do something like :

myToon.x = newx;

myToon.y = newy;

I tried using a transform matrix but I get the same result...

I don't understand what is happening there. Should I inject a motionTween on the root bone ?

here's what it looks like :

my toon Symbol with armature :

Screen Shot 2015-09-11 at 08.39.02.png

I imported a bitmap, lasso'd each part (why no rectangular selection tool ? beats me) and converted them to Symbols. Then I built the armature.

Using it as a symbol works fine with things like adding to the scene, dragging etc.

But as soon as I want to move it myself by program, this happens :

Screen Shot 2015-09-11 at 08.41.22.png

thanks for your help !

(PS moved from general to AS3).

TOPICS
ActionScript
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 11, 2015 Sep 11, 2015

I fixed it !

In my callback, I was using e.target, I switched to e.currentTarget, and now it works fine !!

Marking as fixed, and I'll leave this here in case it can help someone later on...

Translate
Community Beginner ,
Sep 11, 2015 Sep 11, 2015

I may have a hint on what is wrong, but I still don't understand why.

When I trace what is selected when I drag my toon (I have a mouseDown and mouseUp callback on it),

I sometimes get my symbol's class, or MovieClip.

I tried adding a rectangle "mask" around it, so that one could click in the empty spaces inside it, and now my symbol traces as "mysymbol" instead of MovieClip more often.

More specifically, I drew a rectangle around it, and I didn't transform it into a Symbol.

When I drag the toon by clicking in this rectangle, I see [object NBBonom], but when I click on the bone animation itself I get [object MovieClip].

when the object is NBBonom, the translation works fine.

I tried having the rectangle in front of the bones, but it remains behind, the menu is greyed, I can't put the shape in front. (I could have lived with a transparent rect in front...)

*feeling lost*

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 11, 2015 Sep 11, 2015
LATEST

I fixed it !

In my callback, I was using e.target, I switched to e.currentTarget, and now it works fine !!

Marking as fixed, and I'll leave this here in case it can help someone later on...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines