Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2009, 01:54 AM   #1
Aneeliyo
Registered User
 
Join Date: Jun 2009
Posts: 15
Question [RESOLVED] If statement not working

hello. I am a total newbie and just learning from resources available here.. Today i was trying If statements to verify if the password entered in input box named "pass" . I code is as following..

Quote:
on (release)
{
if (pass =="acc")
{
gotoAndPlay(10);
}
else
{
gotoAndPlay(15);
}
}
even if i enter the correct password it displays the content in frame 15.

What did i do wrong?

Pls advice me

regards
Aneel

Last edited by Aneeliyo; 11-04-2009 at 05:43 AM..
Aneeliyo is offline   Reply With Quote
Old 11-04-2009, 02:06 AM   #2
Thimbletack
Registered User
 
Join Date: Mar 2009
Posts: 16
Default Instance name?

Did You put the name "pass" inside of the <Instance Name> or under Var:___? I'm pretty sure that you would need the Var for this. If you used var then try putting pass in instance name.

regards
--Thimbletack
Thimbletack is offline   Reply With Quote
Old 11-04-2009, 02:10 AM   #3
Aneeliyo
Registered User
 
Join Date: Jun 2009
Posts: 15
Default

Many thanks Thimbletack!

yes i am using instance name. Still it does not work.
Aneeliyo is offline   Reply With Quote
Old 11-04-2009, 02:14 AM   #4
Thimbletack
Registered User
 
Join Date: Mar 2009
Posts: 16
Default

Glad thats working for you!

Good luck learning AS2

Thimbletack
Thimbletack is offline   Reply With Quote
Old 11-04-2009, 02:49 AM   #5
Aneeliyo
Registered User
 
Join Date: Jun 2009
Posts: 15
Default

Thimbletack, I think you mis-read my post. Its not working
Aneeliyo is offline   Reply With Quote
Old 11-04-2009, 03:35 AM   #6
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,268
Default

Attach your .fla.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Old 11-04-2009, 05:12 AM   #7
Aneeliyo
Registered User
 
Join Date: Jun 2009
Posts: 15
Default

thanks loadlearn.... i am attaching .fla... thats for your time and help
Attached Files
File Type: zip FlashIfCondition.zip (5.3 KB, 2 views)
Aneeliyo is offline   Reply With Quote
Old 11-04-2009, 05:28 AM   #8
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,268
Default

__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde

Last edited by loadlearn; 11-04-2009 at 06:03 AM..
loadlearn is offline   Reply With Quote
Old 11-04-2009, 05:41 AM   #9
Aneeliyo
Registered User
 
Join Date: Jun 2009
Posts: 15
Default

Many Many thanks LoadLearn..
Aneeliyo is offline   Reply With Quote
Old 11-04-2009, 06:03 AM   #10
loadlearn
Flash Nerd
 
loadlearn's Avatar
 
Join Date: Apr 2009
Posts: 1,268
Default

Welcome.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde
loadlearn is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.