Actionscript 3 :: Flex Email Validator - £ Symbol Allowed In Domain Name?

Apr 20, 2011

I have a bug to fix in work where the UK Pound symbol, £, is allowed in the domain name. I checked the EmailValidator source and can see that it is not a disallowed symbol, whereas things like the dollar sign are:

public class EmailValidator extends Validator
{
include "../core/Version.as";

[code].....

As you can see DISALLOWED_DOMAIN_CHARS string does not include the £ sign. Was thinking of monkey patching (basically copying the entire class, editing it, and adding it to my src - for those not in the know), but we use RSL's, so that would be problematic.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Cross Domain Policy File With XML Allowed

Sep 18, 2010

How do I write a cross domain policy file which will allow an xml file from [URL] and from [URL]? The only cross domain policy files I've ever used use * as allowable domains I don't want to do this.

View 1 Replies

ActionScript 2.0 :: INSERT SYMBOL Inside A Regular MC - Allowed?

Mar 9, 2002

are you allowed to put Insert Symbols inside of movie clips? because mine don't seem to work...

View 2 Replies

Regex :: Validating Email Address (Specific Domain)

Dec 9, 2011

I'm Using EmailValidator for Validation:
<mx:EmailValidator id="Email_Validator"
source="{txtEmail}"
property="text" required="false"/>

And My Code is:
var isValidForm:Boolean=true;
var validatorArr:Array = new Array();
validatorArr.push(Email_Validator);
var validatorErrorArray:Array = Validator.validateAll(validatorArr);
isValidForm = validatorErrorArray.length == 0;
if(isValidForm) {
//.....
}

It is working fine. But I want domain should be "gmail.com" if some other, validation should return false.. How can I achieve this? I think Regular Expressions are useful. But I don't Know to use the same in flex?...

View 2 Replies

Flex :: Validator On RadioButtonGroup Of 2 Radios

Oct 29, 2010

I have a Validator on a RadioButtonGroup of 2 Radios. There's a checkbox above the RadioButtonGroup whereby if checkbox.Selected, then the Radios are enabled. So the Validator is required if the checkbox.Selected. So far so good. The problem is once a radio gets selected, the RadioButtonGroup selectedValue gets set. When I uncheck the checkbox I set the radios to not selected, but the selectedValue on the RadioButtonGroup doesn't get reset -- it hold the previous value. I tried setting it to null but no luck.

Therefore if I check the checkbox again and submit, the Validator see a selectedValue on the RadioButtonGroup. Even though none of the radios are selected, validation passes. How can I reset the RadioButtonGroup to its initial state when I uncheck the CheckBox? I looked at the underlying code for RadioButtonGroup.selectedValue = null, and what it does is look for a radio in the with the parameter value. If it doesn't find it nothing gets set.

View 1 Replies

Flex :: Implement IP Validator Over TextInput

Nov 28, 2011

I have followed this tutorial to implement an IP Validator over a TextInput. But, I have not been able to resolve following error for some hours.
Error: Could not resolve <flexScript:IPAddressValidator> to a component implementation. MasterTabNavigator.mxml /XflowGUI/src/view

Code:
MasterTabNavigator.mxml:
<mx:TabNavigator xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:flexScript="flexScript.*" >
[Code] .....

View 2 Replies

Flex :: Flex 3.5 Validator Error Message Repeats?

Aug 26, 2010

why the error message repeats in Flex SDK 3.5 (but not in 3.4) and have a good way to make it stop repeating?

[url]...

To make this happen, leave the textInput field empty and hit save multiple times. Then mouseover the textInput.

View 1 Replies

Flex :: Internationalization - How To Localize Validator Messages

Jun 21, 2009

I'm working on a flex 3 application which will initially support only one language (which is not English) but may need to support English and other languages later. So I'm using the standard localization technique, with resource bundles. Now, somewhere I use the validators like EmailValidator which have some error messages displayed, these are in english and come with the flex sdk. How do I localize those messages?

View 1 Replies

Flex - Preventing Validator From Firing After Bound Value Changes?

Nov 5, 2009

I am working on a product options form whose contents should be cleared by a clearOptions() method each time the user adds an option. The option name TextInput is bound to a value object that is reinstantiated each time the the user adds a product option. The problem I am having is that the StringValidator fires each time the bound value object is reinstantiated.

[Code]...

View 1 Replies

Flex :: Flexbuilder - Password Validator Using RegExp?

May 20, 2010

I have seen several examples in Flex for passowrd validator using RegExp. But every where the validation is happend for single validation.

I have a requirement, like password validations like

- At least one Upper case letter

- At least one numeric character

- At least one special character such as @, #, $, etc.

- At least one Lower case letter

- password lenght minimum 6 digits

- password cannot be same as user name

I have the code only for checking the password is valid or not . check the below code.

MXML CODE

<mx:FormItem label="Username:" x="83" y="96" width="66">
</mx:FormItem>
<mx:FormItem label="Password:" x="88" y="123" width="61">

[Code]....

View 1 Replies

Flex :: Custom Validator Against Remote Object?

Oct 20, 2010

I have a need to validate a field against our database to verify unique-ness. The problem I seem to be having is that the validators doValidation() exits before we've heard back from database.

How can I have the validator wait to return its payload until after we've heard from the DB?

Or perhaps a better question might be (since I think the first question is impossible), how can I set this up differently, so that I don't need to wait, or so that the wait doesn't cause the validation to automaticallly return valid?

View 3 Replies

Actionscript :: Flex Validator - Remove The Red Marker?

Jan 13, 2011

I'm working with flex 3.5 and I have a problem with a validator. I have a field that dynamically has o has not an asigned validator, the problem is that in a specific moment the field haven't the validator assigned but the textInput had a red border.I dont know what do I have to remove the red marker?Here is an example of my validator: This is the validator:

<mx:CreditCardValidator id="ccV"
cardTypeSource="{cardTypeCbx.selectedItem}"
cardTypeProperty="data"[code].........

And I have a button that been enable or disable because it has a binding with a boolean var isFormValid.The most weird thing is that when remove the validator the button becomes enables but the red border is still in the textInput.

View 1 Replies

Flex - Set An Error Message For Custom Validator?

Jun 7, 2011

I have custom validator apllied to many comboboxes in different tabs of application. Its is performing the same validation for all the comboboxes. The only difference is for ecah combobox the custom validator should return a different error messagae. How can error message be specified...?...like some error property in mxml or by somehow passing the error message as parameters to custom validator class.

View 1 Replies

Flex :: Dispatching Custom Events From A Validator?

Aug 2, 2011

Basically I am trying to create a string Validator which requests a new language from its controller by dispatching an event upon its creation.

The example below is a straight copy from the Flex3 component explorer - the only diffrence being that I have created the validator as a custom component which dispatches an event upon its creation.

The problem is that my main Application cannot hear the event being dispatched and I don't know why.

Here is the example

MyValidator.as

package components
{
import flash.events.Event;

[Code]...

View 1 Replies

Flex :: Validator Gets Called Multiple Times With Beta 2

Feb 28, 2010

I created a custom validator as follows in Flex 4 beta 2[code]...

it works but if you notice I have an Alert window for testing and it gets displayed 4 times which means the validator is getting called 4 times.

View 1 Replies

Flash :: Email - Dynamic Input Box @ And " Symbol

May 29, 2009

Having a very strange issue with a few creative banners. On some computers when you type in an input box for an email field instead of the @ symbol you get the " symbol. It is almost as though the keyboard has the wrong language set. This isn't the case though, they are all se to UK. I'm thinking it could be an issue with embedded fonts / charsets. Has anyone else ever had a similar issue?

View 2 Replies

Hash :: Flex - Getting Facebook Email/email?

Apr 13, 2010

I'll make it short: is it possible to get the user's facebook email adress (or a hashed email adress), so I can let's say compare his facebook email with his email in my database? I'm trying to get a FacebookUser and then use facebookUser.email_hash but that returns nothing.

View 1 Replies

Flex :: Scrolling Is Allowed Even After The Scrollpolicies Are Off?

Apr 9, 2011

i made both the scrollpolicies (horizontal and vertical scrollpolicy) to "off", but if i scroll the mouse the content was scrolling. how to avoid this behaviour?

the sample code is

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" xmlns="*" creationComplete="init()">

[code]....

if you just click the hgroup and scroll,then the contents are scrolling. now i want to aoid this behaviour.

View 2 Replies

Flex :: Component Declarations Are Not Allowed Here Error?

Sep 30, 2010

I'm getting the "Component declarations are not allowed here error" where I've got my RadioButtonGroup. Below is the custom component. Why can't I put a RadioButtonGroup in it?

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

[code].....

View 1 Replies

Flex :: Error: Id Attribute Is Not Allowed On The Root Tag Of A Component?

Nov 21, 2009

I have a code like the one below

<mx:Button id="TestingID" width="100%" height="20">
<mx:Script>
<![CDATA[

[code]....

View 3 Replies

Flex :: Blank Space Should Not Be Allowed In Input Field?

Dec 22, 2009

Blank space should not be allowed in Flex Input field... one is fine... but not more than one...

View 3 Replies

Flex :: Datagrid - AdvancedDatagrid Editable But Not Allowed To Change Data?

Jul 3, 2011

I have an advanced datagrid, but I want users to allow to copy some lines they want. when I use the property editable they are allowed to select the text they need, but they also are allowed to edit this. How can I prevent that?

I want users to be able to select any text in the datagrid, but they are not allowed to change the value of the grid. They should only be allowed to select and copy (ctrl + c).

View 2 Replies

ActionScript 3.0 :: Post The Code For A Working Cross-domain Securityfile That Allows Access Only From The Same Domain?

Jun 1, 2010

post the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..

View 3 Replies

Media Server :: Videos Start Immediately In Domain, 20+ Sec Delay Outside Domain

Apr 23, 2009

We are running FMS3 on Windows 2003 Server. Videos stream and play fine when inside our domain, but outside the domain the videos take anywhere from 20 or more seconds before playing.
 
After analizing the connections it was determined that the player is randomly trying to access ports until it gets to the one that works, but this is ONLY happening from people trying to view videos from outside our domain.

View 14 Replies

Actionscript :: Moving A Web Application From One Domain To A New Domain Flash/Php/MySql?

Jun 3, 2011

I have moved a web application from old domain to new domain. I cannot get Flash to engage. I have changed the domain in flash_images.php file to the new domain. I have a flash_box.swf file and I have a js file these are the only flash components that I see--old domain is e.g. www.example.com new domain is [URL]..I am not a flash developer, how do I get flash to work on the new domain?

View 3 Replies

Actionscript 3 :: Let Run Flash-app Only On Page(domain), Not Local And Not On Other Domain?

Dec 9, 2011

I created some game and would like to let the users play it only on my domain, so to forbid to play it offline or put on some other site. Is there a way to do it? Somehow check domain or so?

View 1 Replies

Flex :: Force Flex Apps To Load On A Local Domain?

Jan 11, 2010

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...

View 1 Replies

Set An Error Message For Custom Validator

Jun 9, 2011

I have custom validator apllied to many comboboxes in different tabs of application. Its is performing the same validation for all the comboboxes. The only difference is for ecah combobox the custom validator should return a different error messagae. How can error message be specified.?like some error property in mxml or by somehow passing the error message as parameters to custom validator class, as I dont want to have one custom validator for each component.

View 2 Replies

Flex :: Access Swf From Another Domain?

Oct 20, 2010

When trying to load a swf from a domain different from my swf's domain, I get this error[code]...

View 2 Replies

Actionscript 3 :: Flex Air App - Get User's AD Domain?

Aug 17, 2010

Is it possible to get the active directory domain name associated with the logged on user?[URL].. the user name can be inferred from the user directory folder name, however is there a way to get the domain name? (This is assuming the user is part of a domain!)

Assuming I am part of a domain "office" and my login is "j.jones", I want to retrieve both the "j.jones" and the "office" parts.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved