nice work
Posted about 1 month ago
Imagine the following situation:
Say you got a dynamic textfield on the stage, acting like the title of your content;
Your content needs to be updated very often and your can’t expect how long the title is going to be;
There’s limited space to display the title(you don’t want to expand the title all the way across the entire screen);
What would you do?
This file might just solve this problem
Features:
•This file helps you to automatically scroll the text in a text field when the text is too long to display
•It will detect whether text scrolling is needed
•Two scrolling mode is included(bouncing back and forth or looping)
•A soften mask (created in AS) is applied at the edges, making it looks more natural(it will only be applied when the text is too long for the display area)
•There are many other possibilities with the implementation of this file(sample file is included)
Files included are:
1.FLA File: Smart Scrolling Text
2.FLA File: Smart Scrolling Text(preview)
3.FLA File: Sample
4.Help File
Customization:
1. Change the scrolling mode(as mentioned above)
2. change the time interval of the timer by changing the interval variable
3. Specify how much the text is scrolled every time the timer is triggered
4. Add more than 1 scrolling texts (refer to the sample file provided)
5. Play aroung with it such as integrating it with other application to enhance user interaction(also refer to the sample file provided)
Other information:
The sample file demonstrates how to create a playlist like the one shown in the preview;
All code is written in AS3 . If you are interested in an AS2 version of this file, leave a message below and I will make it for you.
Post any problems or queries below, or send me an email: chenyang3@hotmail.com, chenyang3@gmail.com
Enjoy!
Regards,
Yang
Please check out my other file: Circular Preloaders (5 colors)
http://www.flashden.net/item/circular-preloaders-5-color-schemes/14423
The problem has been fixed. Thanks to Strobus and diveloper for making great suggestions.
Posted about 1 month ago
The looping example jumps to start of phrase (so you miss reading that) rather than scrolling through letters smoothly…possible to fix?
Good stuff.
Posted about 1 month ago
Yes I have noticed that as well. Do you have any suggestions? Actually one solution I can think of is to set the interval of the timer (there’s a variable called interval) longer so when it reaches the end of the letter it will stop there for a certain amount of timer before it jumps back to the start. Another solution I can think of is to let the text to continue scrolling until all letters are disappeared. The second method might be better but I will need to add some extra bit of code.
Please let me know what you think. Thanks for your comment
Yang
Posted about 1 month ago
Nice work. Definately do the second method, where the texts scrolls off the stage. I added “Spaces” to the end of your sample which works as a quick fix, but it would better and smoother if you fixed the issue.
Posted about 1 month ago
If you can make this in AS4 that would be fantastic. I’d definitely reconsider purchasing it then. See, I don’t know anything about AS3 so, this would be better for me. Thanks. Oh and your file is nice.
Posted about 1 month ago
@hugznothugzkidz: I will definitely make a AS 2 version for you. But I’m quite busy with my school work these days. Could please leave your email address here (or send me an email), and I will send the file to you as soon as I get it done. Thanks
@URanimEnigma: AS4 ? Or did you mean AS2 ?
Posted about 1 month ago