dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Random text from text-files!?

  1. #1
    Junior Member
    Join Date
    Jan 2002
    Posts
    1

    Wink

    Hi,
    im new in AS and i have a big problem. i want my movie to load text from textfiles and display they randomly.
    i have a ready working way for flash-player 6.0 - but i want to publish my movie in 5.0

    here is the AS for FlashMX.

    System.useCodepage = true;
    function zufallstxt() {
    loadVariables("text"+Math.round(Math.random()*5)+" .txt", mytextfield);
    }
    setInterval(zufallstxt, 3000);


    Here is my question:
    Is it posible to have the same function in Flash5.0 -
    i dont need the time-interval , only the random-function at the first frame of my object.

    i hope my english is working

    thank you for help

    Starkeeper

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    1,835
    hi,

    this will work fine if you drop the 'setInterval' function and the System.codePage=true line.

    you could just try it and see, couldn't you?

    - n.

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Posts
    1,835
    sorry, that's 'System.useCodepage = true;'

    - n.

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