# Flash navigation question

**URL:** <https://forum.kirupa.com/t/flash-navigation-question/66289>\
**Category:** flash\
**Created:** [October 4, 2004, 4:48pm UTC](https://forum.kirupa.com/t/flash-navigation-question/66289 "2004-10-04T16:48:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashi](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@kashi](https://forum.kirupa.com/u/kashi)\
**Post date:** [October 4, 2004, 4:48pm UTC](https://forum.kirupa.com/t/flash-navigation-question/66289/1 "2004-10-04T16:48:47Z")

</div>

[font=Arial]Hi.

Here is an example of what I’m trying to develop:  
[http://www.plymouthunitedway.org/temp/flash\_example.html](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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 5:03pm UTC](https://forum.kirupa.com/t/flash-navigation-question/66289/2 "2004-10-04T17:03:02Z")

</div>

check on this site and also [actionscript.org](http://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:

```auto
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:

```auto
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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 5:04pm UTC](https://forum.kirupa.com/t/flash-navigation-question/66289/3 "2004-10-04T17:04:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 5:17pm UTC](https://forum.kirupa.com/t/flash-navigation-question/66289/4 "2004-10-04T17:17:08Z")

</div>

Thanks!
