Commit 0fbe863a authored by Dan Rossi's avatar Dan Rossi
Browse files

- #60 add helper methods to hide / show the dock when autohide is enabled or not.

parent a80accb9
......@@ -146,6 +146,24 @@ package org.flowplayer.ui.dock {
_autoHide.stop(leaveVisible);
}
//#60 add helper methods to hide / show the dock when autohide is enabled or not.
[External]
public function show():void {
if (_config.autoHide.enabled)
startAutoHide()
else
_player.animationEngine.fadeIn(this);
}
[External]
public function hide():void {
if (_config.autoHide.enabled)
stopAutoHide(false);
else
_player.animationEngine.fadeOut(this);
}
public function cancelAnimation():void {
_autoHide.cancelAnimation();
}
......
......@@ -13,6 +13,7 @@ sVersion history:
"success", "required", "sending"
- #12 if css method used as a getter just return the current style config.
- #34 parse share config params from the player urls before generating the embed code.
- #60 use new helper methods to hide / show the dock when auto hide is enabled or not.
3.2.11
------
......
/*
/*
* This file is part of Flowplayer, http://flowplayer.org
*
* By: Daniel Rossi, <electroteque@gmail.com>
......@@ -467,11 +467,12 @@ import org.flowplayer.model.Plugin;
}
public function displayButtons(display:Boolean):void {
//#60 use new helper methods to hide / show the dock when auto hide is enabled or not.
if (display) {
_iconDock.startAutoHide();
_iconDock.show();
} else {
log.debug("stopping auto hide and hiding buttons");
_iconDock.stopAutoHide(false);
_iconDock.hide();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment