Character restrict not working

Hi, I'm trying to restrict the characters in my input text
field to digits only (0-9) -- it's an age restriction. But for some
reason it's not working. Here is my code:
var age = "";
ageRestrict = function () {
age.restrict = "0-9";
ageRestrict();
Also, if I don't use var age = ""; it will say undefined when
I publisht he movie. Why is that?
What am i doing wrong?
Thanks
A
Text

If you read the Flash help about the restrict property, it's
a property
of a TextField -- i.e. not of a variable and not of the
textfield's
"variable" property.
What is the instance name of your input textfield? The
restriction
should be as simple as:
myInputTFInstanceName.restrict = "0-9"
smash wrote:
> Hi, I'm trying to restrict the characters in my input
text field to digits only
> (0-9) -- it's an age restriction. But for some reason
it's not working. Here is
> my code:
>
> var age = "";
>
> ageRestrict = function () {
> age.restrict = "0-9";
> };
> ageRestrict();
>
> Also, if I don't use var age = ""; it will say undefined
when I publisht he
> movie. Why is that?
>
> What am i doing wrong?
>
> Thanks

Similar Messages

  • Restrictions not working in BO Webi Report

    Hello,
    I have created a universe on BEx query. Now on this universe when i create reports with restrictions the restrictions are not working.
    For example:
    If i create a BO query with restriction say Doc_Number= 108994 and display Doc_Number and Delivery_Number then:
    in Doc_Number column i get 108994 but in Delivery_Number column i get all the delivery numbers from the cube. In other words all Delivery_Numbers are retrieved when i restrict data for one Doc_Number and vice versa is also true.
    Can anyone help me solve this issue?

    Hello,
    If i remove all the filters and include any of key figures then i get correct data.
    But if i remove the key figure and apply a restriction say on Delivery_Number then i get incorrect data.
    I too believe that ideally this should not happen.
    eg:
    Doc_NumDelivery_Number
    111                      1010
    222                      1234
    333                      5678
    Now if i include Doc_Num and Delivery_Number in query and apply filter Delivery_Number = 1010 then the output is
    Doc_Num           Delivery_Number
    111                      1010
    222                      1010
    333                      1010
    Same is the case if i apply filter on Doc_Num i get all Delivery_Number.
    What should be the reason behind such behaviour of the query????

  • TOC link with a subscript character does not work in PDF

    Hi,
    has anyone come across with this? A heading has a subscript character and when you generate a PDF, the TOC page has no link. Other TOC heading links work out just fine, but all these that have subscript, these do not.
    I have used Save As PDF and selected even create named destinations for all Paragraphs. Usually the TOC works fine even if that is not selected. A link with subscript does not work in either case.
    I appreciate any help with this, thanks

    > The link is always terminated before any change in the character format. That's not a bug.
    In user-authored manually-created hypertext links, sure. And in that case, we know that we have to re-apply the Marker to the various fragments of the desired text. I would not expect this behavior for a generated file where we have limited control over the auto-tagging.
    > Therefore if you have subscript or superscript applied, the link starts at the beginning of the paragraph and ends before the character format change (sub-/superscript).
    It's not just format changes in body <$paratext> that break this. If you so much as apply a different format to the elements on the TOC Reference Page TOC (such as making the page number a different font), that breaks the HT of the page number in the PDF.
    > As far as I know Rick Quatro offers a FrameScript script for this problem.
    Well, Adobe might consider this to be an Enhancement Request item, but I consider it to be a defect.
    Is there anyone who would object if the TOC entries had functional full-string HT links by default? If so, Adobe could fix the problem, and have an Update tickbox to revert to legacy broken behavior.
    In any case, the Unicode solution is not really a "work-around", even though I put it that way. For anything where Unicode has a glyph that you would otherwise implement as FrameRoman with a Character Format, use Unicode.

  • IP address restrictions not working with bea weblogic plugin

    We want to implement IP address restrictions via the Sun Java One Web Server admin tool for our application. We are using the Sun Java One Web Server to proxy requests via the Bea Weblogic plugin. However, we cannot get IP address restrictions to work because of the leading asterisk in the following NSAPI entry for PPATH of obj.conf :
    <Object name="weblogic" ppath="*/cmcsr/*"> Service fn="wl_proxy" WebLogicCluster="10.156.20.11:9010,\
    10.156.20.12:9010,10.156.20.13:9010" DynamicServerList="OFF"
    </Object>
    Has anyone gotten IP restrictions to work with the bea Weblogic NSAPI plugin?

    I'm not sure what you're asking, but each Service directive should be on its own line. It is an error to have both a <Client> tag and Service directive on a single line.

  • Family Base restrictions not working

    We setup a family base account per the instructions and video. The time restrictions seem to be working fine but the list of trusted numbers is not working. Our son is still able to send and receive text messages through his iPhone 4 to anybody unless we specifically block their number on the Verizon account.
    We found that even with Family Base restrictions setup, imessage bypasses those restrictions so we turned off imessage on his phone and setup restrictions on his iPhone itself. This stopped him from being able to use the imessage feature of the iPhone but people who are not setup in his trusted numbers are still able to get text messages through. We're frustrated because the family base is not working the way it's supposed to and we're being charge for this "feature." 

    Hi Billiam!
    I'm sorry for any inconvenience with your son's iPhone 4 and the Family Base feature. Upon review of this feature, I see that the child companion app is not compatible with the iPhone device. Some features will work, and some will not, but this is due to the design of the iPhone. Here is some additional information for you: http://vz.to/15gGAxd
    ChristinaB_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Password to enable restrictions not working

    My password for enabling restrictions is not working. I don't even remembering setting it actually. I would have made it easy but what I think it could be is not working. how can I unlock it?

    Just try a Restore with iTunes.
    Otherwise you can try this; http://www.simonblog.com/2011/03/16/how-to-recover-forgotten-iphone-restrictions -passcode/

  • Spry textarea character count not working in IE9

    Hi.
    I'm using DW CS5 for a ColdFusion form with a textarea field. The spry character count works in every browser but IE9. Anyone know how to fix this?
    Thanks!

    This feature will not work in IE9 and IE10.
    The problem is two-fold
    a) The Copyright notice shows 2006 as the last Spry update. This was around the time of IE7
    b) Microsoft tends to go off on a tangent where every release of IE behaves differently
    As always, we are in the hands of the Adobes and Microsofts.

  • Special character key not working

    None of the special character key is working properly. More over character which are to be used by SHIFT key are also not working correctly.

    I am using OS X 10.9.3 and Pages v5.2 and a double-click with the Magic Mouse, or a double-tap with the Magic Trackpad will definitely insert the special character of choice at the previous cursor location in Pages v5.2, or within TextEdit. You must first establish application document focus (click in it) before the double-click/tap action.
    I can double-click/tap special characters and have them insert into form text and text area fields on a web page in Safari.

  • Coldfusion 8 debug ip restrictions not working

    Have been trying to limit ip's to local host, 127.0.0.1, but no luck.  Debug info is visible to all.  Inherited application that uses coldfusion so not very familiar with it but the debugging options seem very straightforward in the administrator but still the limiting of debug info to specific ip's is not working.  Windows 2003 R2 environment.  Any insight would be useful.  Thanks in advance.

    I'm not sure what you're asking, but each Service directive should be on its own line. It is an error to have both a <Client> tag and Service directive on a single line.

  • Keyboard character does not work - cant enter password to log in

    I have a new Blackberry curve.  Unfortunately the e key is not working (possibly after condensation forming on the device).  
    Luckily my password does not contain e  
    Unluckily I entered the password incorrectly.   And now I have to "enter BlackbErry to continue" 
    Unfortunately I cant type the E.    
    Any way of figuring a way to get round this, either by getting the E to work,   or by circumventing the "BlackbErry to continue " check?   Thanks

    hello bbnnl,
    first of all, what is the model you have? I see in your profile is displayed "curve 8290", which does not exists.
    Please edit your profile here: http://supportforums.blackberry.com/t5/user/myprofilepage/tab/personal-profile%3Apersonal-info
    Otherwise it is harder for us to help you.
    secondly, if you suspect water condensation on your device, I advise you to immediately remove the battery and dry your device for at least 48H in a bag of dry rice.
    I realize my message arrives too late.
    How are things doing for your device now?
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Why is the shortcut for highlighting the font selection field in the Character panel not working?

    I'm trying to use Illustrator CC (instead of CS6)...
    In AI CS6, pressing Command+Shift+Option+F on the keyboard, while text is active, hilights the Font Field in the Character Panel... not so in AI CC.
    I can open CS6 on the same file and it works... Open AI CC and no result.

    Don't have CC
    Check here, what is configured.

  • Character Styles Not Working

    Hello all,
    Never have I been as exasperated with a piece of software as
    I am with RH 7. I've sworn by Adobe products before but this has
    been a tremendous letdown. Grumbling out of the way, I need to ask
    for some help.
    I've been able to define and apply paragraph styles
    successfully for FM books that I'm importing into RH. I did that
    according to the direction given by the online presentation
    provided by Adobe (that is, I've defined everything in the
    fmstyles.css with a dummy file, etc.).
    The problem is that my character style of bold, defined and
    properly mapped, is not being rendered in the output. What is
    behind this? Could someone provide some insight?
    I dumped variables, because I found they were being converted
    into bullets. I don't see conditional text working and the
    auto-numbering is a joke...I don't believe there's a single person
    out there that's able to get it to work without manipulating the FM
    files or working the HTML files in RH.
    I don't want to solve all these problems. I've spent too much
    time as it is trying to get some kind of usable output.
    I just want to know why I can't rely on the character style
    I've defined.
    (This was an awful rant. Forgive me.)
    Cheryl

    Just to add one thing here, which I find even more
    perplexing. I am using the dummy file and have applied the
    fmstyles.css to it. I understand see that Paragraph Styles are
    applied correctly in the rest of the topic (the rest of the FM book
    files).
    If my Paragraph Styles are working, then I have to assume I
    am correctly defining in fmstyles.css and correctly mapping from FM
    to RH. Strangely, when I copy and paste text from one of those FM
    book files into the dummy file, my Character Styles appear
    correctly.
    What am I missing?? Why does my Character Style work in the
    dummy file but not in the rest of the book/topic?
    Any help would be appreciated...

  • Character Palette Not Working

    I have the options in my International - Input Menu to show the character palette in the menubar. However, when I click on it nothing happens. I have tried all the suggestions I have found on these forums to make it appear, but nothing has worked. (Which has resulted in no longer having a .plist item for the palette, or any of the items in Library > Caches).
    It almost seems like I no longer have a character palette to make appear anyway. But then why would I still have the option for it in the Input Menu?
    If anyone can help, I'd really appreciate it.

    alethe wrote:
    Would it matter if the character palette shows up in the Components of the system (System/Library/Components), but not under my admin user (user/Library/Components)?
    I don't know. There's no Components directory in my home Library and the one in the root-level library is empty, whereas /System/Library/Components/ is full.
    If you want to resolve the conflict/corruption in the original admin account, you'll have to do something like this:
    While logged into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.

  • Reply to all restriction not working

    We have an "everyone distro group that we setup delivery restrictions on. It is set too "Only senders in the following list". We had one of these allowed users send out a email to everyone. Then someone who is not on that list was able to
    reply all and it was sent to "everyone". Is there another setting I can check. We really need this restriction. Thanks.

    Weird thing is, they do get the warning message that they "Do not have permission to send to:". This happens when they reply or compose a new email. We have a Universal distro group setup with an alias. I created a test group configured the same
    way and it does work.
    You mean the restrictions work for the test group?
    Hmmm, Can you recreate the group the doesn't work?
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • New line character  is not working in BPEL 11g

    I am trying to use new line character &#13; in string concat operation in BPEL 11g, but it is not giving new line in output. Any idea why?

    We can achive this by embedding html tag break '&lt br &gt', something like below.
    string('Please click on the URL below to login and open your invoice Worklist.&lt br &gt
    &lt br &gt
    &lta href="http://localhost:8001/integration/worklistapp"> Invoice Worklist &lt/a&lt &lt br &lt
    &lt br &gt
    Edited by: RaviOrnext on Aug 16, 2012 4:24 AM

Maybe you are looking for

  • Visualizer Issues

    I recently installed G-Force Visualizer Platinum version 3.1.2 to work with iTunes. I have a dual screen setup and before I installed this program I was able to put the iTunes visualizer into full screen and still use the other screen normally. Now w

  • JMS Transfer not completing the FTP Transfer in Solaris 10

    We have an application which transfers huge files between unix servers through JMS. We had Solaris 8 and the ftp was working just fine. But after we rebuilt our server to Solaris 10,the ftp does not work. When tracing the ftp we found this in logs. J

  • CC 2014 Progs leave me plagued with out of memory issues which the previous versions don't exhibit.

    The new CC 2014 suite of progs seem rather memory hungry? I am plagued with out of memory issues trying to use them. The old CC progs work just fine! Is there a new minimum spec for memory now? For now I am forced to use the old versions as the new o

  • Creating a dynamic array in Actionscript

    I am wondering how I would create a dynamic array in Acionscript, i.e. one that utilizes fields for mapping data like this: public var SMITH:Array = [            {date:"29-Aug-05", close:45.87, profit:52},            {date:"23-Aug-05", close:45.74, p

  • Any word on a  new version compatible with Win7 64 bit IE8

    Hope so, I dont want to go back to a 32 bit version, because everytime there is an IE8 MS update, it upgrades to 64 bit