Flash Q
- Started
- Last post
- 15 Responses
- Innovate
Hi, ok heres the link
http://www.re-generate.co.uk/tes…
Now what im tryna do :)
ok with the image on the right i want it to fade out to say 25 opacity not straight away as it does on the site now, so when you click a link from the main apage it will fade out to 25 and will do the same wchich ever link you click on so say you try going from students to info it wlil stay at 25 opacity but if you click the home button( not 1 on there yet) it will fade back to 100 opacity , an so on, i think u get the idea
how can i do this with as? Thanks before hand :)
- Innovate0
use the students link as example, none of the others are there yet thanks,
- REDWOOD0
Nothing happens
No swf
- Innovate0
try again it works,
- ganon0
put this in the _root...:
this.bttn_mc.onPress = function() {
this.onEnterFrame = function() {
this._parent.img_mc._alpha--;
if (this._parent.img_mc._alpha (insert less than sign)= 25) {
this._parent.img_mc._alpha = 25;
delete (this.onEnterFrame);
}
}
}
- ganon0
then this for the home bttn...:
this.bttn02_mc.onPress = function() {
this.onEnterFrame = function() {
this._parent.img_mc._alpha++;
if (this._parent.img_mc._alpha (insert greater than sign)= 100) {
this._parent.img_mc._alpha = 100;
delete (this.onEnterFrame);
}
}
}//(insert greater than sign) replace this with sign...NT dont like them
- Innovate0
will that make it blend out smoothly to that opacity or so it instantly? i want to to blend out and blend in when go to home
- ganon0
did you try it?..its a smooth fade....
- Innovate0
about to try it now, thanks ill let u no how it goes
- REDWOOD0
Still doesn't do it, but i think it's my problem and i see there are some noble man bussy with you
- Innovate0
iv tried it , it did make the image fade out to the correct opacity , but it didnt fade out ,did it instantly , aslo it appear to interfear with the rollovers animation. any ideas?
thanks
- ganon0
fades out perfectly here...whats your rollover animation code...?
- Innovate0
its on a hitstate button inside the bttn_mc
on (rollOver) {
gotoAndPlay("over");
}
on (rollOut) {
gotoAndPlay("out");
}
on (press) {
_parent.gotoAndStop("10");
}
- ganon0
you could take the code out of your mc/button and put this in the a _root frame...:
this.bttn_mc.onRollOver = function() {
this.gotoAndPlay("over");
}this.bttn_mc.onRollOut = function() {
this.gotoAndPlay("out");
}this.bttn_mc.onPress = function() {
this.gotoAndStop("10");
this.onEnterFrame = function() {
this._parent.img_mc._alpha--;
if (this._parent.img_mc._alpha (insert less than sign)= 0) {
delete (this.onEnterFrame);
}
}
}
- Innovate0
ok thats exellent thanks the only problem now is it doesnt go to frame ten when i click it ?
thanks
- Innovate0
ok i got it working , thanks alot for your help , much appreciated.