Flash Labs > Lab 9: Dynamic Content
OverviewIn this lab you will learn how to have the contents of your UI prototype load from an external file. For example, you may want to separate out a button label or instructional text so that a coworker can change it in a text file without having to use the Flash authoring application. You can even separate out variables like the how fast something happens. GoalsLearn how you can use a data load call to pull information dynamically from an external text file when the SWF file loads. ExampleIn this example, the instructions are written in a separate file that you can see here. If you change the contents of this file, you will notice the instructions change in the UI prototype. ...there is still a scary woosh sound when the palette opens. |
Steps
Optional: Download the working files for this lab
Learn MoreIn this lab we're only dealing with loading text, the method described above works well. But say you want to load a number of different values from a file at once. You'll want to use loadVariables() and delimiters in the text file. You can read up about it here. |