Post in New message form - SWiSHMax Tutorials
 
  Buy Ebooks, Video Games, DVDs, Electronics and more !
Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads Make Money Online Blog . Free Image and Photo Sharing and Hosting

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Free image hosting
   Web Design Pakistan
   Swish Templates
   SWiSH Climax
   Talkfreelance Community
   Template Desire
   Lite boards
   Script Sector
   GimpTalk
   13dots
   Idea Designs
   PHP Cafe
   Sposatoettore
   Free swishmax templates
   Swishzone

Manage your site with Flax Article Content Management System
Post in New message form
Category : SWiSHMax | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Hi,

after a long time I want to share this cool stuff with all of you. wink.gif

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:

user posted image

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

user posted image

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! wink.gif

Download Example


© 2002-2005 Flaxweb Network | Article Manager | Gimp Tutorials Library | RAD C++ Library | Free C/C++ Sourcecode |
Sites of interest : Web Design Blog | Swish Templates | Swishmax Ebook | Photoshop Templates | Gimp Tutorials | Text Forum | Make Money Online