No it does not. I must be misunderstanding the use of "this" then.... I thought 
it
referenced the timeline in which it was being written on (IE that of hte main 
timeline
or the timeline of a MC, etc) my structure is as follows....


[MAIN TIMELINE]
-has the code.
-has a MovieClip called "l1_mc".
-has a MovieClip called "l2Company_mc".
[L1_MC]
-has a button in it called "company_btn"

When the "company_btn" (contained in the "l1_mc") is pressed it should animate
"l2Company_mc".

I had tried using an absolute path as well (_root).

Ideas?

::::::::::::::::::::::
 Dustin
::::::::::::::::::::::


---------- Original Message -----------
From: Michael Bedar <[EMAIL PROTECTED]>
To: Flashcoders mailing list <[email protected]>
Sent: Tue, 25 Oct 2005 03:34:48 -0400
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
------- End of Original Message -------

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to