To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-22-2006, 08:50 AM   #1
hansverst
Member
 
Join Date: Mar 2003
Location: Netherland
Posts: 33
Blinking Cursor

Hello,
I want to try to make a flash movie with a Dynamic text field, and on enter the frame, a cursor | <-- is blinking in it (so that you don't have to press the text field, before you can type some text.)
Is this posable in action script? I know there is a way to this in JS
Hope someone can help me on the way.
Thank you,
Hans
__________________
hansverst is offline   Reply With Quote
Old 11-23-2006, 02:11 PM   #2
ant_Z
Polak Maly
 
ant_Z's Avatar
 
Join Date: Jul 2006
Location: Poland
Posts: 438
it think that it should be familiar to JS - try to put in frame actions (F8):

_root.nameOFtextField.focus = true;

im a completly noob in As, but this may work
__________________
http://www.mroofka.z.pl
ant_Z is offline   Reply With Quote
Old 11-25-2006, 09:43 AM   #3
hansverst
Member
 
Join Date: Mar 2003
Location: Netherland
Posts: 33
Hi ant_Z,
tnx for the reply, i try the code but did not work.
But i keep on searching and trying, so tnx again.
I try to use setFocus but still not get it right, if some one knows how to do this i realy like to know.
Gr Hans.
__________________

Last edited by hansverst; 11-25-2006 at 10:26 AM.
hansverst is offline   Reply With Quote
Old 11-26-2006, 07:28 PM   #4
pherbrick
Senior Member
 
pherbrick's Avatar
 
Join Date: Jul 2004
Location: Los Angeles
Posts: 291
Selection.setFocus(objectName);

Where objectName is a string that includes the path and instance name of the object that is to receive focus. The object can be a button, text field or movie clip instance.
pherbrick is offline   Reply With Quote
Old 11-27-2006, 10:57 AM   #5
hansverst
Member
 
Join Date: Mar 2003
Location: Netherland
Posts: 33
Hi, pherbrick
Yes i know that part now, it works but only not when it's run in a browser. (thats the problem)
So when i load de swf, i still have to click the flash screen (not the textfield)to get it blink. (that's only ones, with a refresh it works fine every time.)

I do not know if you have to set a value to the body tag of the html (onload call swf function or something like that), so that, if the swf is load, it start blinking.
Thank you for reply,
Hans
__________________
hansverst is offline   Reply With Quote
Old 11-27-2006, 11:21 AM   #6
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,911
You can set focus to the flash within Javascript, I don't know the code off hand. You might try doing a search. A quick search turns up this:
Quote:
Put this in the body tag onLoad="window.document.myFlashName.focus();" Also see the link to macromedia's site http://www.macromedia.com/cfusion/kn...fm?id=tn_15586
blanius is offline   Reply With Quote
Old 12-02-2006, 04:48 AM   #7
hansverst
Member
 
Join Date: Mar 2003
Location: Netherland
Posts: 33
Hi blanius,
Thanks for the url, i try to that, but (oh dear, a but) when i add the onLoad code i get script error with AC_RunActiveContent. I use WinXP pro + IE 6, ones i load the html (as created with KM) it will not blink untill i click, and refresh the page or go back and prev, then it blinks.
Please take a look at http://www.screensave.nl/fltext/fltext.html
Thank you
__________________

Last edited by hansverst; 12-02-2006 at 05:23 AM.
hansverst is offline   Reply With Quote
Old 12-02-2006, 06:45 PM   #8
blanius
KoolMoves Moderator
 
blanius's Avatar
 
Join Date: Jul 2001
Location: Atlanta GA
Posts: 4,911
The whole active content thing is a bugger eh?

Not sure what the fix is.
blanius is offline   Reply With Quote
Old 12-03-2006, 07:31 AM   #9
hansverst
Member
 
Join Date: Mar 2003
Location: Netherland
Posts: 33
I think your right, the whole active content thing is a bugger.
i hope someday it will be fix.
Thank you for all the help,
Gr. Hans.
__________________
hansverst is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Product Support > Koolmoves

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:13 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.