Variable problems

go to http://www.aaronsleeper.com/beh.html

click one of the main buttons and a window will pop down and display content according to a variable. close the drop down and click the same button. the window will come down but will not display the content. why?

if you repeat the process again it will display. so basically if you’re click the same button over and over again, the content will appear 50% of the time

:frowning:

here’s the fla if you would like to look at it
http://www.aaronsleeper.com/bleh.fla

hey shuga, it can be that your variable is not reseting when you close the window (pop up), or maybe there is a break in the variables loop, ill check out your fla later on today and see if i can help.

i figured it out. thanks

what was the problem?

not quite sure how to explain it so here goes.

there is an mc that contains the animation of the content fading in. in the middle of that mc the variable is loaded for the content (what it should be) then when the animation is done the playhead stops.

when you click a button on the site to load the content it tells that mc to play. telling it to play made it go from the last frame to the first but still stopped. so you had to click again to get the animation to play and work.

so i just had to tell it to go back to the beginning when the user was done looking at the content. almost like resetting it. so it wasn’t the variable after all that was giving me trouble, it was the animation that loaded the container that had the info displayed by the variable

so i was half right, hehehe :wink:

I didnt get a chance to look at it, but iam glad you fixed the problems :smirk: