Skip to main content
GameDev.net gamedev.net
🔒 Locked

Text box doesn't work in flash.

Started by andfol Jan 13, 2013 at 7:16 PM 1 replies 1k views
Original Post
andfol
andfol

I am trying to make a crossword in flash. I have just started, I have created a rollover that will act as a highlighter for the clues up and down. The problem is I create a box for text input and at the moment there is no text going into the box when I test the movie. I will provide the action script code I am am using for the rollover I would be grateful for any pointers on this. I think I am doing something wrong in flash rather than it being an action script error but heres the code anyway.

rollOv1._visible = false;

rollOverButton.onRollOver = function(){
rollOv1._visible = true;
}

rollOverButton.onRollOut = function(){
rollOv1._visible = false;
}

the rollOverButton is the text box and rollOv1 is the highlighted area.

shadowisadog
shadowisadog

Is the text box enabled (and not read-only) and does it have focus?

What happens if you click on the box and then try typing in it?

eppopparelle
eppopparelle

How about you set focus to your textbox?

rollOverButton.onRollOver = function(){
rollOv1._visible = true;

stage.focus= rollOv1;
}

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.