Hi all,
I'm not new to flash, but I haven't done much passing of parameters between flash and php. What I'm trying to do is create a flash file that will load swfs that are randomly chosen from a directory full of swfs. The random choosing is done by a php script.
When I call the swf directly, it functions properly but opens a new window, which I don't want. When I run the html page generated by flash (I'm using v8), the loaded swf is embedded, which is what I want, but it just flashes and leaves me looking at a blank page.
The swf is at The html is at The php code is at
The actionscript in the master flash file is:
/* first create a new instance of the LoadVars object */
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("// once vars have been loaded, we will have these variables:
myVars.swfToLoad // URL of swf
yVars.onLoad = function( success ){
if(success){
trace("variables loaded");
for( var prop in this ) {
loadMovie (this[prop],"photo_clip");
}
} else {
trace("Error loading page");
}
}
stop() ;
I've been messing with this for hours, so I know it must be something obvious . . .
TIA,
JadeG
I'm not new to flash, but I haven't done much passing of parameters between flash and php. What I'm trying to do is create a flash file that will load swfs that are randomly chosen from a directory full of swfs. The random choosing is done by a php script.
When I call the swf directly, it functions properly but opens a new window, which I don't want. When I run the html page generated by flash (I'm using v8), the loaded swf is embedded, which is what I want, but it just flashes and leaves me looking at a blank page.
The swf is at The html is at The php code is at
The actionscript in the master flash file is:
/* first create a new instance of the LoadVars object */
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("// once vars have been loaded, we will have these variables:
myVars.swfToLoad // URL of swf
yVars.onLoad = function( success ){
if(success){
trace("variables loaded");
for( var prop in this ) {
loadMovie (this[prop],"photo_clip");
}
} else {
trace("Error loading page");
}
}
stop() ;
I've been messing with this for hours, so I know it must be something obvious . . .
TIA,
JadeG