10 Replies Latest reply on May 23, 2010 12:15 PM by kglad

    Some AS3 code needs to be AS2

    nick2price Level 1

      As I have been told, the following code is mixing as2 and as3.

      picHolder[1].onPress = function() {
                picHolder[1].width = card.width;
                picHolder[1].height = card.height;
                picHolder[1].x = 0;
                picHolder[1].y = 0;


      I presume the AS3 code is whats inside the function (My addition), as the function code was there when following the as2 tutorial.  Basically, when the user clicks the image in array element 1, this image should be set as the background of the movieclip card.  How would I change the inside so that is was AS2 code?