TextField Variables in Flash
- Started
- Last post
- 5 Responses
- heavyarms
Flash ?
A co-worker has one text field but wants it to diplay different
information based on the button you rollOver. Is it possible
to do it by having all the different sections of information
loaded from one text file and show up based on what button
you rollOver?She said even if she had to have a separate file for each
button that's OK. One idea I had (which is probably to slow)
in that regard is to have it load a new text file on rollOver
with the same variables that replace the previous variables
used by Flash.Any idea?. One text file would be better probably.
- heavyarms0
A way to do it in XML would be cool if you could access only certain sections at a time. That may be too much extra work though.
- unfittoprint0
2 easy ways.
#1 If the buttons are similar make a component-button [library, make component] where you have a variable that can be updated through the properties inspector.
#2 more advanced. Construct the component as before, give it a linkage idetifier and using the external XML content length and a for in loop construct your button interface and fill each button's variable with each XL node's info.
G luck.
- ********0
I have an .fla at home that does nearly the same thing for a kiosk I used to manage, it works with .txt files as opposed to .xml. Hey listen to unfit. :)
- heavyarms0
Thanks a lot. Are there any other ways? Perhaps something easier?
Or, could you elaborate on this technique please?
#1 If the buttons are similar make a component-button [library, make component] where you have a variable that can be updated through the properties inspector.
- heavyarms0
This first idea I had actually worked well.
-----------------
have it load a new text file on rollOver with the same variables that replace the previous variables used by Flash.
------------------
The only problem is that after you click on one of the HTML links in the last textbox it stops changing on rollover even though the other three boxes change still. Any ideas?