Houston, we've got a situation here...
could u rectify where the coding algoriths gone wrong here..
actually i am making a flash intro based on the matrix trailor. i ve made the falling matrix code near perfection. but the problem is in order to make multiple instances of my clip flow_mat on the main timeline i have to set each and evry instance manually. i wanted it to do through action script. so i made a new movie and tried the following way.
in my clip <flow_mat>(which has the tweening effect of the matrix) i put the actionin the frame 1~ 5:
this._x=this._x+(Math.random()*4)-2;
this._y=this._y+(Math.random()*4)-2;
to randomize the clip appearance.
then in the 6 frame i put the action:
gotoAndPlay(1);
then in the main timeline i put the following action to duplicate the clip instances:
onload
counter=40; //** this the number of duplication i want**//
while (counter>0)
{
duplicateMovieClip("mat","mat"+counter,counter);
counter= --counter; //** to cycle down the counter**//
}
stop();
where <mat> is my instance name for the clip flow_mat. but when i played the movie there was very negligible duplication and that too just arround the instance that i put on the main movie..
any helps please..
help me out to create the matrix effect through action script..
regards
could u rectify where the coding algoriths gone wrong here..
actually i am making a flash intro based on the matrix trailor. i ve made the falling matrix code near perfection. but the problem is in order to make multiple instances of my clip flow_mat on the main timeline i have to set each and evry instance manually. i wanted it to do through action script. so i made a new movie and tried the following way.
in my clip <flow_mat>(which has the tweening effect of the matrix) i put the actionin the frame 1~ 5:
this._x=this._x+(Math.random()*4)-2;
this._y=this._y+(Math.random()*4)-2;
to randomize the clip appearance.
then in the 6 frame i put the action:
gotoAndPlay(1);
then in the main timeline i put the following action to duplicate the clip instances:
onload
counter=40; //** this the number of duplication i want**//
while (counter>0)
{
duplicateMovieClip("mat","mat"+counter,counter);
counter= --counter; //** to cycle down the counter**//
}
stop();
where <mat> is my instance name for the clip flow_mat. but when i played the movie there was very negligible duplication and that too just arround the instance that i put on the main movie..
any helps please..
help me out to create the matrix effect through action script..
regards