לוגו אתר Fresh          
 
 
  אפשרות תפריט  ראשי     אפשרות תפריט  צ'אט     אפשרות תפריט  מבזקים     אפשרות תפריט  צור קשר     חץ שמאלה ‎print ‎"Hello World!"; if‎ ‎not rules.‎know ‎then rules.‎read(); חץ ימינה  

לך אחורה   לובי הפורומים > מחשבים > תכנות ובניית אתרים
שמור לעצמך קישור לדף זה באתרי שמירת קישורים חברתיים
תגובה
 
כלי אשכול חפש באשכול זה



  #6  
ישן 28-10-2007, 16:12
צלמית המשתמש של בן אור
  בן אור בן אור אינו מחובר  
 
חבר מתאריך: 24.02.05
הודעות: 17,595
שלח הודעה דרך ICQ אל בן אור שלח הודעה דרך MSN אל בן אור Facebook profile Follow me...
בתגובה להודעה מספר 4 שנכתבה על ידי GadiDv שמתחילה ב "קודם כל תודה לגבי הforword"

בהנחה שאתה טוען את הוידאו מקובץ חיצוני:
nDuration וnsVideo.time לא קיימים מיד עם תחילת הסרט ולכן אתה משווה 2 משתנים לא מוגדרים אתה מקבל אמת

בנוגע לסוף הסרט אני לא מצאתי פתרון, בסופו של דבר בדקתי האם עברו יותר מ 99.9 אחוזים מהסרט, אתה מחשב את האחוזים ב updateProgress בקוד המקורי שלך

עריכה:
ובקשר להודעה השניה שלך

אין לך אוביקט סאונד,
קוד PHP:
 _root.createEmptyMovieClip ("vSound",_root.getNextHighestDepth ());
vSound.attachAudio (nsVideo);
var 
sound:Sound = new Sound (vSound);
sound.setVolume (100); 

יצרתי כאן mc שמקבל את הסאונד מה flv ומשמיע אותו
בנוסף יצרתי אוביקט סאונד בשם sound שמאפשר לך לשלוט על הצורה שבה ה mc משמיע את הצליל
_____________________________________
חתימתכם הוסרה כיוון שלא עמדה בחוקי האתר. לפרטים נוספים לחצו כאן. תוכלו לקבל עזרה להתאמת החתימה לחוקים בפורום חתימות וצלמיות.


נערך לאחרונה ע"י בן אור בתאריך 28-10-2007 בשעה 16:17.
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #11  
ישן 29-10-2007, 17:06
  dattias dattias אינו מחובר  
 
חבר מתאריך: 05.03.06
הודעות: 78
הנה הקוד
בתגובה להודעה מספר 10 שנכתבה על ידי בן אור שמתחילה ב "playNextVid() יותר מזה קשה..."

