Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: F5 AS beginners basic Q |
From: | gabriel |
Date: | Mon, 11 Sep 2000 21:40:34 +0100 |
how can I add a function or method to a MC
I created with .attachMovie() ?
this is what I try but its not really working :
//attaching clips + functions:
objlist = new Array();
for (i=1; i<5; i++) {
this.attachMovie("mc_blah", "static"+i, i);
objlist[i] = this["static"+i];
this["static"+i].myvar = "myvalue";
this["static"+i].myfunct = myfunct;
this["static"+i].myotherfunct = myotherfunct;
}
// test funtion now
for (i=1; i<5; i++) {
objlist[i].myfunct();
objlist[i].myotherfunct();
}
// functions
function myfunct () {
myvar = "changed value";
mysecondvar = "anything";
}
function myotherfunct () {
test = _parent;
}
//nextframe:
stop();
the debugger shows strange things then
guess this must me done completely different ? how ??
__gabriel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]