You might try calling the 'goToFrame' after an 'exitframe' cycle. The way you have it now the Flash sprite does not have a chance to initialize before you're giving it commands.
John Mathis Inplicity http://www.inplicity.com/connect ----- Original Message ----- From: "Kerry Thompson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 03, 2004 1:24 PM Subject: <lingo-l> Dynamic Flash Sprite > I think I'm missing something obvious here. Dir MX, Win XP Pro. > > I'm creating a Flash sprite at runtime, but it's crashing with "handler > not found in object" when I issue a goToFrame command. > > The code is pretty straightforward: > pAnimSprite.rect= member(animMemberName).rect > pAnimSprite.member = member(animMemberName) > pAnimSprite.loc = animLoc > pAnimSprite.goToFrame(frameLabelName) > > Everything checks out in the debugger. The right sprite is getting > loaded, it's going in the right place, and the right frame label is > being called. pAnimSprite is a 0-pixel holder before getting assigned. > The Flash cast member is #lockStep (there's a callback), #static, #Loop > and #DTS are false. > > I've tested it in a movie with the Flash sprite on stage, rather than > being dynamically assigned, and everything works as I would expect. > > Ideas on what else I need to do to kick it into gear? > > Cordially, > > Kerry Thompson > > > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] > > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
