text animation action script needed

flash Malaysia
  • 14 years ago

    hi there,

    i need to do some news flash thingy... where...all the text are animated by lines (if it has more than 1 line)

    but the thing is the text are to be read from an external file (can it be done that way?) and i was wondering if flash can read from an external file... what file format that external file should be?

    preferably with a sample script...please...

    thank you in advance











  • 14 years ago

    Here is ONE way to read from an external file.
    -----------------------------------------------------------------------------------------------

    myData = new LoadVars();
    myData.onLoad = function(){
            scrollText.text = this.text1;
    };
    myData.load("info.txt");

    stop();

    -----------------------------------------------------------------------------------------------

    "scrollText.text" above is the name & tool  that the text from "info.txt" will be displayed. "text1" above refers to the variable name INSIDE "info.txt"

     INFO.TXT------------------------------------------------------------------------------------

            text1=this will display using the code above
            &text2=this could display if you used the above script to call text2 instead of text1

    ------------------------------------------------------------------------------------------------
    EXAMPLES:
    View the Flash
    View the Text File






















Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Before software should be reusable, it should be usable.” - Ralph Johnson