Select Page

Sound experiments – part 1

sound

Flash player 10 has many cool features including sound generation. My goal is to learn about these in greater detail. I have a project in mind that I’m going to be working towards and this is the first step in that direction.

Move your mouse from left to right to control the wavelength/pitch.

You will need Flash Player 10 for this to work. Check (and update) your player version here.

Dragging in Papervision 3D – example

UPDATE 29/09/09: This technique is possibly no longer valid with the latest version of Papervision3D.


Dragging in Papervision example

Here is a small example I put together quickly today to demonstrate how to drag in 3D using Papervision and the InteractiveUtils.getMapCoordAtPointDO3D function.
Since my last post on this in December last year, the Papervision getMapCoordAtPointDO3D method returned object’s x and y values seemed to have changed by a factor of 36.

UPDATE 29/09/09: This technique is possibly no longer valid with the latest version of Papervision3D.

private function _updateDrag(e:Event):void 
{
    // get the update position on the plane
    var obj:Object = InteractiveUtils.getMapCoordAtPointDO3D(_selectedPlane, 
                                        _selectedPlane.container.mouseX, 
                                        _selectedPlane.container.mouseY)
    // move the dragged plane to the new postion with the offset                
    _selectedPlane.x = _selectedPlane.x + obj.x * 36 - _drag_X_offset;
    _selectedPlane.y = _selectedPlane.y - obj.y * 36  + _drag_Y_offset;
}

Click here to see it in action.

The source files can be downloaded here.