SWFObject problem
- Started
- Last post
- 8 Responses
- CyBrain
I'm pretty new to this, but I can't get SWFObject to work with Flash that will resize to fill a browser.
Here is my flash embedded in html: http://www.talesfromthehead.com/…
The Flash is 550x400. You can see the flash behaving properly if you load it directly.
http://www.talesfromthehead.com/…In my html, if I change the width and height to 550x400 instead of 100%x100%, the movie loads.
I'm publishing Flash 9/AS3 and using the latest version of swfobject.js
Here is my Flash document class: http://pastebin.com/m1ae28e7
(I don't think my issue is with Flash at all.)And here is my html http://pastebin.com/f6ba58059
Browsers affected by this are FF Mac
Opera on Mac works, but forces the height to 150.
On WindowsXP FF fails and IE gives me the Get Flash button.
- CyBrain0
I changed my html, so just check the source code.
- acescence0
not sure what's up. i always use the dynamic method with swfobject, it's simpler, though it does not validate.
- CyBrain0
This is what that dreadful SWF Object Generator had to say about both methods.
Static publishing
Description
Embed Flash content and alternative content using standards compliant markup, and use unobtrusive JavaScript to resolve the issues that markup alone cannot solve.
Pros
The embedding of Flash content does not rely on JavaScript and the actual authoring of standards compliant markup is promoted.
Cons
Does not solve 'click-to-activate' mechanisms in Internet Explorer 6+ and Opera 9+ and is harder to author (without using this generator).
Dynamic publishing
Description
Create alternative content using standards compliant markup and embed Flash content with unobtrusive JavaScript.
Pros
Avoids 'click-to-activate' mechanisms in Internet Explorer 6+ and Opera 9+ and is easy to author (even without using this generator).
Cons
The embedding of Flash content relies on JavaScript, so if you have the Flash plug-in installed, but have JavaScript disabled or use a browser that doesn't support JavaScript, you will not be able to see your Flash content, however you will see alternative content instead. Flash content will also not be shown on a device like Sony PSP, which has very poor JavaScript support, and automated tools like RSS readers are not able to pick up Flash content.
- kumori040
I've run into this problem before, but don't know how to fix it if you're publishing static. If you publish it dynamically, I might remember what to do to get FF to display it.
- CyBrain0
I just tried it with dynamic publishing.
http://talesfromthehead.com/rand…Now, it's fine in Windows XP IE and Mac Safari, but still nothing with FF on mac or pc.
Just one question: Can use SWFAddress along with SWFObject with dynamic publishing?
- PonyBoy0
i believe i got this working... view source and steal it if you like... it uses swfAddress and SWFObject (latest versions)... is 100% x 100%... seems to work across the board
- PonyBoy0
just a note on using swfaddress and swfobject together... make sure you call swfobject first (this may be fixed now... but was a bug a few months back)...
<script type = "text/javascript" src= "js/swfobject.js" > < /script>
<script type = "text/javascript" src= "js/swfAddress.js" > < /script>
- CyBrain0
Hey!, that did the trick. I don't have any swfAddress in my demo, but it all works like you said in FF and everywhere. Thanks!!
This page is also a good test for what to design for at different screen resolutions/browsers/OS.
- "<title> stolen code from Reiser Photograrphy < /title>"
hahaha! glad it works! :)PonyBoy
- "<title> stolen code from Reiser Photograrphy < /title>"