Archive for August, 2008

Share your CleVR panoramas on Facebook and MySpace.

Sunday, August 31st, 2008

I’m pleased to announce that we’ve been approved by Facebook as a multimedia Share Partner. This means that you can share and display panoramas on Facebook. You can send them as messages and post them to your profile, and they will be displayed properly in the page. Previously you could only send links to the panorama page, but now they can be embedded properly. It’s dead easy to do: just click the Facebook button on any panorama page. There is also a MySpace button that lets you do similar, which has been working for a few weeks now.

Try it out with this one of Beijing Olympic Green, the Birds’ Nest Stadium and Water Cube.

Hiding Flex DataGrid columns using a context menu in AIR

Thursday, August 28th, 2008

A Flex/AIR project I’m working on at the moment uses a DataGrid to display a lot of data. There needs to be lots of columns, but this means that the view can be a bit cluttered. What I wanted was an easy for the user to show or hide columns as they prefer. In Cocoa on Mac OS X you can right-click (or ctrl-click) to show a context menu to do this, which seems to be a good way. I thought there may be a way of doing this in Flex, but there didn’t appear to be. It was quite simple to implement and could be useful in lots of cases, so I thought I’d share the code. I put this in a creationComplete handler.

I’ve attached it as a context menu on the DataGrid, but you could also attach it to the header or to a button. I hope it helpful to someone.

var context:NativeMenu = new NativeMenu();
for each (var col:DataGridColumn in myDataGrid.columns){
	var menuI:NativeMenuItem = new NativeMenuItem(col.headerText);
	menuI.checked = col.visible; = col;
context.addEventListener(Event.SELECT, function(e:Event):void {
	var t:NativeMenuItem = as NativeMenuItem;
	t.checked = !t.checked; = t.checked;
myDataGrid.contextMenu = context;

State change bug in Flex

Sunday, August 17th, 2008

I’ve been trying to track down the source of a bug in the Stitcher. The issue was in the welcome screen, which has states for logging-in, creating a new account etc. The problem was that whenever the login state had been active, moving to another state would throw an error, The supplied DisplayObject must be a child of the caller. After much trial and error I worked out that it was down to the ControlBar that held the login buttons. It seems that the issue is that when Flex adds a controlbar, it doesn’t actually add it as a child of the container in which you place it. This means that when you then try to remove it, it’s in the wrong place. It seems to be related to this bug, which was apparently fixed last year. I’m going to have to produce a minimal version and see if I need to submit a bug report and/or patch.

Anyway, after changing it to use an HBox it’s working. I’ve uploaded a new version of the CleVR Stitcher with that fix and a few others. You can install it from that box in the sidebar (unless you’re reading this via the feed).

Get satisfaction with CleVR

Thursday, August 14th, 2008

We’ve just launched a new customer support and discussion community, powered by Get Satisfaction. This should be a great way for us to answer users’ questions, as well as for users to ask each other. Hopefully it can also be used for discussions about panoramic photography in general. Head over to our support page for more details, or go straight to the Get Satisfaction community.

Panorama of badminton at Beijing Olympics

Thursday, August 14th, 2008

Just a quick one. I don’t usually post regular panoramas to this blog, but I just saw this one which is particularly topical. It’s of the Olympic badminton quarter-final in Beijing. Pano below the cut.