LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-18-2008, 01:22 PM
FredPike FredPike is offline
Registered User
 
Join Date: Jul 2008
Posts: 21
Rep Power: 0
FredPike is on a distinguished road
Very simple boolean problem

I am a complete newbie with actionscript. I have the following code an I was hoping someone could help show me where I am going wrong:

Code:
var FH:Boolean = false
trace (FH)
if (FH = false) {
    trace ("hello");
};
The code should define a variable FH as a boolean and set it as false. The trace(FH) line shows me it is false. My problem is that the if statement isn't doesn't realise that FH is false and therefore I don't get the second trace of "hello".

Many thanks for the help
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple button problem tensaislim Flash 8 9 10-04-2007 02:46 PM
Simple Button inside movieclip problem... jlbribeiro Actionscript 2.0 7 08-29-2007 06:36 PM
removeMovieClip - a simple problem kof98se Flash 8 10 08-04-2007 05:24 PM
A seemingly simple timer problem vblank Actionscript 2.0 2 03-03-2006 03:13 PM
must be simple answer to named anchor problem by now..! rolandscriven Flash MX ActionScript 0 11-22-2003 01:39 PM




All times are GMT. The time now is 08:57 PM.