We help IT Professionals succeed at work.

Help embedding flash swf

255 Views
Last Modified: 2010-04-09
I'm used to embedding swf's in html files using this code generator: http://devel.teratechnologies.net/swfhelp/index.php

However, I have a site which uses iframes buried within an index.html file. I've used the code generator above, including the code addition within the <head></head> portion, but the swf is not embedded the way it should be. The "Click to activate this control" border still appears around the swf.

So, my question is this: is there something different that I need to do since this swf is located within an iframe? If so, what do I need to do?
Comment
Watch Question

Commented:
'Click to activate' is a VERY annoying, but potentially helpful idea introduced by Microsoft in Internet Explorer. I have looked around for a long time, and there is nothing you can really do to sort the issue. I can pretty much guarantee that it will work fine in Firefox, but IE has this extra security measure. If the web desiger could overcome the activation border, then the idea by Microsoft would be useless.

The only thing that can be done to resolve the issue is to trawl through your Internet Explorer settings, but this is only a local fix, and will not stop the same thing coming up on other's computer screens if they are using Internet Explorer.
Don't talk to me.
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
jason1178,
     So it should work the same as embedding in a non-iframe document? The called document is under my control.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Yes, it should.  All of the javascript needs to be in the called document and there should be no problem.

If there is anything that is <head> specific, you may have to place it in the body but your preferred method appears to be pretty vanilla.

Author

Commented:
I've used the same method as I always use, and the swf is still not embedded properly.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Let me see the code on the two pages

Author

Commented:
Jason,
     I won't be able to post the code until later evening. Please stay posted. Thanks for your help.

Author

Commented:
Jason,
    Here is a link to the html file containing the iframe, which in turn contains the swf. Click on Gallery when the page loads. Thanks.

www.mwebdev.com/par
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Gallery application is loading the exact same for me in FF 2 and IE 7.  I see a flash movie that has a dark grey control bar at the top and two columns / 4 rows of blue on darker blue.

Which browser is giving you the problem?

Author

Commented:
I'm using IE7. Don't you see the border around the swf that says, "Click to activate and use this control?" That's what I'm getting, as opposed to the header, which is embedded properly.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Something else to consider, Issac.  

You may want to use a different wrapper script...what happens when you use the include method that is built into Dreamweaver?

Author

Commented:
That's weird. I just tried it on another computer and I got the same "click here to activate..." frame. Im not familiar with the include method that's built into DW. Please explain. Thanks.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
In DW 8.02 and CS3, if you drag and drop a swf into a page, the wrapper script will automatically be generated.  What version of DW are you using?

Author

Commented:
I'm using DW8. So how does this work with the embed code? Will I need to still use the swfobject embed method? Excuse my ignorance. Thanks Jason.

Author

Commented:
Jason,
    I do use the DW menu to insert the swf file (Insert >>> Media >>> Flash). Wouldn't this do the same as dragging and dropping? Please see my last post. Thanks.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Hi isaac,

If you are using 8, make sure you patched to 8.02.  That will get the Active Content fix in place.

You will not need to use the swfobject fix.  DW will add it's own

Inserting from the menu and dragging and dropping are equivalent
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Here's the Adobe documentation on this:

http://www.adobe.com/devnet/activecontent/
Forced accept.

Computer101
EE Admin

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.