A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS2 to AS3

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    14

    Unhappy AS2 to AS3

    hey everyone.

    Can anyone help me to convert this code to as3. As I don't know as2.

    null[] = !changingLane ? (if (!jumping) goto 173, jumpSpeed = jumpSpeed - jumpAcceleration * seconds, z = z + jumpSpeed * seconds, if (z > 0) goto 171, z = 0, jumping = false, this.updatePosition(), function (seconds)
    {
    if (x <= changingToLaneX)
    {
    } // end if
    if (x >= changingToLaneX)
    {
    } // end if
    if (jumping)
    {
    if (z <= 0)
    {
    } // end if
    } // end if
    }) : (this.updatePosition(), shadow.setPosition(x, y, 0), "move");

  2. #2
    Programmer
    Join Date
    Dec 2011
    Posts
    10
    A lot of people copy code from the internet in hopes of getting the functions they need to make a quick fix. I would suggest that you create your own code using only the theory of the codes you have at hand. This will make your games a lot better, and personal. You will also become a better programmer.

    Take your time to learn a programming language to the extent that you will be able to translate that yourself and I will guarantee that you will get a lot more sponsorships, on your games.

  3. #3
    Junior Member
    Join Date
    May 2011
    Posts
    14
    @stras :- Thanks for your advice.

    I have no more idea as it was a favour asked by a friend to just make him understand this chunk of code. But I was not able to understand as I don't know as2 so thought may be u people could just make it clear.

    Thanks anyways

Tags for this Thread

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