Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Flash sqf only allowing certain numbers.

Posted on 2011-09-16
13
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

664 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