User Tag List

Results 1 to 8 of 8

Thread: how to make masked edit support negative numbers?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    how to make masked edit support negative numbers?

    How would I set up a masked edit object to allow for people to enter negative number?

    thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    just put a negative sign before a digit which would look like -[0-9]

    Steve

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    I'm aparently hoplessly ignorant to this stuff, because I'm not getting it to work. Maybe Im also not explaining what I need correctly. I have a masked edit box that I want to allow the user to enter numbers ranging from negative 9999 to positive 9999. then when the user presses enter, it pluts an active object at that x coordinate. I can get it to work quite easily for only positive numbers, but I want to support both.

    if I put:
    "-[0-9]"
    then the negative symbol is always there, and cant be gotten rid of.
    if it try:
    "[-9999-9999]"
    then all kinds of strangness occurs.


  4. #4
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    Try [\-]{99999}
    Steve

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    That worked! Thanks so much. Thank you for being so patient with me. Is there somewhere people can go online to learn how this "syntax" works?

    Because I'd have NEWVER have figured out how or why that works. That doesnt seem to show the range of numbers that's allowed and what is the "\" for? Does it let it know that the "-" is a character to be allowed and not designating a range this time?


  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    Yes, the slash is what is know as an escape character, to prevent it from being considered in syntax checking. Like with havin a " in MMF2:

    "This "" That"
    would be
    This " That

    The same works a similar way for other languages;

    "This \" That"
    would be
    This " That
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    Woah, I have been using click products since KnP and have never heard about that, thanks dr nebula!

  8. #8
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make masked edit support negative numbers?

    HolyMonkey,

    All I did was open up the maked edit object by double clicking and then clicking on the Help button. It is all explained there.

    Steve

Similar Threads

  1. Problem returning a Negative Numbers
    By EZubby in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th July 2011, 05:56 AM
  2. Negative Numbers bug
    By ffomega in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th November 2010, 12:20 AM
  3. converting negative numbers to 1
    By Aikikame in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th October 2010, 05:38 PM
  4. how to make masked edit allow negative numbers?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 10th February 2010, 05:02 PM
  5. can masked edit object support negative numbers?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th October 2009, 04:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •