Hey has there been anyone to get flash embed to work on nodes. I am unsuccessful no matter what I try. If you can make it work can you tell me what your steps were? I think I am missing something.

Comments

SunRhythms’s picture

I think I may have figured it out...
I was actually having problems with flash in the Firefox browser altogether,as well as, embedding in to drupal... So I did some poking around and found a solution to get the flash to work in Firefox and IE browsers again... It worked so I am assuming that what ever caused that lack of response from the browser is what was making my flash not show up in Drupal too. What I did was I used four js files (loading in this order, but also make sure you are running the latest jQuery, jQuery ui and jQuery Update on your Drupal 7 install). All of the files I put in my subtheme .info files as optional libraries and then enabled them under Appearance tab. The first js file, of coarse, is the swfobject that you can find any where. The second was a flash loader js script file. If you want to inspect that file you can view it here. The next file is normally used in the typical html document but I had it referenced to load as the node loads with the subtheme because I had issues in the past with dealing with scripts in the full html content authoring: They just wouldn't work no matter what I did. I will just call this file "flash reference". The last one isn't really important but you can inspect the js if you want its a js flash window resizer. It just makes it fluid width and height to fit snug with the div. After making sure these loaded I simply used an ID to activate the js and call the flash in place like this <div id="flashcontent"></div><div id="myFlash"></div>. I think this might be the best way for me because just using the object tag and calling the flash file never worked no matter how I wrote the code. It may be easier ways to do it for others, but no other way worked for me and I think I tried them all...*shrugs*....