Communicate Flash and JavaScript

April 14th, 2010

Try to export an random array (passing parameter) from Flash to JavaScript, Ritchie Macapinlac gave me some hints and showed me I can use getURL in AS2 – getURL(‘javascript:fromFlash()’). I ended up finding ExternalInterface and fscommand, at last I used fscommand, please check out the code in ActionScript 2.0 below:
var myArray = new Array ( “one”, “two”, “three” ) ;
var randomQuote = myArray [ (Math.floor ( Math.random() * 3 ) ) ] ;
fscommand ( “newQuote”, randomQuote ) ;

30 Design Blogs

April 8th, 2010

Creative Overflow showcase 30 Design Blogs that you may visit every day, being from informative articles, interviews, resources, tutorials and inspiration. It lists the links of the blog and also the RSS feed.
web designer depot

Flint Particle – Smoke

April 5th, 2010


Download file

Not Selling .cn Domain Names In China

April 2nd, 2010

Article on Ntt.cc
no cn domain
As the response to new rules, it seems the US web company godaddy, the world’s largest domain name registration company and name.com, that sell Internet addresses to Web sites, joined Google China boycott, began to stop selling .cn domains in China.

Christine Jones, executive vice president and general counsel of Go Daddy mentioned that the new Chinese policies required every website owner to submit photographs, business information and individually signed forms, as well as their physical address, email address and telephone numbers.

Google team with Adobe ?

April 1st, 2010

apple vs google

Article on Ntt.ccGoogle recently demonstrated a version of its YouTube website delivering video using HTML 5’s native support for publishing H.264 video without Flash, it seems Google teamed with Apple and Mozilla, became a member of Adobe Flash boycott. Google plans to bundle its Chrome browser and/or operating system with Adobe Systems’ Flash in a deeper partnership. In fact, Chrome already works with Flash, only the announcement may include future versions of the Chrome browser or may focus on Google’s Chrome operating system.

On Adobe’s earnings conference call last week, CEO Shantanu Narayen indicated that Google was a partner, he said: I think we’ve been fairly transparent about that issue, which is we are committed to bringing Flash to any platform on which there is a screen, and it has nothing to do with technology. I think you’ve seen demonstrations of Flash running on smart phones from multiple vendors; at Mobile World Congress including Android where Eric (Schmidt) showed it as part of his keynote.

Full Screen Flash Movie

March 31st, 2010

Run Flash movie full screen on a browser.
Check out the file, here’s the function in ActionScript:

import flash.display.StageDisplayState;
function goFullScreen():void {
   if ( stage.displayState == StageDisplayState.NORMAL ) {
      stage.displayState = StageDisplayState.FULL_SCREEN;
   } else {
      stage.displayState = StageDisplayState.NORMAL;
   }
}

Flint Particle – Sparkler

March 30th, 2010

Using Flint Particle to create a sparkler effect when mouse over to movie clip, pretty cool effect and it doesn’t take a long time to create it. Most of the time people find that Flint is hard to play with (compare to other particle system like Pulse, Stardust and Emitter) because you have to deal with all the parameters, but once you get used to it, there’s more possibility within that system. I’ve been working on the DD Blog banner almost a year ago and follow the Flint online tutorial to create the snow particle on my blog, now I try to do more experiment with the tool. I think it’s not that difficult and I do agreed…it takes time to learn and get used to the system.


Download file

Google Shuts its Chinese Search Engine

March 27th, 2010

Google has carried out it’s threat to shut down the Google.cn search engine following its censorship dispute with the Chinese Government. All users are now redirected to the Hong Kong-based Google.com.hk. Although Hong Kong is part of China, it retains a level of independence and its search engine delivers uncensored results.
Google’s chief legal officer, David Drummond, stated: “The Chinese Government has been crystal clear throughout our discussions that self-censorship is a non-negotiable legal requirement. We believe this approach of providing uncensored search in simplified Chinese from Google.com.hk is a sensible solution to the challenges we’ve faced. It is entirely legal.”

Read full article on Sitepoint

Sync Thunderbird Emails Across Multiple Computers

March 26th, 2010

Article on Make Use Of

“A desktop email client has several advantages over webmail. Unfortunately you don’t have access to your emails when you’re on a different computer. So if your favorite email client is Thunderbird and this is precisely the issue you need to solve, hang on! This article shows how you can sync Thunderbird emails across multiple computers and always have access to all of your emails no matter which computer you’re using.”

