- change red dot to mouse pointer in desktop preview window
- change fit icon to label in desktop view window
This commit is contained in:
parent
810341f8d8
commit
bdbf753fc5
@ -145,7 +145,13 @@
|
||||
private function onUpdateCursorEvent(event:CursorEvent):void {
|
||||
cursor.x = ((event.x/captureWidth)) * videoHolder.width;
|
||||
cursor.y = ((event.y/captureHeight)) * videoHolder.height;
|
||||
cursor.visible = true;
|
||||
// cursor.visible = true;
|
||||
|
||||
cursorImg.visible = true;
|
||||
cursorMove.end();
|
||||
cursorMove.xTo=cursor.x;
|
||||
cursorMove.yTo=cursor.y;
|
||||
cursorMove.play();
|
||||
}
|
||||
|
||||
private function onAppletStart(event:AppletStartedEvent):void{
|
||||
@ -170,6 +176,7 @@
|
||||
videoHolder.height = captureHeight/SCALE;
|
||||
videoHolder.addChild(video);
|
||||
videoHolder.addChild(cursor);
|
||||
videoHolder.addChild(cursorImg);
|
||||
cursor.visible = false;
|
||||
this.addChild(videoHolder);
|
||||
this.width = video.width + 6;
|
||||
@ -229,4 +236,6 @@
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
<mx:Move id="cursorMove" target="{cursorImg}"/>
|
||||
<mx:Image id="cursorImg" visible="false" source="@Embed('../../assets/images/Cursor.png')"/>
|
||||
</MDIWindow>
|
||||
|
@ -274,9 +274,11 @@
|
||||
if (btnActualSize.selected) {
|
||||
fitToActualSize();
|
||||
btnActualSize.toolTip = "Fit to window";
|
||||
btnActualSize.label = "Fit to window";
|
||||
} else {
|
||||
fitToWindow();
|
||||
btnActualSize.toolTip = "Display actual size";
|
||||
btnActualSize.label = "Display actual size";
|
||||
}
|
||||
}
|
||||
|
||||
@ -292,6 +294,6 @@
|
||||
<mx:Button id="btnActualSize" toggle="true" click="determineHowToDisplayVideo()" selected="true"
|
||||
height="90%" icon="{btnActualSize.selected ? fitToActualSizeIcon : fitToWidthIcon}"
|
||||
toolTip="Display actual size" />
|
||||
<mx:Label text="Click to toggle between fit-to-window and actual screen size. Resize the window to see more of the presenters' screen" />
|
||||
<!--mx:Label text="Click to toggle between fit-to-window and actual screen size. Resize the window to see more of the presenters' screen" /-->
|
||||
</mx:ControlBar>
|
||||
</MDIWindow>
|
||||
|
Loading…
Reference in New Issue
Block a user