James- Thanks! That is cleaner.
-Steven Loe
<><><><>
--- JOR <[EMAIL PROTECTED]> wrote:
> If you didn't want to hard code the paths you could do this:
>
> public function handlePressedUP(){
> theBall.onEnterFrame = function () {
> _y -= 5; // Move ball by 5 px.
> }
> }
>
> JOR
>
> ___________________________________
> === James O'Reilly
> ===
> === SynergyMedia, Inc.
> === www.synergymedia.net
>
>
>
> Steven Loe wrote:
> > Solved. Was just a path-to-object problem. Changing the code to this takes
> care
> > of it:
> >
> > public function handlePressedUP(){
> > trace("function");
> > _level0.Ball.onEnterFrame = function () {
> > _level0.Ball._y -= 5;
> > }
> > }
> > }
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders