Skip to main content
Participating Frequently
March 22, 2007
Question

Actionscript Advice in need!

  • March 22, 2007
  • 1 reply
  • 143 views
Hi,

I basically have two flash swfs which need placing in an HTML template which has navigational buttons. Once the first swf has played/complete, I need to send a message to the javascript to allow the user to click the 'next' button (in the HTML template) to then play the second swf. The 'next' button will be inactive until the first swf has completely played. So will need the actionscript to tell the javascript the swf is complete. Think you use the fscommand or geturl, but not sure as this the first time I've had to link flash and HTML code together.

Hope someone can help...
This topic has been closed for replies.

1 reply

Participating Frequently
March 22, 2007
on the last frame of the first swf write this
getURL("javascript:activateButton()");
in the html template create this javascript function
<script>
function activateButton(){
//put the code to enable button
}
</script>

check this URL below to access swf using javascript

http://www.kingsley-hughes.com/tech/script/javascript/shw.php

Using the technique mentioned in the above url you can play the second swf using the html button.

HOpe this helps