Advertisement

05.13.2008 at 07:46AM PDT, ID: 23397992 | Points: 500
[x]
Attachment Details

Spry an Flash work locally but not uploaded

Asked by MarleneAyers in Macromedia Flash, Web Languages/Standards, JavaScript

I am using the Spry Accordion Widget on this page. It seems to be working properly both locally and online. The probelm is that when a user clicks on the event tab  (Fine Arts for example) the images on top should be replaced with a new set of images. This does work locally but not online. Here is some additional information. I have use SWFObject 2.0 to embed Flash file. I know this is working correctly because the first image loads). I am using the ExternalInterface class to communicate between my javascript and my Actionscript.I have set scriptaccess to "always. I have made sure that I uploaded the exact same file structure as is locally. I checked this twice. I have attached the relavant javascript and flash code below.

http://www.alexisjean.com/prelaunch/events.phpStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
JAVASCRIPT CODE
<script type="text/javascript" src="scripts/swfobject.js"></script>
<script type="text/javascript">
			var flashvars = {};
			var params = {};
			params.allowscriptaccess = "always";
			var attributes = {};
			allowscriptaccess: "always",
			swfobject.embedSWF("flash/eventsContainer.swf", "eventsContainer", "780", "190", "8.0.0", false, flashvars, params, attributes);
		</script>
<script>
		function showEventSlideshow (eventName) {
		eventsContainer.showEvent(eventName);
				}
		</script>
 
FLASH CODE
import flash.external.*;
function showEvent(eventName) {
 
	loadMovie("flash/"+eventName+"Event.swf", placeHolder);
}
 
ExternalInterface.addCallback("showEvent", this.placeHolder, showEvent);
[+][-]05.13.2008 at 08:11PM PDT, ID: 21560976

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 11:24PM PDT, ID: 21561642

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628