1. Switch from POP3 to IMAP
You can download all emails and keep copy on the server, since then all the files and folders will be sync.
imap

2. Move Profile To A Mobile Drive
Technically you take your entire Thunderbird profile with you and access it on any computer you use. Since an external source will have a different drive letter on different computers, we’re not going to move the profile. We will just tell Thunderbird the path of the profile using the -profile "path" command line argument. The command line argument looks like the following:
C:\Program Files\Mozilla Thunderbird\thunderbird.exe

3. Move Profile To A Network Drive
This last method to sync Thunderbird email requires that you have access to a shared / network drive. This is the most convenient method in the long run. However, moving your existing profile to that drive can be tricky.

Design Multilingual Website

March 11th, 2010

Article on Hongkiat

“The ‘look and feel‘ of a website is the cornerstone of any successful online venture. But the very nature of the internet means that the instant you upload your carefully constructed pages onto the World Wide Web, you’re global. Indeed, regardless of whether you intend to make buckets of cash from your website or simply build a strong international following online, there are numerous aspects of your site’s design you should consider from the start, to ensure it’s flexible and adaptable to international requirements.”
multilingual

Text
Computers deal with numbers, not letters. Traditionally, there were lots of encoding systems covering different languages, but Unicode changed all that. Unicode provides a unique number for every character, regardless of platform, program or language.

Color symbolism
Color is an important facet of any website. Your choice of colors will depend on whatever product or service you’re selling. However, your choice of colors should also reflect your target audience. To avoid having to overhaul your website when targeting a new market, carefully consider your color scheme from the start.

Content
Nobody will visit your website for the design alone. The online marketing mantra ‘content is king’ certainly rings true for most websites – you have to offer genuinely useful content for your domestic and international visitors.

Domains
It may be cheaper and more convenient to have a single domain for all your target countries, but from a Search Engine Optimization (SEO) perspective, there’s an argument that says it’s best to have a dedicated top-level domain (TLD) for each of your target countries.

Navigation
Navigation is a crucial aspect of the web design process. Consistency and ‘landmarking’ help web users find their way around your site and. Navigation should be intuitive.

Choose the right CMS for your website

March 10th, 2010

Article on ReEncoded

“Choosing a CMS (content management system) is an important first step to building your own website. The CMS provides a simpler way to manage website content without much prior knowledge of HTML, CSS, or other web programming languages. As using the web continues to grow quickly, new CMSs arrive to handle websites in different ways. Below are a few tips on picking the right CMS for your website.”

Choose the CMS that fits your websites purpose
WYSIWYG
Simple Backend Layout
Scalability
Design Template Control
Support

View chart on how some CMS handle features

PHP – Use output buffering

March 3rd, 2010

Output buffering is a simple way to greatly improve the performance and speed of your PHP script. Without output buffering, your script will show the HTML on the page as it’s processed – in pieces. Adding output buffering allows the PHP to store the HTML as a variable and send it to the browser in one chunk.

To enable output buffering, simply add ob_start ( ) like so at the top of the file right after the DOCTYPE like the following:
<?php ob_start ( ‘ ob_gzhandler ‘ ) ; ?>

Google Chrome 4 – Extension for Web Developers

February 17th, 2010

Since Google Chrome version 4 has been released on Jan25, more extension is being introduced to their users, which makes the browser becoming an useful tool for web development.

Speed Tracer – Speed Tracer is a tool to help you identify and fix performance problems in your web applications. It visualizes metrics that are taken from low level instrumentation points inside of the browser and analyzes them as your application runs. Speed Tracer is available as a Chrome extension and works on all platforms where extensions are currently supported (Windows and Linux).

Webpage Screenshot
Just one click and save a screenshot in 1 PNG image, user can resize the browser window to specific size before capturing.

Resolution Test
Resolution Test changes the size of the browser window for developers to preview their websites in different screen resolutions. It includes a list of commonly used resolutions as well as a custom option to input your own.

Evernote Web Clipper
Save all the interesting stuff you see while browsing the web. No more bookmarks, tabs, or open windows. See something you like, clip it and you’ll have it forever. Evernote saves the content of your clip along with a link back to the original page. Clip text, images, and links into your Evernote account. You can then use Evernote to access your clips from the desktop, phone or the web.
evernote web clipper

