Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: onClipEvent / getFocus problem!
From: Till Steinmetz
Date: Tue, 26 Sep 2000 18:52:25 +0100

Hi,

got no answer on this post on the flashcoders list so perhaps someone here
can help...

i made a mail form in Flash which will be sent with PHP.
Due to the Flash 5 player bug (check out technote 14732 / section about
"I-beam cursor not visible")
which makes it impossible to see the blinking cursor in my textarea i added
a "type your message here" text.
The whole mail-thing is a "popup" window (=movieclip) with an instancename
of "mail_window". When the user clicks into
the textarea i want the "type your message here" text to be deleted, so i
added this script to the "_root.mail_window" MC:
onClipEvent(mouseDown) {
if (_root.mail_window.hitTest(_root._xmouse, _root._ymouse, false))
{
trace(Selection.getFocus())
}
}
just to find out what getFocus will return...
There are two things i dont really understand. Why does the
onClipEvent(mouseDown) handler gets in action wherever the user clicks? I
thought that a "ClipEvent" is somehow related to the movie-clip it is
assigned to, i.e. only when the cursor is over the boundaries of the MC ? I
had to add the hitTest to only execute the script if the user clicks into
"mail_window".
Second question Selection.getFocus returns the path to the textarea ONLY if
you click the textarea TWICE. Is this a bug or did i do something wrong ?
Till


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]