yubin
03-11-2004, 10:35 PM
I'm doing a dynamic mc slideshow. I created a separate swf for each folder. I have 3 folders. I want to create a movie that reads the directory via PHP. i.e...
folder1
folder2
folder3
and puts those into a duplicated mcButton.
Basically I want load the folder name to the mcButton.text,
and link the mc onRelease to getURL("myVars/myswf.swf")
here's my PHP....
<?php
$folders=glob(".");
$dirs=count($folders);
$vars="dirs=$dirs";
for($i=0;$i<$pics;$i++){
$n=$i+1;
$vars="$vars&dirs$n=$folders[$i]";
}
echo $vars;
?>
I'm not sure how to load the vars into and duplicate the mcButton
and parse the vars to each button. I hope I've explained this enough.
Also... How would I load the 3 swf's inside of this movie in a specific spot?
Thanks,
Yubin
folder1
folder2
folder3
and puts those into a duplicated mcButton.
Basically I want load the folder name to the mcButton.text,
and link the mc onRelease to getURL("myVars/myswf.swf")
here's my PHP....
<?php
$folders=glob(".");
$dirs=count($folders);
$vars="dirs=$dirs";
for($i=0;$i<$pics;$i++){
$n=$i+1;
$vars="$vars&dirs$n=$folders[$i]";
}
echo $vars;
?>
I'm not sure how to load the vars into and duplicate the mcButton
and parse the vars to each button. I hope I've explained this enough.
Also... How would I load the 3 swf's inside of this movie in a specific spot?
Thanks,
Yubin