Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
using smoothscroller for input text in form (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: using smoothscroller for input text in form
#5546
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
The Smoothscroller2 works fine. When a MC is inserted, that has a textfield set for static text, and the textfield has little text there is no scrollbar. When there is a lot of text there is a scrollbar. Good! But now comes the problem: When the textfield is set to input text (and no matter if the textfield is scrollable or not) no to scrollbar will appear. Not even when a lot of text is added by the visitor online. Is there a solution for this?
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/12 17:14 By Hilholland.
  The administrator has disabled public write access.
#5551
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
I will look into this today and get back to you here.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5554
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
I just attached a movie clip, with only a number of input text fields, to the smooth scroller2 and it works perfectly. If you need the fla then send me an email.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5555
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
Yes please
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/13 00:36 By Hilholland.
  The administrator has disabled public write access.
#5560
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
Through actionscript, you need to set your text field to autoSize so that it will expand when you type. Give your text field an instance name of txt, and enter:
Code: :

 txt.autoSize true


Then the scroll bar will appear as the text field expands.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5561
Re:using smoothscroller for input text in form 2 Months, 3 Weeks ago
Thank you, thank you, thank you!!!! So kind.

In the coming couple of days (it's late at my end of the planet and I am really busy tomorrow) I will write the procedure down for this in one post. So others struggling with this are helped too.

Eddy
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/09/13 21:14 By Hilholland.
  The administrator has disabled public write access.
#5753
Re:using smoothscroller2 for input text in form 2 Months ago
This is how it works. Thank you Admin.

1. drop Smoothscroller 2 onto the stage and give it an instance name (for this example the instance name is: SS2TextScroll)

2. drop an editblok onto Smoothscroller 2 and give it an instance name (for this example the instance name is: EBTextScroll)

3. add the following actionscript to the keyframe that holds both the SmoothScroller2 and it's EditButton (change the places where you see EBTextScroll to your own instancename):
Code: :

 var EBTextScrollListen:Object = {}; EBTextScrollListen.complete = function(obj:Object){    //    {type, target, tagData}     var myText obj.target.targetMC     if (myText.scroll == myText.maxscrollscrl._visible false     else scrl._visible true } EBTextScroll.addEventListener("complete"EBTextScrollListen);  { setProperty(this.scrollbar_visible0); }



4. create a MovieClip in your Library that is made up of a TextField that is set for Input Text. Give that TextField an instance name (for this example the instance name is: InputTextField).

5. add the following actionscript to the keyframe within the MovieClip that holds the TextField (change the place where you see InputTextField to your own instancename):
Code: :

 InputTextField.autoSize true



6. Give the MovieClip an Identifier name using the Linkage panel from the Library options (for this example the Identifier name is MCInputTextField).

7. Publish and upload your movie. Using your FlashBlocks editor; select the Smoothscroller2 (SS2TextScroll) and go to FlashBlocks editor's Linkage ID and enter your Identifier name (for this example the Identifier name is MCInputTextField).

8 Save data and Log out

Good luck, Eddy
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/10/19 00:28 By Hilholland.
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you