Using Type Input in Conditional Statement

This is a discussion on "Using Type Input in Conditional Statement" within the Flash & Multimedia Forum section. This forum, and the thread "Using Type Input in Conditional Statement are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 4th, 2008, 07:52
New Member
Join Date: Jan 2008
Location: Seoul, Korea
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Using Type Input in Conditional Statement

If the user types "ball" in the input textfield, instance name: name_txt, I want to move to the next frame and stop. Can somebody tell me, what I am doing wrong here? Thank you!

Code: Select all
submit_btn.addEventListener(MouseEvent.CLICK, onClick);
 
function onClick(event:MouseEvent):void
{
if(name_txt.text == "ball")
{
gotoAndStop(2);
}
}

Last edited by Daniel; Jan 9th, 2008 at 12:35.
Reply With Quote

  #2 (permalink)  
Old Jan 8th, 2008, 21:14
marSoul's Avatar
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 409
Blog Entries: 2
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Using Type Input in Conditional Statement

would you please send your .fla file ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jan 9th, 2008, 11:21
New Member
Join Date: Jan 2008
Location: Seoul, Korea
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Using Type Input in Conditional Statement

Thanks,

I finally figured it out.

Could I interest you in an external interface problem involving a swf movie inside a vb environment?
Reply With Quote
  #4 (permalink)  
Old Jan 9th, 2008, 11:30
marSoul's Avatar
Moderator
Join Date: Sep 2007
Location: Tehran - Iran
Age: 28
Posts: 409
Blog Entries: 2
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via MSN to marSoul Send a message via Yahoo to marSoul
Re: Using Type Input in Conditional Statement

I am not sure, but I can see it at least !
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] conditional statement firefox saltedm8 Web Page Design 9 Nov 25th, 2007 18:13
Conditional IF in external stylesheet AdRock Web Page Design 6 Sep 23rd, 2007 22:45
Functions and conditional IFs AdRock PHP Forum 4 Sep 17th, 2007 08:18
how do I change the height of an <input type="text"> box? MikeTheVike Web Page Design 1 Feb 23rd, 2007 22:23
input type=submit - beginner's question mmdesign Web Page Design 18 Aug 11th, 2006 17:19


All times are GMT. The time now is 22:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43