Ask a Question related to Macromedia Flash Ad Development, Design and Development.
-
turalo #1
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
-
>Vee #2
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



Reply With Quote

