Skip to main content
Inspiring
August 8, 2007
Question

Flash and Javascript

  • August 8, 2007
  • 4 replies
  • 495 views
I have a function in my html that I am returning a url back to flash for a reference to a jpeg. However IE doesn't seem to send that variable back to flash or Flash be able to grab that variable from IE. Safari & Firefox work fine. I need some help figuring this out.



This topic has been closed for replies.

4 replies

Inspiring
August 9, 2007
Perhaps the dreamweaver and flash versions are slightly different.
Have you considered using SWFObject instead? I personally prefer it and its even (apparently) used by Adobe on some of their own sites.

http://blog.deconcept.com/swfobject/

I also remember reading about a dreamweaver extension a couple of weeks back that someone had made for SWFObject, but I haven't tried it:

http://www.metah.ch/blog/2007/07/25/dreamweaver-extension-%E2%80%93-swfobject-insertions/
Inspiring
August 8, 2007
Hmmm ok. Well it doesn't look like the same problem I had.

Sorry I took a look but can't figure it out either.
arandlettAuthor
Inspiring
August 9, 2007
Well I figured out the problem and I don't know why this caused it. I exported out the flash and also the html from Flash. I copied the javascript from that html and replaced it with the html Dreamweaver entered in when I imported the flash element in dreamweaver. Any idea why that would be?
Inspiring
August 8, 2007
My guess is that it may be something to do with the embedding method.

One useful tool is the IE Developer toolbar which gives you the ability to inspect the current state of the DOM (not quite as powerful as firebug in firefox, but still quite useful). I had a situation just recently where the OBJECT tag's id attribute was undefined and it was causing problems similar to what you describe.

arandlettAuthor
Inspiring
August 8, 2007
I checked the Tag id's and all are defined. This is the weirdest thing because I used this method on another site and it works fine in IE but on this site it doesn't. In Addition there is no noticable difference in the html at all.

Here are the page that is not working. Link
Here is the page on that site that does work in IE. Flash call in this site is exactly the same. Linke
Inspiring
August 8, 2007
arandlettAuthor
Inspiring
August 8, 2007
I went through that artical and have applied everything he suggested and still cant get ie to send a variable back. Weird thing is it works in ie on another project I have done.

I noticed I get one error in IE , however it says it is in line one on Char 81. That line is the xhtml transitional declaration. Would that have anything to do with it?

There error says: Object doesn't support this property or method.

Here is the line: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">