Imagine a quick scenario;
_thumbs is a Sprite, inside it is a custom class called “thumb1” (extends MovieClip) and inside that is a sprite called “nail”. Nail is a libraryitem. Nail has a child called blocker (that’s in the library item already).
Now, this works fine;
var t = _thumbs.getChildByName("thumb"+i);
var sx = t.getChildByName("nail");
TweenMax.to(sx.blocker,1,{yada});
Wheras this works fine, I can’t for my life figure out how to cast these variables. If I try making them DisplayObjects or Sprites or MovieClips or whatnot it all throws error with either implicit coercion or reference to a undefined method getChildByName
Grateful for any insight.