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


Similar Posts:


Flex :: Use Standard Map Marker Instead Of Custom Marker?

May 10, 2011

I'm using Google Maps with Flex 3. I'm using custom markers (custom icons) to mark places on the map. It works fine. The problem is that in some cases, I don't need a custom icon, I need the standard marker.

For example, how would I set condition C's icon to the standard marker:

public function iconSetter():void {
if (condition A blah blah){myIcon=star; myPointsBuilder(); return;}
if (condition B blah blah){myIcon=circle; myPointsBuilder(); return;}

[Code].....

I don't know how to revert to the default marker where I wrote "STANDARD MARKER".

View 1 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

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

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

Php :: Flex - Image Serving Extraneous Bytes Before Marker?

Nov 7, 2010

I'm desperately trying to solve this one. I have a bunch of files stored outside of the webroot and I need to serve them to a user after a few auth checks. These files have been uploaded using a Flex application or have just been manually uploaded through FTP. I have a serving script that looks something like:

[Code]...

I imagine this could be on the Flash side, but honestly it's dirt simple. I just don't see where the extra data is coming in, and why its corrupting the file. Anyone know why this is happening? or better yet, how I can clean these files up now?

View 1 Replies

Flex :: A Custom Embedded Marker For A LegendItem In A Chart?

Aug 15, 2011

I've been working with the flex charting component and I want to embed a custom icon for the marker in the legend. I've run into some strange behaviour where if set directly the icon is mirrored and the text is misaligned but if created using the a class factory and the legendMarkerRenderer property the component renders fine. I've included a snippet to illustrate the problem below. Working around this problem may be possible but I'm curious if anyone has an explanation as to what could be going on here. Additional info: Flex SDK 4.5.0.20967, FlashBuilder 4.5This is the output of the below snippet:

<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">
<fx:Script>

[code]......

View 1 Replies

Flex :: Create A Flat Marker In Google Maps 3d Flash Api?

Oct 5, 2009

When using map3d, the default marker creation is always perpendicular to the viewport. How can I create a marker that lays down flat against the map? I can't use GroundOverlay because it becomes overly tiny when the map is zoomed out. How can I create a matrix3d object that will rotate/scale/skew my Marker's foreground DisplayObject so it remains flat against the map when in perspective mode?

View 1 Replies

Actionscript 3 :: Create Custom Marker In Google Maps For Flex

Mar 2, 2011

I have to create a marker with 3 triangles at 120 degrees with each other. The fill colour of the three triangles will be different (to be decided depending upon the value of some other variable).

Google Maps can accept DisplayObjects as markers. How do I go about creating one manually?

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

Professional :: Put A Marker On The Timeline?

Sep 21, 2011

Is it possible to put some sort of a marker along the timeline on a certain frame? I want to select all the frames of all my layers within a certain range so I can paste them in a new document,

View 5 Replies

ActionScript 3.0 :: Google Map API - How To Put Title In Marker

Dec 18, 2009

I am using google map api. Is there any way to put title in marker?

View 1 Replies

ActionScript 2.0 :: Targeting - Tell Another MC To Go To A Marker On Its Timeline

Feb 20, 2006

I have a MC with buttons in it. When the button is pressed, I need to tell another MC to go to a marker on its timeline. Do i target the MC name (from the library) or the instance name? would it be something like Code: _root.mc1.mc2.mc3.gotoAndPlay("label");

View 4 Replies

ActionScript 2.0 :: Leave A Marker Where The Mouse Has Been Clicked?

Oct 18, 2011

I have created a movie that requires the user to click on two points on an image. I want a visual indication to appear (eg a marker of some sort) to appear on the first and second click. Is this possible?

View 21 Replies

Add A Polygon As A Marker In Google Maps Flash Api?

May 9, 2011

I am creating a project in Flash using the Google Maps API and docs. I'm trying to add a marker to the map, which is draggable but I don't want it to look like the standard Google Maps bubble-style marker. Is it possible to have a custom polygon or image but still keep the draggability?

View 2 Replies

ActionScript 3.0 :: Adding Movie Clip And Going To A Marker

Jan 1, 2012

I've added a movie clip i've created to the stage and it works fine... the movie clip has 4 frame labels inside it with different content on each label. The main timeline has 4 buttons and I want to be able to click one of these buttons, it will load the movie clip (which it currently does) but goto a specific frame label within the movie clip. The below is a sample of the code from one of the buttons.

[Code]...

View 6 Replies

ActionScript 1/2 :: Randomly Choosing Next Marker To Jump To And Play?

Sep 16, 2009

I'm interested in understanding the ActionScript 2 code that will allow a random decision on the next marker to jump to. I have five markers on a time line and want the movie to stop after playing a sequence of elements, then randomly choose the next marker to jump to and play, this would continue forever.The goal is to communicate a few concepts without starting from the same concept every time in a linear manner.

View 6 Replies

Events - Flash Google Maps: Get Id Of A Marker OnClick

Jul 19, 2011

In Google Maps Flash API, When the user clicks, or hovers on a marker, is there a way to dispatch an event containing the ID or lat/lon so this info can be used by the application?

View 1 Replies

Actionscript 3 :: 3D Object In FLARToolKit Keep Appearing Even Though There Is No Marker Detected

Aug 11, 2011

I have another (newbie) question about FLARToolKit.This is Lee Brimelow's code to make 3 boxes on top of the marker.

package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;

[Code]...

the flaw of this code is, after the marker detected, yes, the 3D object got rendered. but after the marker were not detected, the object still appeared on the screen (even though it did not move)

View 1 Replies

ActionScript 3.0 :: Identifying Marker Overlay In Google Maps

Jan 12, 2011

how to identify which marker overlay is being clicked.

I've looked up solutions online and the only thing that ever traces back for me is [object Marker] I need a way to identify the marker icon and manipulate the icon.

this is the marker code:

ActionScript Code:
function createMarker(latlng:LatLng, number:Number, tip, myTitle, myContent):Marker {
trace(this);

[Code]....

View 1 Replies

ActionScript 2.0 :: Marker Based Augmented Reality Start?

Sep 22, 2011

I'm looking into producing a relatively basic augmented reality web app where a user can print out a pre-made marker, which when held infront of their webcam and viewed through the app will display an object on top which the user can move around and explore. Something very similar to this: [URL] but with a simpler model. I have absolutely no idea where to start and am struggling to find any decent sources online.

View 0 Replies

ActionScript 2.0 :: Loadmovie - Goto A Specific Marker Within The External .swf

Sep 12, 2006

I am loading a external swf into a MC "m_loader" but i want to go to a specific marker within the external .swf (Marker "m1q1"), i can load the .SWF fine but how do i go to specific place currently using the following AS.

[Code]...

View 1 Replies







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