PDA

View Full Version : swf hates javascript?


Kimchee
12-27-2008, 10:06 AM
I am working in dreamweaver and made a template that uses swfs, so far everthing works fine, I then go to add unique swfs to editable regions of different pages the same way I did with the template (Insert-Media-swf) the problem though is it keeps gurgling out this error message: while executing objectTag in Flash.htm, a javascript error occured.

Does anyone know what is happening? Can anyone help?

Kimchee
12-28-2008, 08:29 AM
go it taken care of.:)

CyanBlue
12-28-2008, 08:38 AM
It'd be great if you could share what you have done to fix the project so that other people can get help from you as well... That's what this place is for... ;)

Kimchee
12-29-2008, 12:12 AM
Flash wasn't the issue, it is dreamweaver. When you make templates from dreamweaver it basically deletes the <head> information form the children pages and you need to physically go into the template and refill in the heading information so when you import a swf file there isn't a javascript error. :mad::)

CyanBlue
12-29-2008, 12:38 AM
Appreciate sharing the information... ;)

duralet
04-04-2009, 08:20 PM
I have the same problem but I don't know what I need to put in my header - can someone tell me what I have to do? I'm new to this :)

Thanks!

twurkt
04-07-2009, 02:19 AM
I second that; I'm also having the same problem. What and where do you place in the template to avoid this error? :confused:

dreambig207
04-15-2009, 04:28 PM
same problem here, any help would be greatly appreciated!

JazzKeyboardist
08-29-2010, 02:03 AM
Same problem here as well. When you speak of "refill in the heading information" into the template file from the child file, do you mean to merely add the content that is unique to the child file head section to the head section in the template? That would make sense since the head section in the child file is not editable. I imagine you would have to do that for every child page that had SWF content embedded. Hmmm, I think that's a bug that Adobe should fix.:o They should display a message when the SWF is placed in an editable region that informs you that the required JavaScript needs to be placed in the template file and offer to do that automatically. The problem here is that the javascript for the head section in the child file doesn't get generated because of the error -- catch 22! Isn't this what the swfobject.js file is for?