PDA

View Full Version : attachMovie challenge


asitshould
11-24-2002, 09:44 PM
I have three buttons on the stage that are supposed to attach three seperate (one for each button) movie clips onto a blank movie that has the instance name content .

The Linkage Identifiers for the movie clips are ex_home, ex_services, and ex_benefits.

Each of the movies that are supposed to be attached consist of a dynamic text field that is full of text and each has a a scroll bar companent that was automatically setup in MX. The dynamic text fields do not have variables associated with them.

The code for the buttons looks like this:


on (release){
content.attachMovie("ex_home", "home1", 1);
}



on (release){
content.attachMovie("ex_services", "services1", 1);
}


on (release){
content.attachMovie("ex_benefits", "benefits1", 1);
}


As far as I know, when each button is released, the new movie should take the place of the old one because thay are assigned the same depth. What happens is: when the movie starts, I press the Home button, and the correct thing happens. Then I press the Services button, and the correct thing happens. Then I press the Benefits button, and i continue to see the text for Services. I also found that If I press the Benefits button before the Services button, I will get the Benefits text when I press Services button afterword.

No matter what, when I press the Home button, I always get the correct information. The home button is a unique shape from the rest of the buttons, so there is one library symbol for all of the buttons except the Home button, which has its own symbol. I tried creating duplicates for the other buttons so each button would be unique, but that had no effect.

So my question is, can someone help me figure out a way to make it so that each button released causes the correct information to appear, no matter what order they are pressed in?

Thank you very much,
Dave

Billy T
11-24-2002, 10:39 PM
are you loading an external text file?

upload the fla and all associated files

cheers

asitshould
11-24-2002, 10:55 PM
The .fla file can be found at http://www.troop3.net/saa/saa_main.fla

Billy T
11-24-2002, 11:12 PM
Originally posted by asitshould
The dynamic text fields do not have variables associated with them.


ummm yes they do....very strange ones too...

clear the variable name boxes for the services and benefits text boxes and the problem is solved

cheers

asitshould
11-25-2002, 01:43 AM
Thanks man...I didn't realize that...I appreciate it very much

Billy T
11-25-2002, 01:44 AM
no worries :)