A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Horizontal Scrolling Text

  1. #1
    Member
    Join Date
    Nov 2005
    Location
    near my PC
    Posts
    46

    Horizontal Scrolling Text

    Hello everybody

    Text on the scroll start and on the scroll end is not readable. scroll.Speed is right, I dont wanna change it. I think, there is missing some scroll.pause on the begining and on the end. (or something like ease in, and ease out, or "speed in", "speed out") Any idea ?



    PHP Code:
    window_txt.text "This is a test to see if I can scroll back and forth."
    scrollTest 0
    newInterval setInterval(makeItScroll30); //this is scroll.Speed 
    function makeItScroll(){ 
        if (
    scrollTest === 0){ 
            if (
    window_txt.hscroll window_txt.maxhscroll ){ 
                
    window_txt.hscroll += 1
            } 
            if (
    window_txt.hscroll >= window_txt.maxhscroll ){ 
                
    scrollTest 1
            } 
        } else { 
            if (
    window_txt.hscroll 0){ 
                
    window_txt.hscroll -= 5
            } 
            if (
    window_txt.hscroll <= 0){ 
                
    scrollTest 0
            } 
        } 

    Attached Files Attached Files

  2. #2
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    hi
    At first glance i notice this in your code....line 4.
    code:
    if (scrollTest === 0){


    Should be...
    code:
    if (scrollTest == 0){



    Can you explain in more detail the effect you are trying to achieve?
    i.e.....infinite scroll?

  3. #3
    Member
    Join Date
    Nov 2005
    Location
    near my PC
    Posts
    46
    I think, something like this. But in animated text I wanna use variables loaded from TXT.
    Attached Files Attached Files
    Last edited by P3K; 02-07-2006 at 02:52 PM.

  4. #4
    Member
    Join Date
    Nov 2005
    Location
    near my PC
    Posts
    46
    It works with === and with == to. I think that both === and == are in this moment like the same. There is no problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center