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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display/Hide Button on load of db variables

Status
Not open for further replies.

rick1111

Programmer
Nov 25, 2001
16
US
I have a FlashMX movie that does a

loadVariables ( "./PHP/Detail.php?selectedId="+_level0.selectedId, _root);

on the onClipEvent (load) operation. The problem I am having is that I want Button6 to either be visible or invisible depending on the value of the loaded data.

The Flash movie (including the Button) gets loaded before the data is displayed from the database.

How can I accomplish this?

Thanks,

Rick
 
I have no practiacal answer, only food for thought.

Have you considered setting the button to invisible until you get the data then test for visibility? Or possibly overlaying the button with a masking MC which is removed if the data test is passed?

eSearing.com
a work in progress
 
Put your button in a movie clip,

ie. my_mc (name of movie clip)
layer frame
*********************
1(action) 1 stop
1(action) 2 stop LABEL good
2(button) 1 Empty frame
2(button) 2 your buton

then when you get the var from your database put a:
if (your_var == "123") {
with (my_mc) {
gotoAndPlay ("good");
}
}

Hope it'll help ;-) Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top