کمک صوت و افکت

ranjbar_2

Member
سلام به همگی

ببخشید من در ساخت یک کلیپ به دو مشکل بر خوردم لطفا کمکم کنید

1- Pause برای sound همراه با توقف در فریم ها

2- اضافه کردن افکت های swish به flash mx 2003


در صورت امکان کمک کنید
:?: :?: :?:
 

MnavidM

Active Member
با سلام.

جواب :

1- استفاده از كد زير :

کد:
stop();

2- بايد اول با Swish اون رو به SWF تبديل كنيد و بعد در Flash با اون رو Import كنيد .
 

ranjbar_2

Member
سلام با دستور stop برنامه متوقف میشه ولی موزیک هنوز پخش میشه

استفاده از موزیک به صورت attach به کتابخانه

در جواب دوستم fafa ببخشید اشتباه تایپی بود
ورژن 2002
 

webkhan

Member
فكر كنم از Micromedia خريده باشه!

mysound= new Sound()
mysound.attachSound("linkageName")
mysound.stop();
حالا موزيك متوقف ميشه.
 

fafa^mx

Member
برای ساخت Pause میتونی از سورس کد TrackBlog کمک بگیری :
کد:
back.gotoAndStop(backgroundTheme)
del = 0
bol = 0;
l1 = 0
l2 = 0
l3 = 0
pol = 0
ifd = new Sound()
ifd.attachSound(targetSound)
function volumeset() {
	ifd.setVolume(vol);
	ifd.onSoundComplete = function() {
		bol = 0;
	};
	if (bol==1){
		player.kind.gotoAndPlay(2)
	}
}
statue ="Track Blog System."
setInterval(volumeset, 1);
player.onRollOver = function() {
	if(bol == 0){
		player.gotoAndPlay(2);
	statue = "Click here to play.";
	}else{
		player.gotoAndPlay(2);
		statue = "Click here to stop."
	}
};
player.onRollOut = function() {
	player.gotoAndPlay(1);
	statue ="Track Blog System."
};
player.onPress = function() {
	if (bol == 1) {
		statue = "You stoped the player.";
		ifd.stop()
		pol = ifd.position/1000
		bol = 0
	} else {
		ifd.start(pol);
		statue = "And now Playing.";
		bol = 1;
	}
};
higher.onRollOver = function() {
	higher.gotoAndPlay(2);
	statue = "Increase the volume.";
};
higher.onRollOut = function() {
	higher.gotoAndPlay(1);
	statue ="Track Blog System."
};
higher.onPress = function() {
	vol = vol+4;
};
lower.onRollOver = function() {
	lower.gotoAndPlay(2);
	statue = "Decrease the volume.";
};
lower.onRollOut = function() {
	lower.gotoAndPlay(1);
	statue ="Track Blog System."
};
lower.onPress = function() {
	if (vol<0) {
		vol = vol-vol;
	}
	vol = vol-4;
};
op.onRollOver = function(){
	op.gotoAndPlay(2)
	statue = "Track Blog settings and helps."
}
op.onRollOut = function(){
	op.gotoAndPlay(1)
		statue ="Track Blog System."
}
op.onPress = function(){
	if ( del==1){
		statue = "Menu is already open."
	}
	else{
	men.gotoAndPlay(2)
		statue = "The menu is opening right now."
		del = 1
	}
}
men.closer.onPress = function(){
	men.gotoAndPlay(22)
		statue = "The menu is closing right now."
		del = 0
}
men.closer.onRollOver = function(){
	men.closer.gotoAndPlay(2)
		statue = "Click here to close the menu."
}
men.closer.onRollOut = function(){
	men.closer.gotoAndPlay(1)
		statue ="Track Blog System."
}
men.closer.onReleaseOutside = function(){
	men.closer.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.setting.onRollOver = function(){
	men.setting.gotoAndPlay(2)
	statue = "Click here to change settings."
}
men.setting.onRollOut = function(){
	men.setting.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.setting.onReleaseOutside = function(){
	men.setting.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.help.onRollOver = function(){
	men.help.gotoAndPlay(2)
	statue = "Click here to use the helps."
}
men.help.onReleaseOutside = function(){
	men.help.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.a1.useHandCursor = false
men.help.onRollOut = function(){
	men.help.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.about.onRollOver = function(){
	men.about.gotoAndPlay(2)
	statue = "Click here to find more information."
}
men.about.onRollOut = function(){
	men.about.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.about.onReleaseOutside = function(){
	men.about.gotoAndPlay(1)
	statue ="Track Blog System."
}
men.about.onPress = function(){
	center.gotoAndStop(2)
	statue = "Now you can see any information."
	men.gotoAndPlay(22)
	del = 0
	se._visible = 0
}
men.help.onPress = function(){
	center.gotoAndStop(1)
	statue = "Now you can use the helps."
	men.gotoAndPlay(22)
	del = 0
	se._visible = 0
}
men.setting.onPress = function(){
	center.gotoAndStop(3)
	statue = "Now you can change settings."
	men.gotoAndPlay(22)
	del = 0
	se._visible = 1
}
se._visible = 0
mel = new ContextMenu(menuHandler);
mel.hideBuiltInItems();
mel.customItems.push(new ContextMenuItem("www.IflashDes.net",fafa2));
function fafa2(){
	getURL("http://www.iflashdes.com")
}
_root.menu = mel;
و برای سیک بار :
کد:
function seeker(){
	dur = _parent.ifd.duration
	pos = _parent.ifd.position
	place =(pos/dur) * getProperty(see,_width) - 8
	setProperty(mov,_x,place)
}
fafa = setInterval(seeker,1)

mov.onPress = function(){
	startDrag(mov,false,0.6,0,160,0)
		statue = "The menu is closing right now."
		clearInterval(fafa)
		
}
mov.onRollOver = function(){
	mov.gotoAndPlay(2)
		statue = "Click here change the plac of sound."
}
mov.onRollOut = function(){
	mov.gotoAndPlay(1)
		statue ="Track Blog System."
}
mov.onReleaseOutside = function(){
	stopDrag()
	mov.gotoAndPlay(1)
	statue ="Track Blog System."
	poser = (getProperty(mov,_x)/getProperty(see,_width) * dur)/1000
		_parent.ifd.stop()
		_parent.ifd.start(poser,0)
			fafa = setInterval(seeker,1)
}
mov.onRelease = function(){
	stopDrag()
	mov.gotoAndPlay(1)
	statue = "Track Blog System."
	poser =(getProperty(mov,_x)/getProperty(see,_width) * dur)/1000
		_parent.ifd.stop()
		_parent.ifd.start(poser,0)
		fafa = setInterval(seeker,1)
}
 

جدیدترین ارسال ها

بالا