Like the title says, I have a problem with targetting;
I have a movie. In it are some buttons and a dynamic text field.
When I press the buttons is should load text from a database into the dynamic text field.
If I run the movie by itself (ie. not by LoadMovie()-ing it into a different movie) the dynamic text field gets filled with text and all is well and good.
However, when I use LoadMovie() to load this very same movie into my main movie, the buttons no longer work; the text field stays empty.
My code:
on(release)
{
var conts = new LoadVars();
conts.ID=0;
conts.Page="ab";
conts.sendAndLoad("opl.php",conts,'POST');
conts.onLoad = function(){
if(this.retval != undefined){
_root.texts.htmlText = this.retval;
_root.contitle.text= this.PageTitle;
}else{
_root.texts.text = "No text passed from PHP!";
}
}
}
My guess is that after loading this movie into another movie, _root points to the “another movie”.
Any ideas?