-

  • (370)
  • (217)
  • (149)
  • (145)
  • (121)
  • - (Clip-Art) (120)
  • (115)
  • (78)
  • (68)
  • (66)
  • (65)
  • (58)
  • (56)
  • (54)
  • (52)
  • ...))) (50)
  • (40)
  • (36)
  • - (35)
  • (33)
  • (31)
  • ... (30)
  • (30)
  • (29)
  • (25)
  • Surge Blavat (24)
  • (24)
  • (23)
  • (21)
  • (20)
  • . (17)
  • (14)
  • (13)
  • ... (11)
  • (11)
  • (10)
  • (8)
  •     (2)
  • ((( (8)
  • (8)
  • (8)
  • (7)
  • (7)
  • (6)
  • (6)
  • (4)
  • ... (4)
  • (4)
  • (4)
  • (4)
  • (3)
  • (3)
  • (3)
  • (3)
  • (2)
  • (2)
  • (2)
  • (2)
  • (2)
  • (2)
  • (1)
  • (1)
  • (0)

 -

galina11966@mail.ru

 -

   _1966

 - e-mail

 

 -

 LiveInternet.ru:
: 05.09.2011
: 2997
: 8855
: 22513

:


3D ( ).

, 13 2015 . 05:18 +
3D ( ).


.

( ). . , . jzayka !




1. 550400

1 - 1 (699x503, 71Kb)



2. . - 15835, , , . , , , . " ".

2-2 (669x486, 54Kb)
3 (198x122, 17Kb)



4 - 3 (266x344, 46Kb)

, 5 , 10, . . .

3. MovieCLip, F8 ( , " ") “Menu Item”. .

5-2 (630x600, 71Kb)


6-1 (700x525, 80Kb)



4. , 2

. -.

7 - 2 (700x506, 64Kb)

8 (198x122, 20Kb)

5. instance = “menuItemText“- .

10 -1 (382x470, 61Kb)

. , . ( )

11 - 1 (672x394, 42Kb)

7. ( , ), .

12 - 1 (700x500, 62Kb)

14 (692x504, 59Kb)
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=[" http://www.liveinternet.ru/users/preriy/profile/"," http://www.liveinternet.ru/users/jzayka/profile/"," http://www.liveinternet.ru/users/3111237/profile/"," http://www.liveinternet.ru/users/5093970/profile "," http://www.liveinternet.ru/users/4747147/profile/"," http://www.liveinternet.ru/users/5022732/profile/"," http://www.liveinternet.ru/users/3354683/profile/"," http://www.liveinternet.ru/users/novprospekt/profile/"," http://www.liveinternet.ru/users/4955107/profile/"," http://www.liveinternet.ru/users/mariynina/profile/"," http://www.liveinternet.ru/users/mariflash/profile/"," http://www.liveinternet.ru/users/4958866/profile/"," http://www.egorovatatiana.ru/profile?upd"," http://www.liveinternet.ru/users/svetlanat/profile"," http://www.liveinternet.ru/users/lady_de/profile/"," http://www.liveinternet.ru/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;

//
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);

//
menuItem.scaleX = menuItem.scaleY = scaleRatio;

// ( 3D 2D )
menuItem.x = vanishingPointX + menuItem.xpos3D * scaleRatio;
menuItem.y = vanishingPointY + menuItem.ypos3D * scaleRatio;

//
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);

//
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;

//
var scaleRatio = focalLength/(focalLength + menuItem.zpos3D);

//
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;
}

// , ,
sortZ();
}

// ,
function sortZ():void {

// , ,
//z (= )
menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);

//
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 - , , - .
13 (592x382, 71Kb)
. . !

:  
: 2

: [1] []