Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Flash sqf only allowing certain numbers.

Posted on 2011-09-16
13
Medium Priority
?
271 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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.
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

885 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