My problem is that the browser-related features (call ExternalInterface JavaScript, hyperlinks links) inside the movie don't respond when tested at work, even though they functioned properly when tested at from home. The same browsers are used in both places.
I've verified the javascript works. I verified that my ActionScript works - at home anyway - in Firefox and IE6. When I brought my code from home and ran it on my work computer, the Javascript function fails to execute in Firefox! Firefox! Then, the JavasScript function fails to execute in IE7, which I halfway expected...
The strange part in all this is that when I use Firefox's IE view plugin (views Internet Explorer as a tab in Firefox), the Flash movie is fully active - it calls the javascript function as intended, The hyperlinked movieclips open new pages as expected, etc. Why is this?
I need this movie to function here at work the way it functioned at home! I know that ActionScript works the way it should where ever you use it... The JavaScript isn't to blame - I know it works in all the browsers I use... In both cases, home and work, I've ran all my files (HTML, SWF) from the same directory, so I'm not worried about conflict between realative and abolute paths...
Does it have something to due with Flash security settings? Does it have something to do with the HMTL object tags I'm using? That's the only thing I can think of.
This is work-related. Please help!
>>The AS2 is simple:
import flash.external.ExternalInt
erface;
closeDiv_btn.onPress = function() {
ExternalInterface.call("di
sappear");
}
>>The javascript is lenghtly so I won't show it here, but I've verified that the function works and is properly named "disappear()".
>>Here's the HTML object tag:
<object classid="clsid:D27CDB6E-AE
6D-11cf-96
B8-4445535
40000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="500" height="300" title="Hover Ad">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="myMovie500x300.swf"
/>
<param name="quality" value="high" />
<embed src="myMovie500x300.swf" quality="high"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockw
ave-flash"
width="500" height="300"></embed>
</object>
Start Free Trial