Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
GSB #1
Mousedown/OnRelease for each dynamically generated movieclip
I am dynamically creating movieclips on stage with this code. Each movieclip
has a textfield txtInfo inside that will display some information.
for (var i = 1; i<j; i++) {
myClip = _root.attachMovie("mcInfo", "mc_info"+i, i);
eval("mc_info"+i).txtInfo.Text = "Assign Text depending on i ";
}
With this code assuming j = 5, I now have 5 movieclips on stage each with
different text displayed in them.
I want to be able to perform an action depending on which movie clip I
click.
How can I track my mousedown/onRelease for each movieclip dynamically placed
on stage so that it is
eval("mc_info"+i).onRelease = function() {
-- perform action
};
here , i can be any value from 1 through j (from previous code line)
-Smitha
GSB Guest
-
Dynamically Generated Forms
My company has a database-driven system of web forms, each of which consists of many questions in various layouts (2-column radio, 1 column... -
onRelease function on a movieclip that is dynamically generated
I am dynamically generating movieclips. j = 5; for (var i = 1; i<j; i++) { _root.attachMovie("mcInfo", "mc_info"+i, i); _root._y = yposition;... -
Using textfields that are dynamically generated
Hi, I have a question about using textfields that I'm generating dynamically. I am generating textfields depending on the number of records in... -
lingering movieclip, will not go back to label onRelease
Hi. I'm having a problem with a movieclip on my main timeline that I want to appear on each click of my nav. buttons, it's a page transistion that... -
dynamically creating instances of a movieclip
Hi, I'm using MX on Win98 to create a movie that allows a user to rearrange the order of their image files stored on my server for use in a... -
dk_says_hey #2
Re: Mousedown/OnRelease for each dynamically generatedmovieclip
put an invisible button in the movie clip.
dk_says_hey Guest
-
GSB #3
Re: Mousedown/OnRelease for each dynamically generated movieclip
"dk_says_hey" <webforumsuser@macromedia.com> wrote in message
news:c231ub$qnq$1@forums.macromedia.com...> put an invisible button in the movie clip.
Thanks. That worked
GSB Guest
-
Jack. #4
Re: Mousedown/OnRelease for each dynamically generatedmovieclip
another method is -
for(var i=1; i<6; i++){
myClip = _root.attachMovie("mcInfo","mc_info"+i,i);
myClip._y = i*30;
myClip.txtInfo.Text = i;
pressed(myClip);
}
function pressed(ref){
ref.onPress = function(){
trace(this);
};
};
Jack. Guest



Reply With Quote

