Flash navigation question

[font=Arial]Hi.

Here is an example of what I’m trying to develop:
http://www.plymouthunitedway.org/temp/flash_example.html

On this page, there is a poster containing an umbrella with titles. The client would like to be able to select a title and have text come up in the area labled “text area”. So far, I’ve created invisible buttons that I’ve stragetically placed on the poster and have created seperated movie clips for all the titles. I created something similar at one time but can’t find the link to the tutorial.

Any ideas where I could find a tutorial or script for this?

Thanks in advance for your time!

Regards,

Kashi*[/font]

check on this site and also actionscript.org for tutes on loadvars and loading from a txt file.

basically you need a dynamic text box to load your text into with an instance name.

first you need to declare a loadvars object like this:

vipload = new LoadVars();
vipload.onLoad = function() {
	copybox.text = vipload.copy;};

“copybox” is the instance name you give your dynamic text box…
you put this code in a layer (name it “actions”) on your timeline. it doesn’t really matter where, but make sure you’re declaring the loadvars object before you try to use it!
then AS for your button would look something like this:

on (release) {vipload.load("rulesinfo.txt");

“rulesinfo.txt” is whatever name you give your .txt file…
if you want to initially load something into your text box before the user selects a button you just use:

vipload.load("vipdesc.txt");

and put it in the timeline at the appropriate place… same as the button code but triggered by the frame it’s on being played and not by on release function…

hope that helps you!

oh, and just in case it’s confusing, you can name your loadvars object anything you want. I call mine “vipload” here because that happens to fit with what i’m working on… you can declare "flyingmonkeys = new LoadVars(); if you want… get it?

Thanks!