hi all,
as you see below, i’m trying to create a simple rollover gallery. i can create the buttons and text areas but i cant to succeed at create the rollover background. i used
this["new"+i].back.onRollOver = function() {
var mn:Tween = new Tween(this, "_alpha", Strong.easeOut, 50, 80, 0.5, true);
b.attachMovie(i,"newback"+i,i);
code, it works for tweening but i cant attach the movie clip which is identified as “background1” and ++…
i cant find a way to do this…
here is the fla www.suleymangezgin.com/kirupahelp2a.fla and thank you…
import mx.transitions.Tween;
import mx.transitions.easing.*;
var links:Array = new Array();
links[0] = "People & Portraits";
links[1] = "Conceptual";
links[2] = "Fashion";
links[3] = "Animals & Plants";
var xpos = 0;
var ypos = 0;
for (i=0; i<links.length; i++) {
attachMovie("container","new"+i,i,{_x:xpos, _y:ypos});
this["new"+i].link.text = links*;
ypos += this["new"+i]._height+0.5;
this["new"+i].back.onRollOver = function() {
var mn:Tween = new Tween(this, "_alpha", Strong.easeOut, 50, 80, 0.5, true);
b.attachMovie(i,"newback"+i,i);
};
this["new"+i].back.onRollOut = function() {
var mn:Tween = new Tween(this, "_alpha", Strong.easeOut, this._alpha, 50, 0.5, true);
};
this["new"+i].back.onPress = function() {
var mn:Tween = new Tween(this, "_alpha", Strong.easeOut, 80, 100, 0.5, true);
};
this["new"+i].back.onRelease = function() {
var mn:Tween = new Tween(this, "_alpha", Strong.easeOut, 100, 50, 0.5, true);
};
}