views:

17

answers:

0

Hi,

I'm having trouble with tweening (with TweenMax) movieclips added dynamically in a for loop. The targeting works fine but the tweens are just not happening. :( My second problem is that I need to randomize my array but I dont know how. Anyway here is my code, and thank you for your help. :D

import gs.*;
import gs.easing.*;

stop();

var tempName:String;
var tempNum:Number;

var kordinate:Array = new Array();

 kordinate.push({Dx:-195.5, Dy:-129.75});
 kordinate.push({Dx:-129.5, Dy:-129.75});
 kordinate.push({Dx:-63.5, Dy:-129.75});
 kordinate.push({Dx:2.45, Dy:-129.75});
 kordinate.push({Dx:68.5, Dy:-129.75});
 kordinate.push({Dx:134.5, Dy:-129.75});
 kordinate.push({Dx:-195.5, Dy:-63.75});
 kordinate.push({Dx:-129.5, Dy:-63.75});
 kordinate.push({Dx:-63.5, Dy:-63.75});
 kordinate.push({Dx:2.45, Dy:-63.75});
 kordinate.push({Dx:68.5, Dy:-63.75});
 kordinate.push({Dx:134.5, Dy:-63.75});
 kordinate.push({Dx:-195.5, Dy:2.75});
 kordinate.push({Dx:-129.5, Dy:2.75});
 kordinate.push({Dx:-63.5, Dy:2.75});
 kordinate.push({Dx:2.45, Dy:2.75});
 kordinate.push({Dx:68.5, Dy:2.75});
 kordinate.push({Dx:134.5, Dy:2.75});
 kordinate.push({Dx:-195.5, Dy:68.75});
 kordinate.push({Dx:-129.5, Dy:68.75});
 kordinate.push({Dx:-63.5, Dy:68.75});
 kordinate.push({Dx:2.45, Dy:68.75});
 kordinate.push({Dx:68.5, Dy:68.75});
 kordinate.push({Dx:134.5, Dy:68.75});


function lodirajDio(){
 for (i=0; i

... and again thx a lot :D