ghostface
10-01-2002, 06:48 PM
Having a strange problem with this. The variable is not loaded when the page first enters the browser. But once I refresh, it does. We are trying to have a flash button with text that can be changed via javascript.
here is the javascript--
window.document.myFlash2.SetVariable("button.buttonTxt", "Login");
on the main timeLine of my flash movie I have a MC called "button". Within it there is a textField variable called "buttonTxt". In the example above we want to change the textField buttonTxt variable to read "Login". Any Ideas why it does not work the first time?
by mistake I had this posted to the actionscript fourm. I deleted that one and reposted here. I dislike double posting too so please forgive me.
here is the javascript--
window.document.myFlash2.SetVariable("button.buttonTxt", "Login");
on the main timeLine of my flash movie I have a MC called "button". Within it there is a textField variable called "buttonTxt". In the example above we want to change the textField buttonTxt variable to read "Login". Any Ideas why it does not work the first time?
by mistake I had this posted to the actionscript fourm. I deleted that one and reposted here. I dislike double posting too so please forgive me.