PDA

View Full Version : embeding the OtheR script......


rp
05-08-2001, 09:49 PM
how do i embed some java script into a button state???

rp
05-08-2001, 10:34 PM
all right .so i use the FScommand in the scripts command???

Jesse
05-09-2001, 05:01 AM
No, you put the script in the HTML page and trigger it via button using getURL and the "javaScript://" syntax, see the example in this tutorial:

http://www.actionscripts.org/tutorials/beginner/spawn_browser/index.shtml

That button triggers a javascript embeded in the parent HTML document of the Flash file.

Cheers

Jesse