0

follow up: while I had already been using swfobject with static publishing, dynamic publishing solved my problem. Thanks for the help.

oops! I just deleted the original post.

2 Answers 2

3

Why don't you use SWFObject? It's much more robust than document.write and more flexible.

Just go for 'dynamic publishing' and SWFObject will do everything you need for you.

Besides, document.write is evil.

Sign up to request clarification or add additional context in comments.

1 Comment

okay, it is evil. thanks for the heads up. I have a situation where the nested conditional statements do not work, so i'm trying everything. I can load the flash player for either scenario separately, but when i try to use nested and/or conditional it doesn't work for both cases. it's my understanding that with SWFObject, the nested conditional statement is used correct?
0

I agree with strah that SWFObject is the way to go, but if you still want to insert HTML in a certain place you can use a div:

<div id="Flash"></div>

Then use the following javascript:

document.getElementById("Flash").innerHTML = "flashStuff";

Also, I would like to point out that the last half of the objects are the same, so you could use the if just for the first part to save space.

1 Comment

thanks for the answer. I'm reworking everything with SWFobject using dynamic publishing so hopefully it will all work out and i'll be better for the experience of having thought of trying it this way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.