Get url from actionscript

Is it possible to do something like:

if (page == “index.php”) {
/do something…/
}

to see if the document the swf is index.php?

hmm, you should clarify your question but maybe you mean something like this

in your html/php file


so.addVariable("pageVarForFlash",<?php echo $_SERVER['PHP_SELF'];?>);

And in flash


if(pageVarForFlash == "index.php"){
//do something
}