Hey, I followed through the preloading with bar tutorial offered on kirupa, the bar part worked fine, but for some reason, the % part didn’t. Ahmed gave me a different code, but doesn’t seem to work either, here’s his code:
Make sure you have the VAR name of the textbox set to “loadText” (no quotes) and not the INSTANCE name. there is a difference, and they are both in properties panel.
You don’t need to give it an instance name if you are using a var name.
I can’t really think straight right now to give a clear description of the difference between var name and instance name, but basically var name only allows you to edit the text of a textbox, but instance name allows you to target the textbox as an object and edit the textboxs’ properties dynamically through AS.
No, just basically the only thing the var name does is allows you to dynamically add text to the textbox and nothing else.
But if you use an instance name you are able to target the textbox and edit its properties through AS. Including TextFormat, restricting characters, enabling HTML text, etc, etc. And you can also use event handlers such as onChanged, or onSetFocus, and onKillFocus, etc, etc.