Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 16th, 2003, 07:13 PM
ramil1219 ramil1219 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Los Angeles
Posts: 2 ramil1219 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
backlash can't be restricted in input field

Does anybody know how to restrict the backslash in the input field?

I tried this code for my input text field named “myInputField” but you can still type the backslash:

// create input text field
_root.createTextField("myInputField", 1, 20, 20, 300, 20);
myInputField.type = "input";
myInputField.border = true;
// restrict backslash character
myInputField.restrict = "^\\";

Can someone tell me what I'm doing wrong here? Thanks.

Reply With Quote
  #2  
Old December 17th, 2003, 03:31 AM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
Below is an fla with the backslash disabled.
Attached Files
File Type: zip field.zip (3.3 KB, 209 views)

Reply With Quote
  #3  
Old December 17th, 2003, 08:30 PM
ramil1219 ramil1219 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Los Angeles
Posts: 2 ramil1219 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmm... actually what I really wanted to do is to allow all characters including extended ASCII characters except for the backslash. So instead of a set of allowable characters I wanted to have a shorter set of restricted character(s).

Thanks though!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > backlash can't be restricted in input field


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT