getTimer NOW()
Matching timings in Flash takes a while and lazy as I am adding StopWatch functions all over… well.
So I use this simple thing, click on the textfield to start counting, press again to get milliseconds copied to clipboard.
Matching timings in Flash takes a while and lazy as I am adding StopWatch functions all over… well.
So I use this simple thing, click on the textfield to start counting, press again to get milliseconds copied to clipboard.
Wanted to post some Social media links on a site that I’m building but couldn’t find any good summary information, well, so here we go.
Facebook
http://www.facebook.com/sharer.php?u=’+encodeURIComponent(u)+’&t=’+encodeURIComponent(t)
u = url to site
t = title of link
Delicious
“http://delicious.com/save?url=”+u+”&title=”+t;
u = url to site
t = title of link
m = metadata for link
MySpace
“http://www.myspace.com/Modules/PostTo/Pages/?u=”+u+”&sa=2&t=”+t+”&c=”
u = url to site
t = title of link
Digg
“http://digg.com/submit?url=”+u+”&title=”+t+”&bodytext=”;
u = url to site
t = title of link
Twitter
“http://twitter.com/home/?status=”+t+” “+u
u = url to site
t = title of link
Stumbleupon
“http://stumbleupon.com/submit?url=”+u+”&title=”+t
u = url to site
t = title of link
Createad a simple js file to use for html pages or why not Flash applications. Send the types; facebook,delicious,myspace,digg,twitter or stumbleupon.
socialShare(type, link, title);
function socialShare(type,link,title,meta) { var shareURL; var u = encodeURIComponent(link); var t = encodeURIComponent(title); var m = encodeURIComponent(meta); if(!m) m = t; var w = 626; var h = 436; switch(type) { case "facebook" : shareURL = "http://www.facebook.com/sharer.php?u="+u+"&t="+t; break; case "delicious" : shareURL = "http://delicious.com/save?url="+link+"&title="+title+"&q="+title+"&meta="+encodeURIComponent(m); break; case "myspace" : shareURL = "http://www.myspace.com/Modules/PostTo/Pages/?u="+link+"&sa=2&t="+title+"&c="; break; case "digg" : shareURL = "http://digg.com/submit?url="+link+"&title="+title+"&bodytext="; w = 730; h = 550; break; case "twitter" : w = 760; shareURL = "http://twitter.com/home/?status="+title+" "+link break; case "stumbleupon" : shareURL = "http://stumbleupon.com/submit?url="+link+"&title="+title break; } window.open(shareURL,"sharer","toolbar=0,status=0,scrollbars=yes,resizable=yes,width="+w+",height="+h);return false; }
At my company “Hello There” we are currently developing a really cool game that is built on the base of Papervision 3D 2.0 (Great White). We suddenly run into a really really annoying problem.
I could publish the Flash files without any complication but the other two team members couldn’t, and we have the same set of workstations. After a lot of searching it seems somehow that it’s a memory problem and some suggestions points to changing JAVA memory, well, we didn’t get that to work either so we took another solution.
By making the Papervision package to a SWC file it’s already compiled and takes less memory for Flash. If you have a bigger framework you should as well take your time to create a SWC package for it. The publish time will decrease and your will be working happily ever after =)
TIP: Use more SWC, will speed up your work & use less memory.
If you have Flex, here is an easy tutorial on how to create your SWC package.
1.) Create a “Flex Library Project”.
2.) Add your code that you want to compile.
3.) Right click on the project, Properties->Flex Builder Path
4.) Mark all the packages that you want to compile
5.) Finish, just refresh the project to make sure everything is compiled when you change anything. The SWC file is placed in the /bin folder. Ready to use for Flex & Flash.