Hi,
after a long time I want to share this cool stuff with all of you.
Many message boxes in contact forms are simple.So, when you type ypour message, if the message is too long, you must to scroll it up and down using the keyboard arrows.
Now forget this and create this message box with automated scroller.
Let's start:
1.If you want to do this, simply create your contact form ( make input boxes for all fields).If you don't know how, please see this tutorial first, by Ali Roman:
create simple contact form
2.If the contact for is complete, focus your eyes on message box.In the outline panel click on the message text input box.Now in the Layout drag the green sign from right to left (about 5-10 mm), like the picture below:

3.Now create your scroll bar .Create two buttons, name it up and down and position it like the picture below.

4.Select two buttons and group it as sprite. Add name for this sprite like scrollMsg.
Scripting
5.Open scrollMsg sprite and add this actions for up and down button:
"up" button
on (press) { flg_scroll = -1; } on(release){ flg_scroll = 0; } on (rollOut,dragOut,releaseOutside) { flg_scroll = 0; } "down" button
on (press) { flg_scroll = 1; } on(release){ flg_scroll = 0; } on (rollOut,dragOut,releaseOutside) { flg_scroll = 0; }
6.Click on the scrollMsg sprite in the Outline panel, and add this script:
onLoad(){ this._visible = false; } onEnterFrame(){ if (_root.formMessage.maxscroll > 1){ this._visible = true; if (_root.formMessage.maxscroll == 1){ _root.formMessage._visible = false; }else{ _root.formMessage._visible = 1; if (flg_count % 3 == 0){ _root.formMessage.scroll = _root.formMessage.scroll + flg_scroll; } flg_count = (flg_count+1); } }else{ this._visible = false; } }
7.That's all. Now open your *.swf contact form, and in the message box insert you text. If you insert a very long message (longer than input box your scroller appears). If your text is very small (about two or three lines), scroller is invisible.Test it and Enjoy! 
Download Example
|
|
|