Greven
%Europe/Berlin %548 %2005, 14:10
boven staat een movieclip die naar beneden hoort te gaan als ik op een button klik. de movieclip heet: infoset. in deze movieclip staan 2 dynamische tekstvakken met instance names: bodytext en title, ook staat er nog een movieclip in. in die movieclip genaamd photos. hierin staan losse fotos (elk in 1 frame).
de buttons staan in een andere movieclip, de buttons hebben als instance name: bt1, bt2, bt3 etc..
in 1 layer staan de actions:
//Buttons
_root.infoset.bt1.onRelease = function() {
_root.MakeNewInfoSet(1);
_root.MoveIninfoset();
};
_root.infoset.bt2.onRelease = function() {
_root.MakeNewInfoSet(2);
_root.MoveIninfoset();
};
etc.
function MoveIninfoset() {
TweenSomething(_root.infoset, "_alpha", mx.transitions.easing.Strong.easeOut, _root.infoset._alpha, -40, 90, 30);
TweenSomething.onMotionFinished = function() {
_root.infoset._visible = true;
};
}
function MakeNewInfoSet(ContentId) {
if (ContentId == 1) {
_root.infoset.Bodytext.text = "tekst";
_root.infoset.Title.text = "titel";
_root.infoset.Photos.gotoAndStop(1);
ik heb onder andere delen van andere scripts gebruikt (ik ben geen expert! :P) en ik weet dat het een en ander niet klopt. kan iemand aangeven wat er allemaal fout is. alvast bedankt :D
de buttons staan in een andere movieclip, de buttons hebben als instance name: bt1, bt2, bt3 etc..
in 1 layer staan de actions:
//Buttons
_root.infoset.bt1.onRelease = function() {
_root.MakeNewInfoSet(1);
_root.MoveIninfoset();
};
_root.infoset.bt2.onRelease = function() {
_root.MakeNewInfoSet(2);
_root.MoveIninfoset();
};
etc.
function MoveIninfoset() {
TweenSomething(_root.infoset, "_alpha", mx.transitions.easing.Strong.easeOut, _root.infoset._alpha, -40, 90, 30);
TweenSomething.onMotionFinished = function() {
_root.infoset._visible = true;
};
}
function MakeNewInfoSet(ContentId) {
if (ContentId == 1) {
_root.infoset.Bodytext.text = "tekst";
_root.infoset.Title.text = "titel";
_root.infoset.Photos.gotoAndStop(1);
ik heb onder andere delen van andere scripts gebruikt (ik ben geen expert! :P) en ik weet dat het een en ander niet klopt. kan iemand aangeven wat er allemaal fout is. alvast bedankt :D