Note that there are some explanatory texts on larger screens.

plurals
  1. POAction Script advice needed!
    primarykey
    data
    text
    <p>I want to add the following script in my action script for redirecting to first frame after the external video finish,</p> <p>But I'm not sure how to customize the code that suitable for my sction script.</p> <p>This is the code I want to add with my AS :</p> <pre><code>ns.onStatus = function(info:Object) { if(info.code == 'NetStream.Play.Stop') { gotoAndPlay(2); } } </code></pre> <p>The following one is the original code now I'm using to play external video files. I need to customize the above code that should be usable for the below one.</p> <pre><code>function checkTime(flv) { var _loc2 = flv.playheadTime; var _loc3 = Math.floor(_loc2 / 60); var _loc1 = Math.floor(_loc2 % 60); if (_loc1 &lt; 10) { _loc1 = "0" + _loc1; } // end if current_time.text = _loc3 + ":" + _loc1; } // End of the function flv.pauseButton = pause_btn; flv.playButton = play_btn; flv.FLVPlayback.align = center; var time_interval = setInterval(checkTime, 500, flv); ffwd_btn.onRelease = function () { flv.seek(flv.playheadTime + 2); }; rewind_btn.onRelease = function () { flv.seek(flv.playheadTime - 5); }; mute_btn.onRelease = function () { if (videoSound.getVolume() == 0) { videoSound.start(); videoSound.setVolume(volLevel); } else { volLevel = _root.videoSound.getVolume(); videoSound.setVolume(0); videoSound.stop(); } // end else if }; var videoSound = new Sound(this); videoSound.setVolume(100); flv.contentPath = flvurl; fl.video.FLVPlayback.align = center; </code></pre> <p>Can anyone help me?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload