Tag Archives: flash

[HOWTO] Enable cross-domain upload with uploadify jQuery plugin

I have used uploadify v2.1.4 in one of my client’s website. According to the requirements, a form in a website had to submit data to another website. The form also contained file uploads for which uploadify was being used. But uploadify does not support uploading from another site as it uses relative url. Also, flash does not support sending/receiving data to/from another site by default for security reasons.

The solution to the second problem is easy. All that needs to be done is placing a crossdomain.xml file in the root of the server where file is to be uploaded with allowed list of sites that can send/receive data from that site using flash. Here is an example of crossdomain.xml file which allows all the sites:







To solve the second server however, the core uploadify file must be edited. For version 2.1.4, the file is jquery.uploadify.v2.1.4.js. Search for “pathName” (without quotes) and find the following block of codes:

				var pagePath = location.pathname;
				pagePath = pagePath.split('/');
				pagePath.pop();
				pagePath = pagePath.join('/') + '/';
				var data = {};
				data.uploadifyID = settings.id;
				data.pagepath = pagePath;

Replace that with:

//				var pagePath = location.pathname;
//				pagePath = pagePath.split('/');
//				pagePath.pop();
//				pagePath = pagePath.join('/') + '/';
				var data = {};
				data.uploadifyID = settings.id;
				data.pagepath = "http://yourwebsite.here/path/to/folder/above/uploadify/folder";

In the above code, replace “http://yourwebsite.here/path/to/folder/above/uploadify/folder” with full URL of your site where you have uploadify folder. For instance, if you have an application in http://www.yoursite.com/myapp and uploadify directory inside myapp, i.e. http://www.yoursite.com/myapp/uploadify, you should enter pagepath value as: “http://www.yoursite.com/myapp”. Also, make sure you include this edited javascript in the main page instead of the “min” version. Then, use the uploadify swf in uploadify directory in the new server.

Hope this helps.

[SOLVED] Adobe FlashPlugin Problem in Ubuntu 10.04 Lucid Lynx 64bit

[ad#ad-1]I had posted about flash plugin controls not working in Ubuntu 9.10 Karmic Koala 64 bit here. I had moved to Ubuntu 32 bit for quite sometime and recently made a move back to Ubuntu 64 bit. I found the same problem with flash plugin controls in Ubuntu 64 bit. Sometimes it works, and sometimes it doesn’t. I haven’t found any specific patterns to when it does and when it doesn’t. If someone has, please do share.

In my previous post regarding the issue, I had suggested the installation of Adobe flash player 64 bit version from Adobe Labs website. The solution worked fine for me and it seems for most of the others, but the plugin was experimental and when someone needed to update, it was not available via repositories. It has been provided in a launchpad ppa repository currently which can be added by adding ppa:sevenmachines/ppa to Repositories in Synaptic, but it seems it is not updated as of now and the latest version available in the ppa is 10.0.45.2 while Adobe has already released version 10.1rc4. But since the latest version is not recognized by youtube, I think we should stay with the version in the repository.

Simply open up synaptic and navigate to Settings>Repositories>Other Software and click on Add. In the apt-line, enter ppa:sevenmachines/flash and close it. Then Click on the Reload button. Now, search for flashplugin64-installer, mark it for installation and click on apply.

When done, restart firefox and flash should run fine.

Please share your flash player 10 experience in Linux.

[SOLVED] Problem Playing Media on Firefox on Ubuntu Linux

[ad#ad-1]

I am using Ubuntu 9.10 Karmic Koala on my Desktop with Firefox 3.5 as my primary browser. Recently I was facing problems playing online media (streaming mp3s, non-flash) including FM from my own page on Firefox. Continue reading [SOLVED] Problem Playing Media on Firefox on Ubuntu Linux

[SOLVED]: flashplugin Controls not Working in Ubuntu 9.10 Karmic Koala

[ad#ad-1]

Please find the latest post here.

UPDATE Nov 2, 2009: If you want to make flash work normal in 64-bit Ubuntu 9.10 Karmic Koala, the following commands shall help. So start your terminal and get going:

sudo apt-get remove flashplugin-installer flashplugin-nonfree swdec-mozilla mozilla-plugin-gnash
cd /tmp
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
tar xf libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz
sudo mv libflashplayer.so /usr/lib/mozilla/plugins/

and restart firefox. If this does not work or you want to keep track of what has happened here, read on.

UPDATE Nov 2, 2009: The problem persisted for me even after I upgraded to the latest version. Using 64-bit flash plugin from Adobe Labs helps for me now. For this you will need to download the latest plugin from http://labs.adobe.com/downloads/flashplayer10.html and extract it to /home/YOUR_USER_NAME/.mozilla/plugins or /usr/lib/mozilla/plugins. If you intend to extract it to /usr/lib/mozilla/plugins then you will need root privileges. One way of getting root privileges is launching nautilus as “gksu nautilus /usr/lib/mozilla/plugins” in the Run Application dialog (Alt+F2). Then copy the extracted libflashplayer.so in that directory and restart Firefox.

UPDATE: I had problems with swfdec-gnome also. When I used to close any tabs with active flash content, firefox would simply crash. I removed it and installed flashplugin via flashplug-installer (in synaptic) and now it is working fine. I disabled some plugins and maybe thats what worked. Not sure. Anyone came up with whats actually happening?

ORIGINAL POST 10 Aug, 2009: I recently installed Karmic Koala (Ubuntu 9.10) alpha 4 amd64 version and have been facing problem with flashplugin for Firefox 3.5. The flashplugin is a large download (as it depends on 32 bit libraries.. they have 32 bit version of the plugin now in amd64 too) and does not work well with YouTube videos, the flash applications do not respond user clicks. I have removed flashplugin via Synaptic Package Manager and installed swfdec-mozilla instead (firefox restart required after you do). This one has worked fine for me till now.

Hope this was helpful. Hope this is solved in the stable release.

Thanks to “Fatal Toenail Infection”.

[HOWTO]Install Google Chrome in your Ubuntu 9.04 Jaunty Jackalope and Enable Flash on It

[ad#ad-1]I have Ubuntu 9.04 Jaunty Jackalope 64bit and wanted to give Google Chrome Browser a try to see what it feels like to be running Google Chrome OS (which will be based on Linux and run Google  Chrome Browser).

UPDATE Nov 21: Just adding the repository:
deb http://dl.google.com/linux/deb/ stable main
will let you install Google Chrome right from Synaptic.

UPDATE: Now I have Ubuntu Karmic Koala (9.10) alpha 4 and same works for Karmic too. Continue reading [HOWTO]Install Google Chrome in your Ubuntu 9.04 Jaunty Jackalope and Enable Flash on It