When I type into the window in flash in which I want all the text to scroll the
window just elongates and when I test the file I just see an elongated window.
The code attached was tried with both dynamic and input text fields.
Does anyone know what I might be doing wrong? Thank you very much.
var pressing:Boolean = false;
var movement:Number = 0;
upButton_btn.onPress = function() {
pressing = true;
movement = -1;
};
upButton_btn.onRelease = function() {
pressing = false;
};
downButton_btn.onPress = function() {
pressing = true;
movement = 1;
};
downButton_btn.onRelease = function() {
pressing = false;
};
_root.onEnterFrame = function() {
if (pressing == true) {
scrollWindow_txt.scroll = scrollWindow_txt.scroll + movement;
}
};
skipToEndButton_btn.onRelease = function() {
scrollWindow_txt.scroll = scrollWindow_txt.maxscroll;
};
kglad - 02 Jul 2008 01:05 GMT
make your textfield multiline either in the properties panel or with actionscript.