Solved

Flash sqf only allowing certain numbers.

Posted on 2011-09-16
13
258 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
 
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now