Ask a Question related to Macromedia Flash Ad Development, Design and Development.

  1. #1

    Default Is this possible???

    Hy guys , I want to have a scrolling text in my flash movie, how can I inport a
    script code where can I put it, I have one scroling text on may old site, that
    scroll text I want to have in my new site's flash, how can I do that. this is
    the script.

    <script type="text/javascript">

    /*
    Alert-It Scroller script- By Tofik
    For this and over 400+ super designs, visit [url]http://www.xxxxxxxx.nl[/url]
    This notice must stay intact
    */

    //Customize your message here. Use any HTML desired:
    var themsg='<span style="font:italic 22px Arial;color:red;"><b>Aktie: Turkije
    0,5 cpm. Marocco 0,14 cpm. Pakistan 0,10 cpm. Suriname 0,17 cpm. <a
    href="http://www.xxxxxxxxxx.nl/aanmelden.htm"
    target="_new">aanmelden</a></b></span>'
    var speed=5 //speed of scroller (1-10 or more)
    var loops=5 //specify number of times message scrolls across screen (an
    integer or "infinite")

    function populatescroller(){
    var windowwidth=iecompattest().clientWidth
    document.getElementById("alertit").innerHTML=thems g
    document.getElementById("alertit").style.width=win dowwidth
    document.getElementById("alertit").scrollAmount=sp eed
    document.getElementById("alertit").scrollDelay=20
    document.getElementById("alertit").loop=loops
    document.getElementById("alertit").onfinish=functi on(){
    document.getElementById("alertit").style.visibilit y="hidden"
    }
    }

    function iecompattest(){
    return (document.compatMode!="BackCompat")? document.documentElement :
    document.body
    }

    if (document.all && document.getElementById){
    window.onload=populatescroller
    window.onresize=populatescroller
    }

    </script>


    this is it, Is it possible to somhow inport it in my flash animation.

    turalo Guest

  2. #2

    Default Re: Is this possible???

    If you would just like to replicate the same thing in flash why dont you set up:
    1. create a mc and name container
    2. drag an instance of it to the stage.
    3. name the instance my_container
    4. go to the library and double click your mc
    5. You shoudl now be in the container- create A dynamic textfield- give it an
    instance name of my_scroll
    6. now get out of the editing mode of the container and get back to the stage
    7. create an animation that runs lef to right (you figure out the timing and
    positon, etc...)
    8. select the first frame the container appears on and open up the actions
    panel
    9. type this:
    container.my_scroll.text="Customize your message here";

    You should now have a basic scroller that you can totally customize. If you
    want to get more complicated you could load ext vars and then plug that into
    your container.my_scroll.text. The help menu can tell you how to load ext vars.

    >Vee Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139