oh yeah, well spotted :)

On 01/06/06, Adrian Park <[EMAIL PROTECTED]> wrote:
You'll also have to change...

 if (this._alpha<100) {

to

 if (this._alpha>0) {

On 6/1/06, Seb L <[EMAIL PROTECTED]> wrote:
>
> try this...
>
>        myAlpha = ((alphaTime-(getTimer()-loadTime))/alphaTime)*100;
>
>
> On 01/06/06, Tony Watkins <[EMAIL PROTECTED]> wrote:
> > So, the following script will cause a MC to fade in. What would I change
> to
> > make a MC fade out?
> >
> > onClipEvent (load) {
> >     loadTime = getTimer();
> >     alphaTime = 1000;
> >     myAlpha = 0;
> >     this._alpha = myAlpha;
> > }
> > onClipEvent (enterFrame) {
> >     if (this._alpha<100) {
> >         myAlpha = ((getTimer()-loadTime)/alphaTime)*100;
> >         this._alpha = myAlpha;
> >     }
> > }
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to