Log in

View Full Version : useing flash to change javascript variable



armasmike
01-02-2008, 05:30 AM
I have a js file that i want to change the var showimage_1 useing flash ?

I can make a flash with a drop down box but what code do i use to change the var showimage_1 in the js file.


var showimage_1 = "yes"


if (showimage_1 == "yes") {
document.write('<br><TABLE cellpadding="0" cellspacing="0" border="0"><tr><td class="borders">');
document.write('<IMG SRC="sidebar.jpg" border="0"><br>');
document.write('</td></tr></table><br>');
}

BLiZZaRD
01-02-2008, 06:03 AM
Do you want it in Flash or PHP? Cause having different posts all over the board with the same question is confusing.

armasmike
01-02-2008, 12:16 PM
i am going to make two verstion of this editor. One in php and the other in flash.

i don't mean to confuse anyone just trying to get all the info i can get.