code beginner
04-25-2010, 12:16 AM
hello,
I discovered a secret: to have the swf flash stuff actually *work* in firefox, etc. you need to go to file>>publish in Flash.
So then flash generates a ton of HTML code (300 lines!).
This is insane.
So I dumped all of the <head> javascript code it generated into an external .js file and pointed to it instead.
It seems to be working fine. But I'm not sure if that's a "best practice" or not.
Any ideas on this?
I *tried* gutting a lot of the javscript, but it was amazing how poorly a lot of the browsers suddenly worked when I stripped the code. of course firefox ran fine, but the others...
so i have to keep this code there (it had perhaps 100% to do with exception handling. like "if it's IE 4.0 then do this, if its this other version, do this"). but i'm a big anti-code bloat person, so it looks like i can reach detente by putting it in an external .js file. i'm still not happy with the code required to appease outdated broswers. but i can tolerate an external .js file. so if anybody knows if the external .js file is how people get by with this, let me know.
I discovered a secret: to have the swf flash stuff actually *work* in firefox, etc. you need to go to file>>publish in Flash.
So then flash generates a ton of HTML code (300 lines!).
This is insane.
So I dumped all of the <head> javascript code it generated into an external .js file and pointed to it instead.
It seems to be working fine. But I'm not sure if that's a "best practice" or not.
Any ideas on this?
I *tried* gutting a lot of the javscript, but it was amazing how poorly a lot of the browsers suddenly worked when I stripped the code. of course firefox ran fine, but the others...
so i have to keep this code there (it had perhaps 100% to do with exception handling. like "if it's IE 4.0 then do this, if its this other version, do this"). but i'm a big anti-code bloat person, so it looks like i can reach detente by putting it in an external .js file. i'm still not happy with the code required to appease outdated broswers. but i can tolerate an external .js file. so if anybody knows if the external .js file is how people get by with this, let me know.