[Xerte] AS Sound object

Dave Burnett d_b_burnett at hotmail.com
Fri Dec 10 10:50:13 GMT 2010




Not sure what I'm futzing up here.
When I debug, the onSoundComplete event is firing even before I invoke the start()


<scr>
nativeSound = new Sound();
nativeSound.loadSound('blah', engine), false);
nativeSound.onSoundComplete = eventHandler();
</scr>

next calc

<scr>
nativeSound.start();
</scr>









From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 10 Dec 2010 09:12:35 +0000
Subject: RE: [Xerte] AS Sound object



Two scripts: first one isFunc = 1 named ‘eventHandler’: debug(“something happened”); Second script:mySound = new Sound();mySound.loadSound(FileLocation + 'flowery.mp3', true);mySound.onLoad = eventHandler();  From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 09 December 2010 19:09
To: Xerte list
Subject: [Xerte] AS Sound object 

I'm having issues looping short rapid sounds using the Xerte Sound icon.

Thought I'd give the native AS one a whirl:

mySound = new Sound();
mySound.loadSound('http://www.blablah.com/daves.mp3', false);

So how do I trap events from this thing?
Specifying mySound and onLoad in an event trap does nada.

Dave 


This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101210/161f40cc/attachment-0001.html


More information about the Xerte mailing list