import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
function resizeHandler(e:Event):void
{
mySampleMC.x = (mySampleMC.stage.stageWidth / 2) - (mySampleMC.width / 2);
mySampleMC.y = (mySampleMC.stage.stageHeight / 2) - (mySampleMC.height / 2);
mySampleMC_bg.x = (mySampleMC_bg.stage.stageWidth / 2) - (mySampleMC_bg.width / 2);
mySampleMC_bg.y = (mySampleMC_bg.stage.stageHeight / 2) - (mySampleMC_bg.height / 2);
}
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler);
stage.dispatchEvent(new Event(Event.RESIZE));
var myContextMenu:ContextMenu;
function ContextMenuItemExample()
{
myContextMenu = new ContextMenu();
removeDefaultItems();
addCustomMenuItems();
this.contextMenu = myContextMenu;
}
function removeDefaultItems():void
{
myContextMenu.hideBuiltInItems();
}
function addCustomMenuItems():void
{
var item:ContextMenuItem = new ContextMenuItem("Copyright @ 2011");
myContextMenu.customItems.push(item);
}
ContextMenuItemExample();
MX04 ???????? ?????? ??????????? ????????
-
???? ??????! ???? ????? ?????, ? ? ?????? ???????? ???????? ?????? ?? ?????
https://multfilmy.cyou . ??? ????? ?????????? ?????????, ??????? ???
??????????...
1 week ago
1 comments:
Hi there, just became aware of your blog through Google, and found that it’s truly informative.Really helpful code.Thanks for that.
website design
Post a Comment