|
|
Please Help [as1]
please help, I searched everywhere for something to get this to work for me, can't move on with my project until I've solved this.
please. someone. anyone.
In my file I have a mc with a JPG in, that when a button is pressed:
1> the alpha is set to 0,
2> it goes to the desired frame (depending on which button is pressed)
3>and a new JPG loads into the mc,
4>then the _alpha of the MC goes back to 100
I have another control mc at the moment for the 1st and the 2nd:
<AS> currentalpha = _root.bg._alpha; if (currentalpha == finalalpha) { _root.gotoAndPlay(45); } diffalpha = (finalalpha-currentalpha)/3; _root.bg._alpha = currentalpha+diffalpha; </AS>
and this on the button
<AS> on (release) { _root.fader.finalalpha = 0; _root.fader.play(); } </AS>
the problem I have at the mo is that the 4th part (setting the alpha back to 100) doesn't work......as I have currently done this with a tween in the main timeline, and because of the script this is ignored now.
Ultrashock Forums > Flash > ActionScript
Posted on: 2004-02-03
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|