cdrake
09-15-2004, 01:39 AM
Ive got this code.
//Enough Sugar Pills?
onClipEvent (enterFrame) {
if ((_root.sugarpills>0)==false)
_root.buysugar.unloadMovie();
if ((_root.sugarpills>0)==false)
_root.pillstatus="Out of Stock";
//enough money?
else if ((_root.money>9)==false)
_root.buysugar.unloadMovie();
_root.pillstatus="Need more money!";
}
I want it to check to see if the item is out of stock then load the message. It works great until you put the Need more money. IT always insist on loading that even though you have more than 10 dollars.
//Enough Sugar Pills?
onClipEvent (enterFrame) {
if ((_root.sugarpills>0)==false)
_root.buysugar.unloadMovie();
if ((_root.sugarpills>0)==false)
_root.pillstatus="Out of Stock";
//enough money?
else if ((_root.money>9)==false)
_root.buysugar.unloadMovie();
_root.pillstatus="Need more money!";
}
I want it to check to see if the item is out of stock then load the message. It works great until you put the Need more money. IT always insist on loading that even though you have more than 10 dollars.