ye, got your point. But is there such thing as detecting which line was clicked?
If so, please enlight me.
From my point of view, create a base movie clip in the library, which contains a dynamic text field. Then, for each line that u want to display, attach the movie clip from the library and define the onPress method for it.
i.e.:
this.createEmptyMovieClip("lines", 0);
for (i=0; i<linesCount; i++)
{
crtLine = lines.attachMovie("line", "line"+i, i);
crtLine.onPress = function()
{ switch (i)
{
case 0: function1(); break;
case 1: function2(); break;
case 2: function3(); break;
.......
}
}
}
- this.createEmptyMovieClip("lines", 0);
- for (i=0; i<linesCount; i++)
- {
- crtLine = lines.attachMovie("line", "line"+i, i);
- crtLine.onPress = function()
- { switch (i)
- {
- case 0: function1(); break;
- case 1: function2(); break;
- case 2: function3(); break;
- .......
- }
- }
- }
another thing u can do, create a movieClip and for each for each function you want to call, create a key frame where u have the name of the function
and then call it, then stop.
i.e.: frame 5:
function f5() { ... };
f5();
stop();
- function f5() { ... };
- f5();
- stop();
and in the
onPress function:
gotoAndStop(i+1);
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”