Flash & Safari woes..
Posted by mkhairul - April 14, 2007 at 02:04:45 am -Categories: blog
Yeah, new workplace. Nice, cozy office, renovation still going on. The work is quite challenging because I'm not familiar with the plugins being used. And code generated by the plugins is a mess. Lol.
So anyway, yesterday I tried to compose a video by applying a few effects in After Effects. Doesn't work for some reason beyond my understanding(at the moment, too tired from work). Today, it works like a charm, smooth sailing. Weeee
Other than that, I've been trying to figure out why the hell is my flash are not appearing on Safari (Mac). I tried downloading a 3GB image of Mac OS X and in the end the file is corrupted. I've wasted 2 days on this. Damn. I decided to ask a friend to test it on his Mac, I tried to be independent, and it cost me 2 days, now its time to be dependent on others. hehe. I asked if any one of the flash loads. One loads. huh?
So I looked at the code of the one that loads and behold! Safari doesn't likes param, object and related to it. So, I read up on SWFObject, and it loads. Finally! But then again, the thumbnails does not loads. There must be some param thats missing.
Then I remembered that the actionscript specifies a domain and I specified it as http://mkhairul.com. When I use that domain name it loads fine but when I use http://www.mkhairul.com it doesnt works. The value in the address bar and the value in the actionscript must be the same.
I searched for the passing variable how to, implement it using this php line and SWFObject method,
and modified the variable declaration in actionscript.
-
var domain:String = (domain_name == undefined) ? "http://www.mkhairul.com" : domain_name;
Yeah, thats about it, and it works! BRING IT ON!
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
