B
bl34ch
Hey,
hab mich vorn paar tage an Flash rangetan, nutze Adobe Flash cs3.
Hab ein Tutorial (3teilig) im Inet besucht (http:\\gotoandlearn.com - Free video tutorials by Lee Brimelow on the Flash Platform)
Wollte bei meiner Seite ein Karusell Menu einbauen.
Ich hab das Tutorial bis zum 2ten Teil gemacht, da im 3ten Teil sone Art Überblendung hinzugefügt wird.
Ich aber will das wen ich druf klicke ( auf ein Icon), dass ich auf eine Andere Seite gebracht werde.
Das Menü ist dynamisch gebaut, heißt also das ich unzällige Icons einfügen kann, benutzt wird eine XML-Datei.
Hier der ActionScript 2.0 des Karusell Menüs :
Hier die XML:
Bitte nich zu Kompliziert erklären bin noch ein kompletter N0013 dadrin, hab vorgestern angefangen....
Büdde helfen XD
Danke
PS:\\ falls ihr nochn paar infos braucht, raus damit XD
hab mich vorn paar tage an Flash rangetan, nutze Adobe Flash cs3.
Hab ein Tutorial (3teilig) im Inet besucht (http:\\gotoandlearn.com - Free video tutorials by Lee Brimelow on the Flash Platform)
Wollte bei meiner Seite ein Karusell Menu einbauen.
Ich hab das Tutorial bis zum 2ten Teil gemacht, da im 3ten Teil sone Art Überblendung hinzugefügt wird.
Ich aber will das wen ich druf klicke ( auf ein Icon), dass ich auf eine Andere Seite gebracht werde.

Das Menü ist dynamisch gebaut, heißt also das ich unzällige Icons einfügen kann, benutzt wird eine XML-Datei.
Hier der ActionScript 2.0 des Karusell Menüs :
Code:
import mx.utils.Delegate;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i {
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}
function over()
{
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}
function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}
function released()
{
trace(this._parent.toolText);
}
function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}
xml.load("icons.xml");
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)/10500;
}
Hier die XML:
Code:
Bitte nich zu Kompliziert erklären bin noch ein kompletter N0013 dadrin, hab vorgestern angefangen....
Büdde helfen XD
Danke
PS:\\ falls ihr nochn paar infos braucht, raus damit XD