you don't need that, it will be availible because its an anon function
inside another function, therefore all variables inside the containing
function will be availible.
put this in frame 1 of a movie to test
function containing ():Void
{
    var p:Number = 8;
    this.onEnterFrame = function ()
    {
        trace(p);
    };
}
containing ();

On 4/24/06, Geoff Stearns <[EMAIL PROTECTED]> wrote:
>
> for this part:
>
>                         newClip.onEnterFrame = function():Void {
>                                 newClip._y -= riseSpeed;
>                         };
>
>
> you should set riseSpeed inside the newClip, and then apply the
> onenterframe to the clip's _y, like this:
>
>                         newClip.riseSpeed = ((0.03 * hitherYon) - 1.5);
>                         newClip.onEnterFrame = function():Void {
>                                 this._y -= this.riseSpeed;
>                         };
>
>
>
> On Apr 24, 2006, at 4:24 PM, Mendelsohn, Michael wrote:
>
> >                       newClip.onEnterFrame = function():Void {
> >                               newClip._y -= riseSpeed;
> >                       };
> >
>
> _______________________________________________
> [email protected]
> 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
>



--
j:pn
http://www.lennel.org
_______________________________________________
[email protected]
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