| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2003
Posts: 222
|
I'm using this function to fade out some movie clips on press
Code:
function community() {
community = new Array(1, 2, 3, 6, 9, 11, 13, 16, 7);
for (z=0; z<community.length; ++z) {
i = community[z];
_root.cylinder["cylinder_small"+i].fadeout(30);
}
}
on(press){ community()}
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Feb 2003
Posts: 222
|
This is code im using to fade out
Code:
MovieClip.prototype.fadeout = function(goalalpha) {
this.onEnterFrame = function() {
if (this._alpha>=goalalpha) {
this._alpha -= _global.speed;
} else {
delete this.onEnterFrame;
}
};
};
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Feb 2003
Posts: 222
|
help needed asap
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic function question | nate63179 | ActionScript 2.0 | 2 | 03-28-2006 12:09 AM |
| 2 primitive numbers not showing up as equal when returned from OOP functions | arianhojat | ActionScript 2.0 | 12 | 03-14-2006 08:37 PM |
| Question about a function playing sounds | scanman20 | ActionScript 2.0 | 10 | 01-24-2006 04:53 AM |
| Need help making this run faster | MAYAaddict | ActionScript 2.0 | 3 | 11-17-2005 11:09 PM |
| tweenining with AS | lelales | ActionScript 2.0 | 5 | 04-26-2005 11:05 PM |