I am really messd up with my movie controller.
I am making movie player that user can drag&drop bubble
box onto movie clip.
When I drop just one bubble and manage left(for startTime)
and right(endTime) limiters, it works.
When I drop two bubbles at the same time and manage the left
and right limiters, it does not work.
var bub:Object = new Object();
var barLimi_mc = attachMovie("barLimi", "newBar"+timeCount,
var lLimi_mc = attachMovie("leftLimi", "newlLimi"+timeCount,
These variables only exist inside their respective function
and are destroyed next time their respective functions are called.
Create arrays outside the function
var bubs:Array() = new Array()
var barLimi_mcs:Array() = new Array()
var Ilimi_mcs:Array() = new Array()
Inside the fuctions push the variables above onto the arrays.
This way the reference although destroyed inside the function
persists outside the function in the array.
I solve this problem, I used Obects for each bub and timeLine
functions(actually, the array and Object is kinda family, right?).
If I did not get your advice, I would not understand the
global var and solve this problems.