Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the movie clip a button links to???

Status
Not open for further replies.

mil12177

Programmer
Apr 16, 2007
1
US
I am working on a website in Flash that had already been designed by someone else. There are a number of buttons across the website that are linked to the same symbol. Those buttons link to movie clips, in the button's actions, that pop up as small windows providing more information in regards to the button clicked. The problem is that I cannot figure out how to properly change the link association between button and movie clip.

Here is the action script for one of the buttons:

on (release) {
_root.scrHEIGHT=100
_root.scroller.scroller.gotoAndStop(2);
_root.scroller._x = 100;
_root.scroller._y = 150.7;
_root.TM_title = "About Chris Smith";
_root.READ = 3;
}

When I change the number after "root.READ =" it will change it to another movie clip but I how do I know what that association is based on? For instance if I make a duplicate movie clip how can I make the above script link to it? Also, what exactly does that last line in the above script mean? When I tested various numbers, like 3 and 6, they would link to the same movie clip.

Please help! This is driving me crazy!

Thanks!!!
 
READ seems to be a variable (referenced to the main timeline - _root), and could be used as the linkage ID to, for example, attach some movie clip from the library, or as an index to a list of movie clips in an array... Etc...

Hard to say without seeing the rest of the code.

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top