קוד:
Stage.scaleMode = "noScale"; Stage.align = "TL"; import mx.transitions.Tween; import mx.transitions.easing.*; bufferClip._visible=1; var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); video_mc.theVideo.attachVideo(ns); ns.setBufferTime(10); ns.onStatus = function(info) { trace(info.code); if (info.code == "NetStream.Buffer.Full") { } if (info.code == "NetStream.Buffer.Empty") { } if (info.code == "NetStream.Play.Stop") { //ns.seek(0); } }; //use that for html variable or write that : //ns.play("http://www.xarald.info/x3d.flv"); ns.play("http://www.d-box.co.il/video.flv"); bar_mc.playButton.onRelease = function() { ns.pause(); bar_mc.playButton.play(); }; bar_mc.rewindButton.onRelease = function() { ns.seek(0); }; var videoInterval = setInterval(videoStatus, 10); var amountLoaded:Number; var duration:Number; ns["onMetaData"] = function (obj) { duration = obj.duration; }; function videoStatus() { amountLoaded = ns.bytesLoaded / ns.bytesTotal; bar_mc.loader_mc.loadbar._width = amountLoaded * 211; bar_mc.loader_mc.scrub._x = ns.time / duration * 211; } var scrubInterval; bar_mc.loader_mc.scrub.onPress = function() { clearInterval(videoInterval); scrubInterval = setInterval(scrubit, 10); this.startDrag(false,0,this._y,211,this._y); }; bar_mc.loader_mc.scrub.onRelease = bar_mc.loader_mc.scrub.onReleaseOutside = function () { clearInterval(scrubInterval); videoInterval = setInterval(videoStatus, 10); this.stopDrag(); }; function scrubit() { ns.seek(Math.floor((bar_mc.loader_mc.scrub._x / 211) * duration)); } _root.createEmptyMovieClip("vSound",_root.getNextHighestDepth()); vSound.attachAudio(ns); var so:Sound = new Sound(vSound); so.setVolume(100); var ScrubS:MovieClip = bar_mc.sound_mc.scrubS_mc; bar_mc.mute_mc.onPress = function() { new Tween(ScrubS, "_x", Strong.easeOut, ScrubS._x, 0, 0.6, true); }; bar_mc.nomute_mc.onPress = function() { new Tween(ScrubS, "_x", Strong.easeOut, ScrubS._x, 56, 0.6, true); }; ScrubS.onPress = function() { startDrag(this, false, 0, -2, 56, -2); trace(ScrubS._x); }; ScrubS.onRelease = ScrubS.onRollOver = ScrubS.onReleaseOutside = function () { stopDrag(); }; //Full Screen onEnterFrame = function () {; so.setVolume(ScrubS._x*2); }; var tempo:Number = 0.6; bar_mc.fs_mc.onRelease = function() { if (Stage["displayState"] == "fullScreen") { Stage["displayState"] = "normal"; } else { Stage["displayState"] = "fullScreen"; } }; var videoW:Number = video_mc._width; var videoH:Number = video_mc._height; var Ybar:Number = bar_mc._y; var Xbar:Number = bar_mc._x; var EventListener:Object = new Object(); Stage.addListener(EventListener); EventListener.onFullScreen = function(bFull:Boolean) { if (bFull == true) { var WfsON:Number = videoW * Stage.height / videoH; var HfsON:Number = Stage.height; new Tween(video_mc, "_width", Strong.easeOut, video_mc._width, WfsON, tempo, true); new Tween(video_mc, "_height", Strong.easeOut, video_mc._height, HfsON, tempo, true); new Tween(video_mc, "_x", Strong.easeOut, video_mc._x, (Stage.width - WfsON) / 2, tempo, true); new Tween(bar_mc, "_y", Strong.easeOut, bar_mc._y, 0, tempo, true); new Tween(bar_mc, "_x", Strong.easeOut, bar_mc._x, (Stage.width - bar_mc._width) / 2, tempo, true); cache(cache_mc,-5,0,Stage.width + 10,Stage.height); } else if (bFull == false) { new Tween(video_mc, "_width", Strong.easeOut, video_mc._width, videoW, tempo, true); new Tween(video_mc, "_height", Strong.easeOut, video_mc._height, videoH, tempo, true); new Tween(video_mc, "_x", Strong.easeOut, video_mc._x, 6, tempo, true); new Tween(bar_mc, "_y", Strong.easeOut, bar_mc._y, Ybar, tempo, true); new Tween(bar_mc, "_x", Strong.easeOut, bar_mc._x, Xbar, tempo, true); cache(cache_mc,195.5,145.5,1,1); } }; function cache(target, a, b, c, d) { new Tween(target, "_x", Strong.easeOut, target._x, a, tempo, true); new Tween(target, "_y", Strong.easeOut, target._y, b, tempo, true); new Tween(target, "_width", Strong.easeOut, target._width, c, tempo, true); new Tween(target, "_height", Strong.easeOut, target._height, d, tempo, true); }
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
תגובה

כלי אשכול חפש באשכול זה
חפש באשכול זה:

חיפוש מתקדם
מצבי תצוגה דרג אשכול זה
דרג אשכול זה:

מזער את תיבת המידע אפשרויות משלוח הודעות
אתה לא יכול לפתוח אשכולות חדשים
אתה לא יכול להגיב לאשכולות
אתה לא יכול לצרף קבצים
אתה לא יכול לערוך את ההודעות שלך

קוד vB פעיל
קוד [IMG] פעיל
קוד HTML כבוי
מעבר לפורום



כל הזמנים המוצגים בדף זה הם לפי איזור זמן GMT +2. השעה כעת היא 08:22

הדף נוצר ב 0.07 שניות עם 12 שאילתות

הפורום מבוסס על vBulletin, גירסא 3.0.6
כל הזכויות לתוכנת הפורומים שמורות © 2024 - 2000 לחברת Jelsoft Enterprises.
כל הזכויות שמורות ל Fresh.co.il ©

צור קשר | תקנון האתר