Forum Moderators: open

Message Too Old, No Replies

Need to Hide DIV with Flash Button Instead of Javascript

         

dubstyleenation

3:21 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



I know that you can show/hide divs in javascript.

Is there any way of having a button in flash do the same?

Should I just call the same javascript function from Flash using getURL?

Any help would be great.

alias

9:49 am on Nov 19, 2007 (gmt 0)

10+ Year Member



hi,

yup, you call javascript from flash like that:

getURL("javascript:someFunction();");

calling JS functions is of course simplier than writing up it all up in the string like this:

getURL("javascript:alert('test'); var s='string'; return false;");

hope that helps,
Martin