Don't know if it matters, but I always assign the Tweens to a var name. That way, you can refer to them later, with onMotionFinished, etc.
- MM -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bedar Sent: Tuesday, October 25, 2005 3:35 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Tween not working in AS Is "l2Company_mc" inside of "1_mc.company_btn"? Otherwise we have a problem... On Oct 25, 2005, at 2:55 AM, lists wrote: > Hi there.... > > I have the following code on my main timeline. I also have a few > MovieClips of which I need ot animate onPress: > > import mx.transitions.Tween; > import mx.transitions.easing.*; > //l1 > new Tween(this.l1_mc, "_alpha", Strong.easeOut, 0, 100, 3, true); > new Tween(this.l1_mc, "_y", Strong.easeOut, 106, 6, 1, true); > //l2 > this.l1_mc.company_btn.onPress = function() { > new Tween(this.l2Company_mc, "_alpha", Strong.easeOut, 0, 100, 3, > true); > new Tween(this.l2Company_mc, "_y", Strong.easeOut, 106, 6, 1, true); > } > > Now for some reason the onPress is not working. I put a trace in > there and i do get feed back from that, however the > MovieClip will not animate. is ther ean error in my code? > > Thanks! > > :::::::::::::::::::::: > Dustin > :::::::::::::::::::::: > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

