Hellooo!
could you help me on this one?
Picture this: I have a series of 10 btns that all need to be alpha0 upon entering the frame. There is a btn called “btnOverall” and when the user presses this btn I want the series of 10 buttons to fade up to alpha100 one after the other.
So, I have something worked out that works but is not totally what I want and I dont know if it is the right way to go about it either…
I have it so that when you enter the frame the series of 10 btns fade to alpha 100 one after the other but I cant figure out how to switch it do doing that onRelease of btnOverall. So i tried switching the actionscript to btnOverall.onRelease = function(); etc but when I export it you have to keep pressing btnOverall to and the btn go to alpha100 little by little upon each release of the btn. (hopefully that makes any sense…)
Here is the actionscript that I used:
function init() {
for (var i:Number = 0; i<=10; i++) {
this["solidity"+i+"_btn"]._alpha = 0;
}
}
init();
btnOverall.onRelease = function() {
solidity1_btn._alpha += 11;
if (solidity1_btn._alpha>=99) {
solidity1_btn._alpha += 11;
solidity2_btn._alpha += 11;
if (solidity2_btn._alpha>=99) {
solidity2_btn._alpha = 100;
solidity3_btn._alpha += 11;
if (solidity3_btn._alpha>=99) {
solidity3_btn._alpha = 100;
solidity4_btn._alpha += 11;
if (solidity4_btn._alpha>=99) {
solidity4_btn._alpha = 100;
solidity5_btn._alpha += 11;
if (solidity5_btn._alpha>=99) {
solidity5_btn._alpha = 100;
solidity6_btn._alpha += 11;
if (solidity6_btn._alpha>=99) {
solidity6_btn._alpha = 100;
solidity7_btn._alpha += 11;
if (solidity7_btn._alpha>=99) {
solidity7_btn._alpha = 100;
solidity8_btn._alpha += 11;
if (solidity8_btn._alpha>=99) {
solidity8_btn._alpha = 100;
solidity9_btn._alpha += 11;
if (solidity9_btn._alpha>=99) {
solidity9_btn._alpha = 100;
solidity10_btn._alpha += 11;
if (solidity10_btn._alpha>=99) {
solidity10_btn._alpha = 100;
}
}
}
}
}
}
}
}
}
}
};