This content has been marked as final. Show 8 replies
down_btn.onPress = function()
this.onEnterFrame = function()
mytext.scroll += 1;
down_btn.onRelease = function()
you must create a loop when your button is pressed if you want to repeatedly scroll your textfield:
thanks for the ideas, and finally had a chance to look at this.
so far no luck,
chrebel, tried your script and it did not do anything. no effect at all. not sure why.
kglad, your script gives me errors, and i do not know enough about it to know what is wrong. errors are :
**Error** Scene=Scene 1, layer=actions, frame=159:Line 5: Type mismatch in assignment statement: found Number where Function is required.
scrollI=setInterval(scrollF,100,1); // use -1 for example to scroll up
**Error** Scene=Scene 1, layer=actions, frame=159:Line 10: Type mismatch.
**Error** Scene=Scene 1, layer=actions, frame=159:Line 19: Type mismatch.
**Error** Scene=Scene 1, layer=actions, frame=159:Line 27: Type mismatch.
Total ActionScript Errors: 4 Reported Errors: 4
thanks for any additional ideas
ahah! that has worked! excellent, thank you. had a play with making the "UP" button with little success, however. not sure if i copy all the code a second time and change names of variables, or just add a function for up at the top.... a little more help and we have got it, thanks!
you've nailed it! got it working without a hitch now. had to change the += to a -= in your last post to keep it from going down a line before going up and had to change a <maxscroll to a <=maxscroll so that it didnt get stuck at the bottom and not scroll up. and add in the release part of it for the up button as well so it didnt just scroll up endlessly. somehow i managed to understand it enough to do that, so maybe there is hope for me yet.
thanks again, wouldnt have got it without ya. attached is final complete code for anyone else trying to do this. paste in your actions layer or whatever for that part of your movie, make a button and name the instance "down_btn" make another button and name the instance "up_btn" and make your text dynamic and scrollable with instance name "mytext". done! brilliant!