Solved

Flash sqf only allowing certain numbers.

Posted on 2011-09-16
13
260 Views
Last Modified: 2012-05-12
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
Comment
Question by:Imaginx
  • 7
  • 6
13 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36552938
Add one line

_root.phone_txt.restrict = "1589";
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552943
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
 
LVL 29

Expert Comment

by:dgofman
ID: 36552946
Ok, modify to

_root.phone_txt.restrict="1234567890-"
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 1

Author Comment

by:Imaginx
ID: 36552948
That also stops the dash, which inhibits the validator from working correctly.
The validator needs the dash, right ?
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36552951
I included dash also check my previous post
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552953
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
 
LVL 29

Expert Comment

by:dgofman
ID: 36552961
Add dash on begining

_root.phone_txt.restrict = "-1234567890";
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552967
That worked, the dash comes back, but I still am only getting 1,5,8,9  ??? This is nuts !
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36552971
Check your keyboard in notepad :)

I don't know I can type all numbers
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552976
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
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36552978
Ok try my SWF file Screenshotpremiere-2-cs4.swf
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552981
Yours works.
Must be in the publish settings somewhere or something.
0
 
LVL 1

Author Comment

by:Imaginx
ID: 36552984
Embedding the font fixes it.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question