animus3
02-01-2006, 07:53 PM
ok.
my setup:
an FLA that loads a bunch of functions on first frame.
one of these functions is a closer function
my code for the closer function:
function closer() {
//for loop to cycle through and close clips
for (var i = 1; i<=140; i++) {
_root["page"+i].gotoAndPlay(2);
}
//removes clips from memory by moving clip timeline to empty keyframe
_root.columnLeft.gotoAndStop(2);
_root.columnRight.gotoAndStop(2);
_root.myCDMapText.gotoAndStop(2);
_root.cdMapState = false;
_root.myPlaceCheck();
}
my problem:
when I try to call the function from anything but a button flash igonores the command.
this works:
on(release){
_root.closer();
}
but this doesn't:
onClipEvent(load){
_root.closer();
}
and it doesn't work when called from root either:
(ie.) closer(); or _root.closer();
is ignored
any thoughts?
my setup:
an FLA that loads a bunch of functions on first frame.
one of these functions is a closer function
my code for the closer function:
function closer() {
//for loop to cycle through and close clips
for (var i = 1; i<=140; i++) {
_root["page"+i].gotoAndPlay(2);
}
//removes clips from memory by moving clip timeline to empty keyframe
_root.columnLeft.gotoAndStop(2);
_root.columnRight.gotoAndStop(2);
_root.myCDMapText.gotoAndStop(2);
_root.cdMapState = false;
_root.myPlaceCheck();
}
my problem:
when I try to call the function from anything but a button flash igonores the command.
this works:
on(release){
_root.closer();
}
but this doesn't:
onClipEvent(load){
_root.closer();
}
and it doesn't work when called from root either:
(ie.) closer(); or _root.closer();
is ignored
any thoughts?