View Full Version : Button event handler FLICKERING problems
ArnoldScript
10-22-2007, 06:47 PM
I've added a mouse event handler to a stop button of a FLVPlayback component.
When the clip plays, the event (a tool tip that appears) flickers at the rate of the frame rate during the mouseover.
Is there a straightforward way to make the event appear continuous, non-flickering, non-dependent on the frames rate?
The events in question are mouseover and mouseout.
Please, help (my free trial will be over in a couple days, and I'm stuck), there's gotta be a way (that I don't know of).
Qutaibah
10-22-2007, 07:08 PM
hello ArnoldScript,
there are a number of things that might be causing this problem.
It would be very helpful if you can post some code snippets that one could examine.
here is something that happened to me at one point. i was trying to add tool tips for some buttons.
the tool times where movieClips with more than one frame on their timeline. When the movieClip was added, it would gradually fade-in to show the tool time. However, when alpha=1; the tool time movieClip would loop, giving me the flickering effect.
One way that could be solved is to add a stop action to prevent it from looping.
but again that sulotion was spaciic to my problem. go ahead a post some of your code, and I am sure the community would be of great help. good luck.
ArnoldScript
10-22-2007, 08:24 PM
Thank's so much. I really hope posting code will help.
Here's the entire code. As you see, i actually tried adding stop() as well. The tooltip itself is called tool_tip.
myVideo.playPauseButton=myPlayPause;
myVideo.stopButton=myStop;
myVideo.seekBar=mySeekBar;
myVideo.fullScreenButton=myFullscreen;
//mouseOver handler
myStop.addEventListener(MouseEvent.MOUSE_OVER, clickhandler1);
function clickhandler1(event:MouseEvent):void {stop();
this.tool_tip.x=event.stageX - this.tool_tip.width/2;
this.tool_tip.y=event.stageY - this.tool_tip.height;
this.tooltip_text.x=event.stageX - this.tool_tip.width/2 - 2; //adjust text positioning
this.tooltip_text.y=event.stageY - this.tool_tip.height - 3;
}
//mouseOut handler
myStop.addEventListener(MouseEvent.MOUSE_OUT, clickhandler2);
function clickhandler2(event:MouseEvent):void {stop();
this.tool_tip.x=2000;
this.tooltip_text.x=2000;
}
if it needs explaining, let me know. Thanks for looking at it.
ArnoldScript
10-23-2007, 06:29 AM
Hello; does anyone have a clue? This is The forum, i thought. Is everyone as incompetent as myself?:)
I've had a similar problem when i tried to edit one of the flv component buttons. Sounds similar, I just made my own button!?
ArnoldScript
10-23-2007, 11:02 PM
Perhaps, there's a resource somewhere that deals with FLVPlayBack components and event handling?
I've tried google but couldn't find anything of relevance.
Am i the first to think of adding event handlers to flvplayback buttons?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.