Fun at work!

Archive for June, 2013

Updating the Adobe playerglobal.swc

When I was building the red5sip package on FlashBuilder 4.6, I got the following errors:

1046: Type was not found or was not a compile-time constant: MicrophoneEnhancedOptions. PhoneCanvas.mxml  /red5sip/src    line 158    Flex Problem 
1061: Call to a possibly undefined method getEnhancedMicrophone through a reference with static type Class. PhoneCanvas.mxml    /red5sip/src    line 157    Flex Problem 
1119: Access of possibly undefined property codec through a reference with static type    PhoneCanvas.mxml    /red5sip/src    line 146    Flex Problem 
1120: Access of undefined property MicrophoneEnhancedMode. PhoneCanvas.mxml /red5sip/src    line 159    Flex Problem 1180: Call to a possibly undefined method MicrophoneEnhancedOptions.    PhoneCanvas.mxml    /red5sip/src    line 158    Flex Problem


To solve the problem, the latest version of “playerglobal.swc” must be used. Here are the steps to do this:

1. Download the latest version of “playerglobal.swc” from Adobe here. The latest version as of this writing is “playerglobal11_7.swc”.

2. Create a folder using the version number under “[Flex-SDK-Home]\frameworks\libs\player\[version].” Here version should  be “11”.

3. Copy the file to this folder, and change the filename to “playerglobal.swc”.

4. On the Flash Builder, go to “Project” menu, then open up “Properties”. On the left pane, select “Flex Compiler”. On the right side, you can find “Adobe Flash Player options”. Select “Use a specific version” and input the version of latest  “playerglobal.swc”. Click “Apply”, then “OK”.

5. Now clean and build the project. Done.

How to install updatedb and locate in CentOS?

# yum -y install mlocate

How to tar extract to a different folder?

Use the command below to extract a compressed tar package to a different folder. Make sure that the folder exists, else error occurs.

# tar xzvf /path-to-file/package.tar.gz -C /path-to-folder/temp

How to change root@localhost to root@domain in CentOS?

1. Edit the file /etc/sysconfig/network and change:




2. Reboot the machine to have the changes take effect.

How to add older Flex SDKs to Flash Builder 4.6?

Steps in adding older Flex SDK to Flash Builder 4.6.

1. Download the Flex SDK from here.

2. Extract the SDK zip package to the Adobe Flash Builder SDKs folder. Conventionally, it is located in C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\ for Windows.

3. On the FB 4.6 IDE, go to “Windows” and open up “Preferences”. On the left pane, expand the “Flash Builder” menu, and select “Installed Flex SDKs”. Now on the right, click “Add” and browse for the SDK folder you copied in step 3. A name for this SDK will be automatically displayed.

4. Now you should have new SDK listed as Installed Flex SDKs. Check the newly added SDK and click Apply.

5. Done.

Command line error: “ssh: command not found”

I just installed CentOS 6.4 and enabled SSH, HTTP and HTTPS on the firewall configuration required for my server application. When I used ssh to connect to another machine, I got this command line error “ssh: command not found”. I got this error because I enabled SSH service as ssh server daemon only, and I don’t have ssh client running.

To install sshd server and client:

yum -y install openssh-server openssh-clients

Check out:

How to jump to a line number in vi?

In command mode, use the following:


Tag Cloud