A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dynamic text not appearing on net

  1. #1
    Junior Member
    Join Date
    Feb 2005
    Posts
    21

    dynamic text not appearing on net

    Hi,

    I have built a flash movie which has a dynamic text field. The field is populated with text from a .txt file and when I publish the swf on my PC all is OK and the text is visible.

    However, I have placed my swf on my webhost's server and have also placed the .txt file there (as well as the .fla file just in case) but the text is not visible on the website itself.

    The .txt file is located in the same folder (on my PC) as the .fla and consequently i have not told flash to go to a specific file location - it simply takes the .txt file from the folder.

    So, now i am stuck. Do i need to the write an absolute location in the action script (http:www.mysite.com/mytxt?) or is it something to do with re-publishing in some way?

    As ever any help is hugely appreciated.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    What is the script you use to load the textfile?
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Posts
    21
    Quote Originally Posted by cancerinform
    What is the script you use to load the textfile?
    hi,

    the code is:

    loadVariables("whyTTD.txt", this);

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Use LoadVars. Check the Flash help files. There is an example.
    - The right of the People to create Flash movies shall not be infringed. -

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