A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: php var in dynamic text

  1. #1

    php var in dynamic text

    I have a php file ($test="this is a test")

    and a swf movie with a dynamic field test.

    the swf file has the action:
    LoadVariablesNum (test.php, 0);

    Why isn't this working????

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Location
    LDN, UK, EU
    Posts
    24
    you need speech marks mate:
    loadVariablesNum("test.php", 0);

  3. #3
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    loadVariablesNum("test.php", 0);

    also make sure you don't try to display the variable before it has had time to load, the simpleset way (probably) to do this is to create a movie clip and in this clip put a stop(); action on frame 1, then your dynamic textfields on frame 2. Finally attach the script as a clip event

    onClipEvent(load) {
    this.loadVariables("text.php");
    }
    onClipEvent(data) {
    this.gotoAndStop(2);
    }

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