|
-
Duplicate MC - Example
Here is a simple example. I added a dynamic text to a frame then converted it to a mc. I added another dynamic text for debugging.
The onPress function works fine. It returns the number for each mc.
The onEnterFrame function only returns the first mc text.
Can anyone expand on the problem, please?
Or maybe it is just the differences in the functions. I would like to be able to return the value of each mc as I change the text.
for (i=0; i <= 2; i++){
mc1.duplicateMovieClip("mc1"+i, i+10);
dt=this["mc1"+i];
dt._x=i*50;
dt._y=20;
dt.txt1.text=i;
//dt.onPress = function() {
dt.onEnterFrame = function(){
txt1.text = this.txt1.text;
}
}
stop();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|