Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
duppdawg webforumsuser@macromedia.com #1
array question help
i am new to arrays and have practiced some tutorials for instance aligning information in rows and columns then categorizing them numerically, alphabetically, etc...
however, can i put multiple mcs in an array and just call the array in function. i have long code like this that could be shortened...
//// notice how all mcs do the same thing
//// however it is not practical for this animation to create one big mc
axis_mc.next_btn.onRelease = function () {
globe_mc.onEnterFrame = this.myOnEnterFrame7;
axis_mc.onEnterFrame = this.myOnEnterFrame8;
mouseover_text.onEnterFrame = this.myOnEnterFrame9;
beta_btn_mc.enabled = false;
}
axis_mc.next_btn.myOnEnterFrame7 = function () {
this._alpha -= 6;
if (this._alpha <= 1) {
delete this.onEnterFrame;
gotoAndPlay (4);
}
}
axis_mc.next_btn.myOnEnterFrame8 = function () {
this._alpha -= 6;
if (this._alpha <= 1) {
delete this.onEnterFrame;
gotoAndPlay (4);
}
}
axis_mc.next_btn.myOnEnterFrame9 = function () {
this._alpha -= 6;
if (this._alpha <= 1) {
delete this.onEnterFrame;
gotoAndPlay (4);
}
}
duppdawg webforumsuser@macromedia.com Guest
-
2-Dimensional Array Question
This is my first time using an array. 1. My code seems to work but I need to return a count from each piece of the array (the number of each... -
Array question
hi, this is a piece of code from a program. ---- my $size; my $realPath; my @filterArray; open READFILTEREDLIST,'</tmp/FILTEREDLIST' or die... -
simple array question?
On 12-Aug-2003, "Randell D." <you.can.email.me.at.randelld@yahoo.com> wrote: http://www.php.net/manual/en/function.list.php -- Tom... -
array question (grep -v on array)
Hi, I have an output of errors fed into an array, after which I only look at things I care about and put them in a different array: ... -
[PHP] ARRAY QUESTION
Dale Hersh <mailto:dalehersh@hotmail.com> on Thursday, July 24, 2003 12:41 PM said: unset($myStuff); -
juankpro webforumsuser@macromedia.com #2
Re:array question help
you can do it this way:
myClips = [globe_mc, axis_mc, mouseover_text];
axis_mc.next_btn.onRelease = function () {
for (var i in myClips)
myClips.onEnterFrame = this.myOnEnterFrame;
beta_btn_mc.enabled = false;
}
axis_mc.next_btn.myOnEnterFrame = function () {
this._alpha -= 6;
if (this._alpha <= 1) {
delete this.onEnterFrame;
gotoAndPlay (4);
}
}
juankpro webforumsuser@macromedia.com Guest



Reply With Quote

