Hi ,
Problem is probably the eval statement-- a simple example of usage would have helped
I will assume you want a path out of the eval statement.
no forward slashes to indicate the path rom "SYSTEM_PUBLICATION_DIR" to "temptile"
why is the last set of quotes added to the end of the eval statement?
why an extra + attached to temptile between the quotes ?
I am presuming this is a script action attached to an object, not a script object because you have used the keyword "this" in "this.SetImage"?
If you had posted a small 1 page pub that indicates what you are trying to do, you would have got it back working, and I would have spent less time looking at it.
Understanding what you are trying to achieve makes it much easier for anyone to offer relevant advice.
This might be correct using the limited information I have::
if(usedec==1)
{
if(decorset==1)
{
var temptile = detailfav1
detailfav1 = eval("SYSTEM_PUBLICATION_DIR\\"+"temptile")
this.SetImage(detailfav1)
decorset=0
} // end inner if
} // end outer if
paul