chris.a.moore
March 23rd, 2010, 01:20 AM
Hello,
I have website I am developing and I have an intro SWF that I have placed the following AS 3.0 code in the last frame to call the Jquery function "trigger" ; or I might be able to detect the end of the movie and then fire the function.
import flash.external.ExternalInterface;
ExternalInterface.call("trigger")
trace ("the movieEnded");
stop();
Here is the function in Jquery in my HTML page.
$(function trigger(str)
{
//right now this is a link to fire the function.
$("#trigger").click(function (event) {
event.preventDefault();
//this is a div that collapses
$("#media").slideToggle();
});
$("#media a").click(function (event) {
event.preventDefault();
$("#media").slideUp();
});
});
and here is the html embed code
<div id"movie"align="center">
<!---->
<object id="intro" classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="900" height="430" param name="allowScriptAccess" value="always" />
<param name="allowScriptAccess" value="always"/>
<param name="src" value="imgs/Camdesignsintro.swf" />
<embed src="imgs/intro.swf" allowScriptAccess="always" pluginspage="http://www.adobe.com/shockwave/download/" width="900" height="430"></embed>
</object>
</div>
Any help would be greatly appreciated
V/R
-CM
I have website I am developing and I have an intro SWF that I have placed the following AS 3.0 code in the last frame to call the Jquery function "trigger" ; or I might be able to detect the end of the movie and then fire the function.
import flash.external.ExternalInterface;
ExternalInterface.call("trigger")
trace ("the movieEnded");
stop();
Here is the function in Jquery in my HTML page.
$(function trigger(str)
{
//right now this is a link to fire the function.
$("#trigger").click(function (event) {
event.preventDefault();
//this is a div that collapses
$("#media").slideToggle();
});
$("#media a").click(function (event) {
event.preventDefault();
$("#media").slideUp();
});
});
and here is the html embed code
<div id"movie"align="center">
<!---->
<object id="intro" classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="900" height="430" param name="allowScriptAccess" value="always" />
<param name="allowScriptAccess" value="always"/>
<param name="src" value="imgs/Camdesignsintro.swf" />
<embed src="imgs/intro.swf" allowScriptAccess="always" pluginspage="http://www.adobe.com/shockwave/download/" width="900" height="430"></embed>
</object>
</div>
Any help would be greatly appreciated
V/R
-CM