This content has been marked as final. Show 9 replies
yes, just assign the text property of the textfield each time you want to update it. the only pitfall is that your textfield will contain a string (though it may appear to be a number to you). to remedy, use the Number() function to convert from that string to a number.
DistTravelled = _root.MyTextBox._value;
well, you flunked flash 101, fungus.
first, there's no _value property of textfields. there is a text property, but as i mentioned above, its returns a string.
and third, your for-loop makes no sense in any scenario. in particular, it doesn't help sh.
sh, do you want your textfield to display numbers incrementing from 0 to something else? if so, what triggers the display?
Kglad, yes I'd like to display the numbers from 0, and the trigger to be when the file plays. The file should play when the page is loaded in the browser.
Instead of giving the name to the text field just, assign a variable for the text feild.
and you can increment that value in each frame wherever you want...
you mean when a movieclip plays you want the textfield to display the _currentframe (or 5 * the frame number) of the movieclip? if so, you can use an onEnterFrame method to display the movieclip's _currentframe property. such as:
Thanks people, I've give this a shot.