Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Flash sqf only allowing certain numbers.

Hey experts.

I have a flash file that is only allowing 1,5,8,9 permit to be displayed in an input field.

Thanks in advance !
0
Imaginx
Asked:
Imaginx
  • 7
  • 6
1 Solution
 
dgofmanCommented:
Add one line

_root.phone_txt.restrict = "1589";
0
 
ImaginxAuthor Commented:
I need it to permit all the numbers & right now it is only permitting 1,5,8,9..

Won't _root.phone_txt.restrict="1589" do the opposite of what I need ?
0
 
dgofmanCommented:
Ok, modify to

_root.phone_txt.restrict="1234567890-"
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ImaginxAuthor Commented:
That also stops the dash, which inhibits the validator from working correctly.
The validator needs the dash, right ?
0
 
dgofmanCommented:
I included dash also check my previous post
0
 
ImaginxAuthor Commented:
I copy & pasted that right into the actions pane, it didn't change any other numbers, but i did stop the dash from working.
0
 
dgofmanCommented:
Add dash on begining

_root.phone_txt.restrict = "-1234567890";
0
 
ImaginxAuthor Commented:
That worked, the dash comes back, but I still am only getting 1,5,8,9  ??? This is nuts !
0
 
dgofmanCommented:
Check your keyboard in notepad :)

I don't know I can type all numbers
0
 
ImaginxAuthor Commented:
1234567890
I can type them in ... Strange ... ??

I don't know what else to check.

I make a new text field from scratch - just to double check.
0
 
dgofmanCommented:
Ok try my SWF file Screenshotpremiere-2-cs4.swf
0
 
ImaginxAuthor Commented:
Yours works.
Must be in the publish settings somewhere or something.
0
 
ImaginxAuthor Commented:
Embedding the font fixes it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now