History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18040
Type: Bug Bug
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Keith Thompson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

go to implementation does not work in .as files

Created: 07 May 08 17:25   Updated: Tuesday 16:29
Component/s: Flex Support

Environment: xp

Build: 7,821
Severity: High


 Description  « Hide
simple example below, .as class extending another, go to on super or doValidation nothing happens, I think this worked in previous release

package flex.efs.asc.util.validators
{
import mx.validators.DateValidator;
import mx.validators.ValidationResult;
import mx.controls.Alert;
public class DobValidator extends DateValidator {

// Constructor.
public function DobValidator() { // Call base class constructor. super(); }

// Define the doValidation() method.
override protected function doValidation(value:Object):Array {
// Call base class date validation
var results:Array = super.doValidation(value);
// verify DOB not in future if there are no errors.
if (results.length == 0 && Date.parse(daySource.text + "/" + monthSource.text + "/" + yearSource.text) > new Date()) { results.push(new ValidationResult(true, null, "Invalid DOB", "Date of birth cannot be in the future")); }

return results;
}
}
}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.