Skip navigation
Currently Being Moderated

as2 to as3

Jun 9, 2012 1:07 AM

Tags: #flash #actionscript #var

Dear all.....

 

im cracking my head all day long converting this as2 code to as3, but im not so good with coding and stuff.....if anyone out there that could help me with this would be a huge help for me...

 

var randRun = new kliment.utils.RandomRun(this, 100, true);

 

 

Thanks in advance.

 
Replies
  • Currently Being Moderated
    Jun 9, 2012 4:30 AM   in reply to themahen92

    That line appears to be calling in a custom-made class file named RandomRun that would be found in the utils folder of a folder named kliment.  If you are converting AS2 to AS3, then that class file is also AS2 code.  Calling that file in AS3 should be as simple as...

     

    import kliment.utils.RandomRun;

     

    var randRun:RandomRun = new RandomRun(this, 100, true);

     

    Though it is not going to work for you until the class file is converted to AS3.  Without knowing what the parameters are, it is possible the "100" might need to be a different value.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points