Working on a similar quest...
The fading works for me (NUMPAD_5) is my trigger in the code below... easily converted to a mouse event. Note that I do not use the easing parameter in the TransitionManager code line.
Let me know if you find the trick to hiding a movieclip when the movie starts. If you manually set the alpha to 0% it overrides the transition code. The transition still works, but the movieclip is hidden.
CODE
Mouse.hide();
var a:int = 0;
import fl.transitions.*;
import fl.transitions.easing.*;
function fadeIn() {
TransitionManager.start(br_mc, {type:Fade, direction:Transition.IN, duration: 2});
trace("fadeIn");
}
function fadeOut() {
TransitionManager.start(br_mc, {type:Fade, direction:Transition.OUT, duration: 2});
trace("fadeOut");
}
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyStroke);
function keyStroke(event:KeyboardEvent):void {
if (event.keyCode == Keyboard.NUMPAD_5 && a == 0) {
trace("5 press in");
fadeIn();
a = 10;
} else if (event.keyCode == Keyboard.NUMPAD_5 && a == 10) {
trace("5 press out");
fadeOut();
a = 0;
}
}
Good luck