This is a discussion on "Carousel Menu" within the Flash & Multimedia Forum section. This forum, and the thread "Carousel Menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Carousel Menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Carousel Menu
Post #1
Hi, wondered if you guys can help? I am trying to make a carousel menu (like the one on goto and learn.com), but instead of loading my menu objects in via an xml file I want to attach the movie clips (with linkages) from the library to the stage and have them revolving around the axis. Taking some of the code and modifying it, so far I can only attach one movie clip called "helpdesk"from the library to the t variable and have it revolving on the stage. How can I attach more than one movie clip to the stage and have it revolving around the axis? Here is the code. I've tried attaching more movie clips to the t variable but it doesn't work. Do you know where I'm going wrong? var numOfItems:Number=1 var radiusX:Number=250; var radiusY:Number=75; var centerX:Number=Stage.width/2; var centerY:Number=Stage.height/2; var speed:Number=0.05; var perspective:Number=150; var t= this.attachMovie("helpdesk","helpdesk",1); t.angle=numOfItems*((Math.PI*2)/numOfItems); t.onEnterFrame=mover; function mover() { this._x=Math.cos(this.angle)* radiusX + centerX; this._y=Math.sin(this.angle)* radiusY + centerY; var s= (this._y-perspective)/(centerY+radiusY-perspective); this._xscale= this._yscale=s*100; this.angle += this._parent.speed; this.swapDepths(Math.round(this._xscale)+100); } this.onMouseMove=function() { speed=(this._xmouse-centerX)/2000; } |
|
|
![]() |
| Tags |
| carousel, menu |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bizarre issue with loading FLV files into Flash carousel | galahad3 | Flash & Multimedia Forum | 0 | May 2nd, 2008 09:13 |
| Problem with Flash 8 carousel and XML | galahad3 | Flash & Multimedia Forum | 0 | Apr 9th, 2008 16:12 |
| CSS Menu | defy | Web Page Design | 7 | Oct 26th, 2007 08:37 |
| Flash Carousel XML link | csr500 | Flash & Multimedia Forum | 2 | Sep 12th, 2007 15:08 |
| I have a normal css menu, but want ot add drop down menu to it | multichild | Web Page Design | 7 | Jan 9th, 2007 16:07 |