i’ve tried to get SWFObject register a static flash object, but i wont show it. I know visibility is set to hidden, and that is why, but why does it do that?!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your example uses JavaScript to embed the SWF, it isn’t using SWFObject’s static approach, so it appears your question is no longer valid.
BTW, you can simplify your code by eliminating the redundant hasFlashPlayerVersion check and by using SWFObject’s callback function.
Current:
.
Simplified:
.
SWFObject’s
swfobject.embedSWFmethod includes a domready check, so you don’t need to use addLoadEvent. It also includes a check for a specified version of Flash Player, so you don’t need to wrap your code in theswfobject.hasFlashPlayerVersionblock.