A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Actionscript explanation

  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    71

    Actionscript explanation

    Would someone be kind enough to explain what the following actionscript does:

    Code:
    a = "0";
    x = getProperty("../org", _x);
    y = getProperty("../org", _y);
    nr = "9";
    while (Number(a)<Number(nr)) {
    	a = Number(a)+1;
    	setProperty(a, _x, Number(((160-x)*((a-2)/((Number(nr)+1)/3))))+Number(x));
    	setProperty(a, _y, Number(((120-y)*((a-2)/((Number(nr)+1)/4))))+Number(y));
    }
    Cheers,

    -rob

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    pretty old syntax. It's mainly setting _x and _y properties according to another _parent clip called 'org' in a 9 steps while loop.

    gparis

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