How do I use an external text file to dynamically insert text into a text field in flash 8 professional?
-
the only thing I have been able to find so far is how to do it in flash mx and I can not find out how the text file should look. Is it just the name of the text, an equal sign and then what u want it to say, or do u have to put an "&" in front of it. These 2 different things I have found. Plus do I need to put any special tags such as <html> tags in the document
-
Answer:
No you don't need the text file to have HTML tags.* The text file can hold multiple variables just like a dynamic URL. ex. your text file might look like this: variable1=foo&variable2=bar notice that the two variables are seperated by the apersand "&" that is how flash will understand that you want two seperate pieces of data. The two pieces of data will have the names Variable1 and Variable2. Once you use the loadvars object to call in the variables you can call them by name "variable1" or "variable2" to access the values in them. In this case "foo" and "bar" If you only need 1 piece of data, just use one variable ex. variable1=foo and there is no need for an ampersand. Loadvars object actionscript dictionary http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary427.html * The only time you might want to use HTML tags in the dynamic text is if you are going to use the HTML in a version of flash that has HTML support
shwain87... at Yahoo! Answers Visit the source
Related Q & A:
- How can I use a button to retrieve a phone 'number' from contacts?Best solution by Stack Overflow
- How can I burn a .rmvb file onto a DVD for viewing on a regular DVD player?Best solution by Yahoo! Answers
- How do I use yahoo mail to send free text messages to mobile phones?Best solution by Yahoo! Answers
- How do I set up a text message signature?Best solution by ChaCha
- How can I attach more than one file at a time in Yahoo mail?Best solution by pc.net
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.