PHP interesse |
|
ik heb het volgende probleem;
ik heb een item dat word aangemaakt, die bevat een dynamic( geémbed) text , 1 met textWhite en 1 met textBlack...
ik heb de volgende code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var home:MovieClip = this;
var menuArray = new Array();
menuArray[0] = "HOME";
menuArray[1] = "FONTEINEN";
menuArray[2] = "DIPPINGS";
menuArray[3] = "VERHUUR";
menuArray[4] = "SHOP";
menuArray[5] = "CONTACT";
menuArray[6] = "FOTOS";
for(var i = 0; i < 7; i++)
{
var mc:MovieClip = attachMovie("item","item"+i,i);
mc._x = 100*i;
mc._y = 0;
mc.item_mask.onRollOver = over;
mc.item_mask.onRollOut = out;
mc.item_mask.onRelease = menuclick;
//trace(menuArray[i]);
mc.textWhite.text = menuArray[i];
mc.textBlack.text = menuArray[i];
}
function menuclick()
{
for(var i = 0; i < 7; i++)
{
var mc:MovieClip = home["item"+i];
if (mc != this._parent)
{
if (!mc.item_mask.onRollOut)
{
var tw:Tween = new Tween(mc.item_bold, "_y", Strong.easeOut, -120, 0, 1, true);
var tw2:Tween = new Tween(mc.item_light, "_y", Strong.easeOut, 0, 220, 1, true);
var tw3:Tween = new Tween(mc.textWhite, "_y", Strong.easeOut, -255, 35, 1, true);
var tw4:Tween = new Tween(mc.textBlack, "_y", Strong.easeOut, 65, 255, 1, true);
}
mc.item_mask.onRollOver = over;
mc.item_mask.onRollOut = out;
mc.item_mask.onRelease = menuclick;
} else {
delete mc.item_mask.onRollOut;
delete mc.item_mask.onRollOver;
delete mc.item_mask.onRelease;
}
}
getURL("javascript:getFile('test.html', 'containerAjax');");
}
function over()
{ var tw:Tween = new Tween(this._parent.item_bold, "_y", Strong.easeOut, 0, -120, 1, true);
var tw2:Tween = new Tween(this._parent.item_light, "_y", Strong.easeOut, -220, 0, 1, true);
var tw3:Tween = new Tween(this._parent.textWhite, "_y", Strong.easeOut, 35, -255, 1, true);
var tw4:Tween = new Tween(this._parent.textBlack, "_y", Strong.easeOut, -35, 65, 1, true);
}
function out()
{
var tw:Tween = new Tween(this._parent.item_bold, "_y", Strong.easeOut, -120, 0, 1, true);
var tw2:Tween = new Tween(this._parent.item_light, "_y", Strong.easeOut, 0, 220, 1, true);
var tw3:Tween = new Tween(this._parent.textWhite, "_y", Strong.easeOut, -255, 35, 1, true);
var tw4:Tween = new Tween(this._parent.textBlack, "_y", Strong.easeOut, 65, 255, 1, true);
}
import mx.transitions.Tween; import mx.transitions.easing.*; var home:MovieClip = this; var menuArray = new Array(); menuArray[0] = "HOME"; menuArray[1] = "FONTEINEN"; menuArray[2] = "DIPPINGS"; menuArray[3] = "VERHUUR"; menuArray[4] = "SHOP"; menuArray[5] = "CONTACT"; menuArray[6] = "FOTOS"; for(var i = 0; i < 7; i++) { var mc:MovieClip = attachMovie("item","item"+i,i); mc._x = 100*i; mc._y = 0; mc.item_mask.onRollOver = over; mc.item_mask.onRollOut = out; mc.item_mask.onRelease = menuclick; //trace(menuArray[i]); mc.textWhite.text = menuArray[i]; mc.textBlack.text = menuArray[i]; } function menuclick() { for(var i = 0; i < 7; i++) { var mc:MovieClip = home["item"+i]; if (mc != this._parent) { if (!mc.item_mask.onRollOut) { var tw:Tween = new Tween(mc.item_bold, "_y", Strong.easeOut, -120, 0, 1, true); var tw2:Tween = new Tween(mc.item_light, "_y", Strong.easeOut, 0, 220, 1, true); var tw3:Tween = new Tween(mc.textWhite, "_y", Strong.easeOut, -255, 35, 1, true); var tw4:Tween = new Tween(mc.textBlack, "_y", Strong.easeOut, 65, 255, 1, true); } mc.item_mask.onRollOver = over; mc.item_mask.onRollOut = out; mc.item_mask.onRelease = menuclick; } else { delete mc.item_mask.onRollOut; delete mc.item_mask.onRollOver; delete mc.item_mask.onRelease; } } getURL("javascript:getFile('test.html', 'containerAjax');"); } function over() { var tw:Tween = new Tween(this._parent.item_bold, "_y", Strong.easeOut, 0, -120, 1, true); var tw2:Tween = new Tween(this._parent.item_light, "_y", Strong.easeOut, -220, 0, 1, true); var tw3:Tween = new Tween(this._parent.textWhite, "_y", Strong.easeOut, 35, -255, 1, true); var tw4:Tween = new Tween(this._parent.textBlack, "_y", Strong.easeOut, -35, 65, 1, true); } function out() { var tw:Tween = new Tween(this._parent.item_bold, "_y", Strong.easeOut, -120, 0, 1, true); var tw2:Tween = new Tween(this._parent.item_light, "_y", Strong.easeOut, 0, 220, 1, true); var tw3:Tween = new Tween(this._parent.textWhite, "_y", Strong.easeOut, -255, 35, 1, true); var tw4:Tween = new Tween(this._parent.textBlack, "_y", Strong.easeOut, 65, 255, 1, true); }
echter wordt de text niet aangepast....
|