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

Condition to choose button.

Status
Not open for further replies.

Sajtz

IS-IT--Management
Apr 23, 2002
75
EU
Hi.

I´m building up a program which is to show different buttons depending on the condition.

Simple version:

If (Status1==true)

{
show true.jpg
}

else show false.jpg


Anyone got a clue about what I´m trying to do? :)

Thnxs
 
no dont really understand what you trying to do but.........


on (release){
if(status){
loadmovie("true.jpg",holder);
}else{
loadmovie("false.jpg",holder);
}
}

assumes both jpgs lie in the same folder as the swf and that there is an empty clip on stage with instance name holder.
 
Thnxs for your reply. i manage to solve to problem, but then another one occurs.

This is my syntax:

onClipEvent (enterFrame) {
loadVariables(" , this);
if (Status == "False") {
this._visible = true;
} else {
this._visible = false;
}
}

This solves it (if this._visible = true it shows a green image, or else it shows a red image), the FIRST time I enter the page. But if I click on the menu, and then go back ALL symbols are red (this._visible = false).

Anyone know why it is like this?
 
Where is Status set to "False"?

Regards,

cubalibre2.gif
 
I get it from an Access database. And it works just fine...one time :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top