-
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????
-
you need speech marks mate:
loadVariablesNum("test.php", 0);
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|