[Xerte] Re: SWF Sound Problem

Dave Burnett d_b_burnett at hotmail.com
Tue Jul 12 20:15:21 BST 2011



var Sound1:Sound = new Sound()


AS3 declarations, no?
AS2 only, and in the case of Xerte I don't think you can set var either.

my_sound = new Sound();


Date: Tue, 12 Jul 2011 21:33:09 +0300
From: admin at strivney.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] SWF Sound Problem

Hi,
I have put sound on some movie clips in a drag and drop exercise.  They play fine in the SWF but not in Xerte.


The sound code, which is in the main timeline is as follows:

var Sound1:Sound = new Sound()
Sound1.attachSound("Sound1")
And in the movie clip's onPress code (also in main timeline):
movie_clip.onPress = function(){	Sound1.start()
	this.startDrag();
I also have this._lockroot = true; in the first frame of the movie.
In case it's relevant, I have had no problems in Xerte with adding sound dynamically to buttons with the following:

on (press) {	yellow = new Sound(this);	yellow.attachSound("yellow");
	yellow.start(0, 1);}
But this time I need the sound on movie clips for the drag and drop.  

Any suggestions gratefully appreciated!
Deborah









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/20110712/5fd320e2/attachment-0001.html>


More information about the Xerte mailing list