REPLY does not go away

By vipclubber, 2 years ago.

REPLY IMAGE (over the video) at the end of the movie play does not dissapear on the REPLAY. Is it just me? It does the same thing on the demonstration page on this site. You have to click it again to force it to go away. Any solutions?

vipclubber
Member

Sorry i meant REPLAY

Posted 2 years ago #

awwphil
Member
homepage

I have this as well. I have updated the code to fix this problem. by using a timer to clear the screen elements it gets past whatever was interfering.

If you have flash to recompile my solution is below:

ADD this import to the top of the code

import flash.events.TimerEvent;

And replace the function with this...

public function replayVideo(e:MouseEvent)
		{
			// Reset progress bar position and play video
			_progBar.width = 0;
			_videoPlayback.playheadTime = 0;

			_replayBkg.visible = false;
			_replayGraphic.visible = false;

			_videoPlayback.play();

			var clearingTimer:Timer = new Timer(100, 1); // 10th of a second
			clearingTimer.addEventListener(TimerEvent.TIMER, clearReplay);
			clearingTimer.start();

			function clearReplay(event:TimerEvent):void {
				_replayBkg.visible = false;
				_replayGraphic.visible = false;
			}

			_fullscreenBtn.mouseEnabled = true;
		}
Posted 2 years ago #


RSS feed for this topic

New Topic

You must log in to post.

Copyright Jambo Media, LLC 2009

Powered by WordPress - Created by Tommaso Baldovino