Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RE: [Flashnewbie] textinput maintains "focus " when you click
outside

RE: [Flashnewbie] textinput maintains "focus " when you click
outside

2004-02-18       - By Brook Davies

 Back
I'm actually using a dataholder and using a custom validation class that
gets called via the databinding API. So the validation routine is called
when the value in the dataholder, bound to the field, is changed. I'm
pretty sure the event I 'have' to use for this is change.

Its not terrible if the validation gets ran twice. But what happens is, if
the user types an incorrect value and then clicks outside of a field (not
in another fields), an error flag shows visible. Then if they click inside
a different field, the error flag shows again for the last field. It just
looks buggy, cause, if they leave a field and go directly to another field
that gets focus, the error flag shows only once as intended. So its look
inconsistent I guess.

I kinda like the way the dataholder is able to check validation rules. I
just wish I could add the validation rules to the dataholder at runtime via
AS. Manually doing it kinda sucks. I made some small changes to the
Validation Classes that came with mx and added some of my own so that when
the form is submitted via the submit button, all of the validation runs
again per field and returns the results in an array so I can throw up an
error. This saves me from scripting individual validation rules or even
really applying them to many fields.  Does that make sense? Its late, I
gotta get some sleep.

Brook



At 09:55 PM 2/17/2004, you wrote:

> > The problem is is that my validation on the field is done when it loses
> > focus, so the validation gets executed twice if the user clicks outside of
> > the textinput and then clicks again somewhere else.
>
>How about
>
>1. keep track of which textfield currently has focus
>2. when focus changes to new field, validate last field
>
>not the onKillFocus event triggers the validation, but the onSetFocus of the
>next field triggers the validation of the last field)
>
>?
>
>Why is it bad if the validation gets executed twice? I mean: better twice
>then never? Just curious.
>
>-- ---- ------
>Andreas Weber
>motiondraw.com
>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Supported by Fig Leaf Software
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>Lower Prices for Certified Training! Check out new lower prices for
>Certified Macromedia Training from Fig Leaf Software. Expand your
>skill set with courses in ColdFusion, Flash, Rich Internet
>Applications and .NET in the new year.  Fig Leaf Software provides
>the highest caliber instruction at our training centers in Washington
>D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
>your location.
>
>Get the details at http://training.figleaf.com/
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
>For additional commands, e-mail: flashnewbie-help@(protected)



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington  
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)





Earn $52 per hosting referral at Lunarpages.