A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: [CS3] AS3 Rending issue which is annoying me greatly

Threaded View

  1. #9
    Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Cool this piece of code might work for u . its simple and very short .

    // here u can control the animation in single frame .. hope this one will // // help u out .. happy coding


    var dir:Number = 8

    addEventListener(Event.ENTER_FRAME, animate)

    function animate (evt:Event) {
    chunners.x += dir;
    if ( chunners.x >= stage.stageWidth)
    {
    dir = -dir;
    } else if ( chunners.x <=0)
    {
    dir = -dir;
    }

    }
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center