homepage Welcome to WebmasterWorld Guest from 184.72.72.182
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Browser never stops loading?
Flash IE load problem
Chrisssy




msg:3417582
 3:32 am on Aug 9, 2007 (gmt 0)

Hi,
I'm a total newbie here so please be kind...:)I know you've probably dealt with this several times but I couldn't find it in the topics list.
I've loaded a page with flash and have encountered the IE problem "click to activate". I did a little research and found a JavaScript that seemed to handle the issue but raised another issue of the browser never stops loading! I tried another script that supposedly convert the flash object to javascript but that didn't work. Can anyone point me in the direction of a previous thread on this or I'd love to hear from you if you have a solution.
Thanks heaps
Chrisssy

 

mediafrenzymusic




msg:3610907
 10:12 am on Mar 26, 2008 (gmt 0)

Hi Chrissy,

I have the same problem and I am still looking for an answer. I'll let you know if i find one!

rocknbil




msg:3614280
 5:57 pm on Mar 29, 2008 (gmt 0)

Welcome aboard mediafrenzymusic! I guess we missed Chrisssy, maybe she'll get this in auto notification.

I've loaded a page with flash and have encountered the IE problem "click to activate".

This has to do with a law suit Macromedia placed against MS for distribution of their products within the browser (EXTREMELY paraphrased, but something a lot like that.) Use the open source library SWFObject, it gets rid of this and provides a much better way of presenting Flash than either the antiquated embed-in-object or Satay methods. It will get rid of the line.

Short story, you put your "alternate" content in a div on the page. If Javascript is disabled or Flash is inoperable, the alternate content displays, which is good (search engines.) If JS and Flash are good to go, it writes the flash object to that div. Accessible and extensible, it works great (and is easy to implement.)

. . . but raised another issue of the browser never stops loading!

This will be one of two things. If the path to the Flash is incorrect, you won't get a "red x" like a picture. It won't time out. It will just keep waiting for the object to load.

The other is if the Flash object itself is waiting on data and the path to that data within Flash is incorrect, it will also just hang. These are the two I encounter every time I typo. :-) An example is loading a playlist from an XML file.

A good habit to form: always use full relative paths to your objects. This means you can place the file in **any** directory on your site. For example, if you have flash at

images/flash/my.swf

and you have three pages that reference it, one at root, one in products, and one in products/widgets

products.html
products/some-product.html
products/widgets/my-widget.html

Developers tend to overthink this, or work on their local computer and stick with it, and use this syntax for the three pages:

src="images/flash/my.swf" (products.html)
src="../images/flash/my.swf" (some-product.html)
src="../../images/flash/my.swf" (my-widget.html)

All three pages can access this object by beginning with the forward slash. This means "no matter where this page is, start looking for this object at root:"

src="/images/flash/my.swf"

The down side is when you work on pages locally, Windows and Mac don't know what to do with the beginning slash. This is most likely why the dot-syntax is used and left in pages.

Last note, be sure to do the same thing in any Javascript referencing the flash:

var logo = new SWFObject('\/images\/flash\/my.swf', 'logo-id', '97', '165', '6', '#000000');

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved