Sie sind nicht angemeldet.

1

Sonntag, 27. Mai 2012, 18:09

Zoom in audio

Just in case someone looking for answer to change volume while zooming in/out:



stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);

function mouseWheelHandler(event:MouseEvent):void {
trace("mouseWheelHandler: " + event.delta);
//increase volumen when zooming

trace("actual audio: mysound0 );
trace("actual volume is " + myVol);
if (event.delta > 0)
{
myVol=myVol + 1;
audiopano.set("plugin[mysound0]volume",myVol/10);
}else{
myVol=myVol - 1;
audiopano.set("plugin[mysound0].volume",myVol/10);

}

}

2

Montag, 28. Mai 2012, 20:09

OK, I went a bit further:

http://www.torrejon.co.uk/stream.asp give a response from a web database with audio streams and location within the movie (or picture but in my case I want for movies)

Then my plugin parse it and embed the audio into the video so at different locations there are different live streams (if instead of http:// there is nothing then is considered a local file on local server)

User can turn the volume up and down with the mouse wheel.

And the result is....

http://www.torrejon.co.uk/pano.html



(Sorry I borrowed the video from krpano)

At some point I will produce a public plugin. Let me know if somethiong doesn't work (still I have to polish it), such as the mouse wheel goes backward after reaching the maximum.