Sunday, March 27, 2011

Flash ActionScript 3 Camera tutorial

Click video to see Video, click tiny up arrow in control bar to return to menu.

Saturday, March 26, 2011

Update my online music site

Add more contents in my online music site:

Embed major music sites and best music video search engine
  1. Hot Artist from TRUVEO
  2. Youtube top music videos
  3. Yahoo top music video Rss
  4. Yahoo featured video Rss
  5. Pop music in metacafe
  6. To African Music Videos
  7. My Music Playlist

For Chinese:
  1. Chinese Flash Music Videos
  2. Search Chinese Music Videos

Tuesday, March 22, 2011

Javascript: popup a window when clicking a link

<script language="javascript" type="text/javascript">
function popitup(url) {,'name','height=360,width=480');
    if (window.focus) {newwindow.focus()}
    return false;

// -->
<a href="" onclick="return popitup('')"> popup Bad Romance</a>

Result, click the following link to popup a youtube video.

popup Bad Romance
 You can resize the window to the size you want.

swfobject and embed code

SWFObject documentation can be found:

SWFObject 2.2 source code can be downloaded from:

The embed code can be generated from:

The old code for SWFObject 1.5 can be obtained from:

HTML: set your website default language

For example, you want your website automatically displays Chinese.
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
header('Content-Type: text/html; charset=gb2312');
gb2312 is simplified Chinese. default is UTF-8 (Unicode character)

Monday, March 21, 2011

Flash Online Global Privacy Settings Check Panel

The application running in Adobe Flash Player  requested access to the camera and/or microphone available on your computer as allow and deny box pop-up below:

Use the link below to reset the privacy settings in Flash Player:
The link:

Wednesday, March 16, 2011

How To Create YouTube Playlists And Get Embed Code ?

If you plan to embed multiple videos from youtube, playlist is a good choice.
1) Login your youtube account.
2) Add videos in your playlist.
3) Click share and get embed code for your playlist.
Detail: go to, click one of your playlist in left menu. Then you can see the share button.
4) If you have playlist ID for other people's playlist, you can embed it in your blog according to:
5) below is the video for
"How To Create YouTube Playlists And Get Embed Code ?"

6) Below is the playlist I created:

Monday, March 14, 2011

Install network printer in your laptop or desktop

I have a laptop, window 7. Below is the step to use department printers.
1) Connect to network.
2) Start->Device and printer-> Add a printer-> Add a network, wireless, bluetooth printer
3) The computer will find the printers in your network, select a printer you want to add
4) Click next
5) Select Manufacturer and printer type (look at real printer to get this information)
6)Next and finish.

Wednesday, March 9, 2011

Free photo editing software - PhotoScrape

Photoscape is a fun and easy photo editing software that enables you to fix and enhance photos. Inside, there are a lot of icons. You can also use it for animated gif. It is free. You can download it from:

Free Logo Maker website:

I used it to make a logo:

Tuesday, March 8, 2011

Create an online music site

Using music template in Google site, create a music website in 5 minutes as

I will modify it later.

Monday, March 7, 2011

How to import and export ssl keys/certificates in different computers?

Step 1: in computer 1:
Firefox: Select "Tools" ->"Options"-> "Advanced" -> "View Certificates", choose the "Your Certificates" tab and locate your certificate from the list.
Export the certificate.
Step 2: in Computer 2:
The same process as 1 except the last step to import the certificate file created in step 1

Step 1 can also be used to backup your certificate keys.

Sunday, March 6, 2011

Websites using Flash media server

You can create photo books, cards etc using flash. There are plenty of themes to select. Below is the sample photo I created. When you sign up or use your facebook account, you get100 credits. If you don't want to print, you basically have your account for free.

2. Example 2  use Flash Media Server:

Sending video messages with Eyejot is as easy as sending email. There is no software to download or install. Just login to your account, record or upload your video, and send! Join Eyejot for free.

Example 3

Live multi-user voice/video chat, webchat and online dating.

Thursday, March 3, 2011

HTML, table inside table

Example code:
<div id="Layer1" style="text-align:center;width:800px;height:500px">
<table width="700px" border="1">
<td width="60%">
<iframe height="600px" width="100%" name="innerframe9" src=""></iframe>
<td width="40%">
<table width="100%" height="500px" border="1"><tr>
<td><a target="innerframe9"  href="">&#23391;&#23110;&#30340;&#30871;</a> </td>
<td><a target="innerframe9"  href="">&#24688;&#24688;&#65292;QQ&#30340;&#29233;</a> </td>

Tuesday, March 1, 2011

Copy a table/database from old table/database in MySQL

Copy a table from old table in MySQL
1) First:
creates the new table mytable_new by duplicating the structure of the existing table
in a database such as mydb:
CREATE TABLE mytable_new LIKE  mydb.mytable;

2) Copy the data from old to new.
INSERT mytable_new SELECT * FROM  mydb.mytable;

Copy a database from old database in MySQL
The reference using command line can be found:
I used MySQL Query Browser

1) Go to Tools ->MySQL Administrator
2) Click backup->New Poject->Save Project->Excute Backup now
3) Click Restore->Open backup file (file from step 2), choose another schema
click "start restore"
4) Click user under user account under MySQL Administrator, assign (add) privileges of new database for this user