Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

defective listener code? 1

Status
Not open for further replies.

firegambler

Technical User
Sep 25, 2002
455
AT
as a preparation of programming a sound player i'd like to have the four cds in my file ( ) draggable. somehow they can only be dragged after they are clicked once or even twice in advance...
here's the fla
could you please have a look at it?

thanks in advance

regards

tektips.gif
 
downloaded the file

cant see why you are using a listener. do you have a reason that is not apparent

do you finally intend to have the discs dropped into a player to start the sound

 
if you dont need the listener then this works fine
Code:
for (var i=1;i<5;i++){
this[&quot;cd&quot;+i].onPress = function() {
	startDrag(this);
}
this[&quot;cd&quot;+i].onRelease = function(){
	stopDrag();
	settoinitialposition();
}
	}
 
hi Bill. yep, i want to put them in a player.
thanks for your help!!

is there a special reason for not using a listener in this case?

regards

tektips.gif
 
no reason not to i guess just no good reason to use one that i could see.
 
ok.

your code works perfectly

thanks a lot!

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top