PDA

View Full Version : Why no sound?



bennymartensson
July 6th, 2005, 02:31 PM
I load my swf into _level40 of my master. The video shows ok but theres no sound. What obvious am I missing here?
---
var nc:NetConnection = new NetConnection ();
nc.connect (null);

var ns:NetStream = new NetStream (nc);
myVideo.attachVideo (ns);

ns.play ("storyboards/images/01/Channel4Pylons.flv");

_root.createEmptyMovieClip ("theSound", _root.getNextHighestDepth () );
theSound.attachAudio (ns);
var sound:Sound = new Sound (theSound);
sound.setVolume (100);
---

nathan99
July 7th, 2005, 03:37 AM
i personally would use


var theSound:Sound = new Sound ();
theSound.attachAudio (ns);
theSound.setVolume (100);