Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-12-2005, 07:08 PM   #1
Girish_inf
Registered User
 
Join Date: Jan 2005
Posts: 14
Default Problem with OnRollOut Event of TextInput component

Hi,
If I have a onRollOut event for a TextInput component, I am unable to click or edit the text box.
ActionScript Code:
var Name_txt:TextInput = this.createClassObject(TextInput, "Name", 0); Name_txt.onRollOver = function():Void {          this._x = 50; }
Is there any work around for this?

Regards,
Girish V

Last edited by CyanBlue; 02-13-2005 at 01:20 PM. Reason: AS tag is applied...
Girish_inf is offline   Reply With Quote
Old 02-14-2005, 10:47 AM   #2
Girish_inf
Registered User
 
Join Date: Jan 2005
Posts: 14
Default

No replies as of now?????
Girish_inf is offline   Reply With Quote
Old 02-14-2005, 10:57 AM   #3
Laguana
Well known nobody
 
Join Date: Jul 2004
Posts: 818
Default

I don't know if it'll help, but try Name_txt.useHandCursor = false if the hand cursor is appearing.
Laguana is offline   Reply With Quote
Old 02-14-2005, 11:08 AM   #4
Girish_inf
Registered User
 
Join Date: Jan 2005
Posts: 14
Default

Hi Laquana,
No it does not work. Only the cursor changes, but still i am unable to select the contents of the text box or edit it. Any other solution for this?
Girish_inf is offline   Reply With Quote
Old 02-14-2005, 12:15 PM   #5
UncleML
Registered User
 
UncleML's Avatar
 
Join Date: Feb 2005
Posts: 234
Default

try using editable to set it to true.

yourtextinputcomponentinstancename.editable=true;
UncleML is offline   Reply With Quote
Old 02-14-2005, 05:16 PM   #6
Girish_inf
Registered User
 
Join Date: Jan 2005
Posts: 14
Default

Hi,
Even after setting that, it does not work. I am not even able to select the contents of the text box. The onRollOver event totally stops the selcection or editing properties of the text box.
Girish_inf is offline   Reply With Quote
Old 02-15-2005, 12:47 AM   #7
UncleML
Registered User
 
UncleML's Avatar
 
Join Date: Feb 2005
Posts: 234
Default

This is strange, there might be something in your code that goes haywire. Why not you paste here the complete source code or else attach the fla file. With limited information given, it's hard to detect what's wrong with yours.
UncleML is offline   Reply With Quote
Old 02-15-2005, 04:39 AM   #8
Girish_inf
Registered User
 
Join Date: Jan 2005
Posts: 14
Default

Hi,
I have pasted the code in the first post itself. They are just two lines.

import mx.controls.TextInput;
var Name_txt:TextInput = this.createClassObject(TextInput, "Name", 0);
Name_txt.onRollOver = function():Void {
this._x = 50;
}

Just remove the onRollOver function and it works perfect. Please let me know whether I make it clear or not.
Girish_inf is offline   Reply With Quote
Old 02-15-2005, 04:47 AM   #9
UncleML
Registered User
 
UncleML's Avatar
 
Join Date: Feb 2005
Posts: 234
Default

I've never used the component TextInput using the createClassObject, so I might not give you the answer. Is your stage completely empty that you didn't insert any text input with the variable Name_txt? If yes, do provide indepth information.
UncleML is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:07 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.