Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

Dynamic Text Box Content

1. Open the loadvariable.fla file in flash. Make sure you save both text and fla in the same location on your hard drive. This is a template with some major areas missing and non functional buttons.

2. Click on the top layer. Click the button on the layers panel to add a layer. Call the layer Dynamic text. Make sure your
 

3. Select your type tool. Set the type tool properties on the properties inspector to the following:

  • Dynamic Text
  • Font = Times New Roman
  • Font size = 12
  • Color = black
  • Alignment = left
  • multiline.

4. Create a text box on your stage in frame one of the dynamic text layer. Use the handle on the bottom right to adjust the size of the box and select your arrow tool to adjust the text box positioning on the stage.


 

5. With the text box highlighted, set the text box to the variable "mainpage" by typing mainpage in the Var box on the properties inspector. Save your fla file.

6. Open the text file, template1.txt. Add the statement "mainpage=" to the beginning of the text file (minus the quotes).

Save your text file in the same location as your fla. Close your file.
 

7. Back in your loadvariable.fla movie, Insert a new layer above the dynamic text layer. Call this layer scripts. Highlight frame 1 of the scripts layer.


 

8. Open your actions panel. Select

Actions=> Browser/Network=> Load Variables.

9. When the script is in the script box on the right, you will see the parameters above. Type in the url as the file name, template1.txt. Since the filename represents the relative path to the text file. You can also use absolute pathway here. Set the location to level =0, and the variables to Don't send.

10. Test your movie! The text file should show up in your text box.



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2024 All Rights Reserved
Privacy and Legal