Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Javascript To Flash Calls (LoadMovie) not working on any Mac Browser, but works on PC

Javascript To Flash Calls (LoadMovie) not working on any Mac Browser, but works on PC
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2003
Location: North Bergen,NJ
Status: Offline
Reply With Quote
Oct 23, 2003, 01:07 PM
 
Im coding a page that loads 4 different swfs into the onto the main window using HTML links. I can get the swfs to switch on IE Win and Mozilla Win, but nothing works on Safari, or IE Mac or Mozilla Mac. All my browsers are at the latest versions. I've also been browsing alot of Flash sites that have include samples of the type of functionality im trying to reproduce, and they all seem to be non-functional on Mac as well. Is something amiss with Javascript to Flash interaction on Macs?
     
Fresh-Faced Recruit
Join Date: Jan 2003
Location: North Bergen,NJ
Status: Offline
Reply With Quote
Oct 23, 2003, 01:28 PM
 
Here;s some snippets of relevant code for reference cause the whole script is fairly long:

Code:
<SCRIPT LANGUAGE="JavaScript"> function movieLoad(layerNum,movieURL,objNum) {flashObj[objNum].LoadMovie(layerNum,movieURL);} </SCRIPT> <BODY bgcolor="#ccffcc" onLoad="setMovieRef('moviename',0)"> <a href="javascript:movieLoad(0,'movie1.swf',0)">a</a> <a href="javascript:movieLoad(0,'movie2.swf',0)">b</a> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ID=moviename width="570" height="464"> <param name="movie" value="movie1.swf" /> <param name="quality" value="high" /> <embed name=moviename src="movie1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="464" swLiveConnect="true"> </embed> </object> </BODY>

ive also tried making my links like this

Code:
<a href="javascript:;" onClick="movieLoad(0,'movie1.swf',0)">a</a>
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Oct 24, 2003, 08:34 AM
 
Originally posted by MetalArtist:
Im coding a page that loads 4 different swfs into the onto the main window using HTML links. I can get the swfs to switch on IE Win and Mozilla Win, but nothing works on Safari, or IE Mac or Mozilla Mac. All my browsers are at the latest versions. I've also been browsing alot of Flash sites that have include samples of the type of functionality im trying to reproduce, and they all seem to be non-functional on Mac as well. Is something amiss with Javascript to Flash interaction on Macs?
Yep. 'Liveconnect' for Macs is non-existent for Mac IE and most popular modern mac browsers. Yer out of luck.
Computer thez nohhh...
     
Fresh-Faced Recruit
Join Date: Jan 2003
Location: North Bergen,NJ
Status: Offline
Reply With Quote
Oct 24, 2003, 11:05 AM
 
man well that explains things alot, its amazing macromedia wouldnt put up a technote on this cnsidering its a fairly common practice. the id and liveconnect attributes are netscape specific tho... i would imagine IE for mac would ignore it entirely, but im not sure about how ie mac renders a page at all so i have no idea how it would interpret the javascript or the flash methods or even the name attribute in the object tag. This is all pretty frustrating. i suppose i have two alternatives... use html links to trigger an actionscript within one swf that loads the other movies as movieclips, or screw the html nav links entirely and make a flash nav bar instead, but that would make for a bigger flash movie and im already rather large as it is
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2