Evernote Search
Evernote Search can create To-do lists, Text and ink notes, take Snapshots and also Audio recordings. Evernote can even recognize text in images. It is incredible! Take a snapshot of something and send it into Evernote. We’ll make it searchable. This tool also available on Apple iPhone.

HTML Encoding

February 11th, 2010

While I am building the Voice Over Library the past few weeks I face a bunch of technical problems, I try to insert special character like quotation to the input text box and couldn’t be saved to the mySQL table because the single and double quotas basically break the PHP code. At the end I have to ask my favorite instructor Ritchie Macapinlac for help, he told me to do a Google search on HTML encoding and find the following solution.

$variable = htmlspecialchars ( $_POST [ " input_field " ], ENT_QUOTES );

20 Years of Adobe Photoshop

February 7th, 2010

Photoshop has been a part of every web designer’s life since they picked up their first mouse. On February 10th, 2010, Photoshop turns twenty. To mark this anniversary, Smashing Magazine have come up with an article that takes you through the evolution of Photoshop from its modest beginnings as a bundled program sold with scanners to its current version.

photoshop cs4

Store any file on Google Docs

January 25th, 2010

It will shortly be possible to store any type of file on Google Docs. Until now, the system only permitted compatible files such as HTML, PDF, Word, Excel, PowerPoint, OpenOffice, text and images. Users will be able to upload files under 250MB in size and will be given 1GB of free storage. Additional space is available for $0.25 per GB per year.
Although there are many online file storage systems, Google Doc’s and shared folders could be ideal for businesses collaborating on designs, specifications, presentations or other documents. Once complete, the files can be securely shared with clients and other authorized personnel. Perhaps the biggest advantage is that most office file types can be viewed and edited online. Users can access the files from most modern browsers; there’s no need to have a particular OS, a specific version of Microsoft Office or Adobe Reader installed.

Google unveils software that battles deforestation

January 4th, 2010

Article on Inhabitat
battle deforestation
Google.org worked with Greg Asner of the Carnegie Institution for Science and Carlos Souza of Imazon in order to fully develop the program. To evaluate deforestation in a certain area of the world, the software relies on past, present and future models of satellite image data. Under this program, richer countries would provide financial incentives for poorer nations to protect their forests. By protecting said forests, these nations would help eliminate deforestation, a major contributor of the world’s carbon emissions.

Wordpress plugins

December 27th, 2009

Article on Tripwire Magazine

“Wordpress is one of the most popular and beloved CMS’s and it is hardly surprising that there are thousands of plugins for it. While it is an exaggeration to say that all these plugins are great, many of them are. In that aspect, creating any Top 5, Top 10, or Top N lists of Wordpress plugins is a very difficult task because there is no way to include all great Wordpress plugins. Additionally, no matter how great a plugin is, different blogs and different webmasters have different needs and as a result, their personal Top 10s are different. Still, there are some plugins, which are more or less universal and can be used on any type of blog.”

All In One SEO Pack
Akismet
Adsense Injection
Advertising Manager
Most Popular Posts
Wordpress Backup
Sociable
External Links
NextGEN Gallery
Zemanta

Interview with Jack Doyle [ Founder of Greensock ]

December 21st, 2009

Article on Active Tuts+

Jack Doyle, founder of GreenSock and creator of TweenLite, spends some time talking to ActiveTuts+ about how he got started, the future of TweenLite/Max, and what he has learned about code optimization & licensing.

How did your past experience help you as a Flash Developer?
Why people choose TweenLite over the competition?
What is most proud features in version 11 of the Tween platform?
Do you feel that developers can make money by selling their code?
Do you have any tips for developer from what you have learned?
Can you talk a little about partnering up with Grant Skinner?
What would you consider your favorite part of ActionScript 3?

Wordpress 2.9

December 20th, 2009

Wordpress released the latest 2.9 version this past weekend, there are some cool features including Global undo/”trash” – if you accidentally delete a post or comment you can bring it back from the grave. Built-in image editor allows you to crop, edit, rotate, flip, and scale your images. Batch plugin update and compatibility checking, which means you can update 10 plugins at once, versus having to do multiple clicks for each one. Easier video embeds that allow you to just paste a URL on its own line and have it magically turn it into the proper embed code.

Note: Most of the plugin won’t be able to work in the latest version so make sure you don’t necessary need it before any update.