Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2008



Tip: Looking for answers? Try searching our database.

trouble with scrolling components and

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BetsyW. - 01 Jul 2008 19:26 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.