? 28 2014 ? 02:01
+ ?
?/a>
?
?/a> ??/a>.
? ( ). ? ? ? . ? , ?. ??jzayka !
1. ? 550?00
2. ? ???. - 158?5, ? ?? ? ?? ?. ?? ? ? ? ?? ? ?, ? . " ".
? ??br />
? ?? 5 , 10, ? ? ??. ???? ?? . ??? ??
3. ? ?MovieCLip, ? F8 (? ? , ?? "??") ? ?“Menu Item”. ???.
??
4. ? ? ?2 ?? ?br />
?? ? ? ??? ?.
5. ? instance = “menuItemText“-??
? ?? ? ??? ??. ?( ? ??? ??
7. ? ??( , ? ??? ?), ?? ?
8. F9 ? ? ?
//? ?
const NUMBER_OF_ITEMS:uint = 16;
// ???
var menuItems:Array = new Array();
var menuText:Array=new Array();
var menuUrl:Array=new Array();
menuText=["Preriy "," jzayka "," Sabine Astana "," ?"," "," "," _","novprospekt","?,"MariYnina","_","","?","SvetlanaT","Mademoiselle Viv","-"];
menuUrl=[" https://www.donaktv.com/users/preriy/profile/"," https://www.donaktv.com/users/jzayka/profile/"," https://www.donaktv.com/users/3111237/profile/"," https://www.donaktv.com/users/5093970/profile "," https://www.donaktv.com/users/4747147/profile/"," https://www.donaktv.com/users/5022732/profile/"," https://www.donaktv.com/users/3354683/profile/"," https://www.donaktv.com/users/novprospekt/profile/"," https://www.donaktv.com/users/4955107/profile/"," https://www.donaktv.com/users/mariynina/profile/"," https://www.donaktv.com/users/mariflash/profile/"," https://www.donaktv.com/users/4958866/profile/"," https://www.egorovatatiana.ru/profile?upd"," https://www.donaktv.com/users/svetlanat/profile"," https://www.donaktv.com/users/lady_de/profile/"," https://www.donaktv.com/users/4394467/profile/"];
//?focal length
var focalLength:Number = 350;
//???
var vanishingPointX:Number = stage.stageWidth / 2;
var vanishingPointY:Number = stage.stageHeight / 2;
// ? ngleSpeed ??ENTER_FRAME
var angleSpeed:Number = 0;
// ?br />
var radius:Number = 128;
// - ?? (?)
var angleDifference:Number = Math.PI * (360 / NUMBER_OF_ITEMS) / 180;
// setBG();
// ???
for (var i:uint = 0; i < NUMBER_OF_ITEMS; i++) {
//???
var menuItem:MenuItem = new MenuItem();
// ?
var startingAngle:Number = angleDifference * i;
menuItem.name=String(i);
//??"currentAngle" - ?
menuItem.currentAngle = startingAngle;
//?
menuItem.xpos3D = - radius * Math.cos(menuItem.currentAngle) * 0.5;
menuItem.ypos3D = radius * Math.sin(startingAngle);
menuItem.zpos3D = radius * Math.cos(startingAngle);
// ? (? ?-> ? ?)
var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
//? ? ??br />
menuItem.scaleX = menuItem.scaleY = scaleRatio;
//? ?( 3D ?2D )
menuItem.x = vanishingPointX + menuItem.xpos3D * scaleRatio;
menuItem.y = vanishingPointY + menuItem.ypos3D * scaleRatio;
//???br />
menuItem.alpha = 0.3;
// ???
menuItem.menuItemText.text = menuText[i];
// ? ?? ??
menuItem.mouseChildren = false;
//?MOUSE_OVER, MOUSE_OUT ?CLICK ?
menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
// ? ? ?
menuItems.push(menuItem);
// ? ?br />
addChild(menuItem);
}
//?ENTER_FRAME ?
addEventListener(Event.ENTER_FRAME, moveCarousel);
//? ? ?
function moveCarousel(e:Event):void {
// ? ? ? mouseY
angleSpeed = (mouseY - stage.stageHeight / 2) * 0.0002;
// ?
for (var i:uint = 0; i < NUMBER_OF_ITEMS; i++) {
// ? ??
var menuItem:MenuItem = (MenuItem)(menuItems[i]);
//? ?
menuItem.currentAngle += angleSpeed;
//??? ?
menuItem.currentAngle -= 2*Math.PI*int(menuItem.currentAngle/(2*Math.PI));
// ?
var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);
//? ? ??br />
menuItem.scaleX=menuItem.scaleY=scaleRatio;
//??3D
menuItem.xpos3D=- radius*Math.cos(menuItem.currentAngle)*0.5;
menuItem.ypos3D=radius*Math.sin(menuItem.currentAngle);
menuItem.zpos3D=radius*Math.cos(menuItem.currentAngle);
//? .
menuItem.x=vanishingPointX+menuItem.xpos3D*scaleRatio;
menuItem.y=vanishingPointY+menuItem.ypos3D*scaleRatio;
}
// ? ? ??? ??br />
sortZ();
}
//? ? ?, ??? ??br />
function sortZ():void {
// ? ?? ????
//z ?(= ?? ? ??br />
menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
//?? ? ?br />
for (var i:uint = 0; i < NUMBER_OF_ITEMS; i++) {
setChildIndex(menuItems[i], i);
}
}
//? ?, ? ?
function mouseOverItem(e:Event):void {
//? ??1
e.target.alpha=1;
}
//? ?, ? ?
function mouseOutItem(e:Event):void {
//? ??0.3
e.target.alpha=0.3;
}
// ? ?, ??
function itemClicked(e:Event):void {
var curInd:uint;
curInd=uint(e.target.name);
var request:URLRequest = new URLRequest(menuUrl[curInd]);
navigateToURL(request);
}
function setBG() {
var w:Number=stage.stageWidth;
var h:Number=stage.stageHeight;
graphics.lineStyle(0,0);
graphics.beginFill(0);
graphics.lineTo(w,0);
graphics.lineTo(w,h);
graphics.lineTo(0,h);
graphics.lineTo(0,0);
graphics.endFill();
}
? ???? ??, 16 - ? ??, ? ?? ? ? ???
??? ???? ?
?"?Flash":?? , ??flash
?1 - . flash.
?2 - ?? ? ???? ?
...
?22 - ? ? . Action Script 2. ?1.
?23 - ? ? . Action Script 2. ?3.
?24 - 3D ( ? ?? BAT)
?25 - ????
?26 - . Preriy
...
?48 - ? ??? Adobe Flash.
?49 - ? ????Adobe Flash CS6.
?50 - ? ? Flash(?.
?" ":
?1 - ? ??
?2 - Adobe Flash CS6 Portable.
?3 - ?.
?4 - 3D ?
?5 - 3D ( ? ?? BAT)
?
?flash
adobe flash
?adobe flash cs6
? 14 ??/i>
-
14
?/span>
-
0
?/span>
-
0
?/span>
-