kdzines
July 21st, 2003, 09:51 AM
hey everyone,
I am working on a photo gallery type thing and i decided to use the infinite menu idea posted in kirupa.
Wanted it vertical, so made a couple of changes, no problem!
i want the picture buttons to be clickable to load larger images. To test, i just added a text box called "words" to just see if the numbers changed ok when i clicked the various buttons.
It all seemed to work fine, but now there is an amazingly strange problem.
the buttons become dysfunctional if you try to mouse over the first image (which is tinted green), and then randomly become active again. I know it sounds odd but i have debugged and can't figure out any reason why!
so i have this code on a layer:
_root.slider.cc2.onPress = function() {
_root.words = 2;
};
_root.slider.cc3.onPress = function() {
_root.words = 3;
};
_root.slider.cc4.onPress = function() {
_root.words = 4;
};
_root.slider.cc5.onPress = function() {
_root.words = 5;
};
_root.slider.cc6.onPress = function() {
_root.words = 6;
};
_root.slider.cc7.onPress = function() {
_root.words = 7;
};
_root.slider.cc8.onPress = function() {
_root.words = 8;
};
_root.slider.cc9.onPress = function() {
_root.words = 9;
};
_root.slider.cc10.onPress = function() {
_root.words = 10;
};
ycenter = 175;
speed = 1/40;
this.onEnterFrame = function() {
var distance = _root._ymouse-ycenter;
_root.slider._y -= (distance*speed);
if (_root.slider._y>0) {
_root.slider._y = -630;
}
if (_root.slider._y<-630) {
_root.slider._y = 0;
}
};
Is this some strange bug with the infinite menu? Please have a look at the fla as it becomes completely obvious.
If anyone can help, or at least come up with a work around, i would appreciate it very much.
thanks!
kd
I am working on a photo gallery type thing and i decided to use the infinite menu idea posted in kirupa.
Wanted it vertical, so made a couple of changes, no problem!
i want the picture buttons to be clickable to load larger images. To test, i just added a text box called "words" to just see if the numbers changed ok when i clicked the various buttons.
It all seemed to work fine, but now there is an amazingly strange problem.
the buttons become dysfunctional if you try to mouse over the first image (which is tinted green), and then randomly become active again. I know it sounds odd but i have debugged and can't figure out any reason why!
so i have this code on a layer:
_root.slider.cc2.onPress = function() {
_root.words = 2;
};
_root.slider.cc3.onPress = function() {
_root.words = 3;
};
_root.slider.cc4.onPress = function() {
_root.words = 4;
};
_root.slider.cc5.onPress = function() {
_root.words = 5;
};
_root.slider.cc6.onPress = function() {
_root.words = 6;
};
_root.slider.cc7.onPress = function() {
_root.words = 7;
};
_root.slider.cc8.onPress = function() {
_root.words = 8;
};
_root.slider.cc9.onPress = function() {
_root.words = 9;
};
_root.slider.cc10.onPress = function() {
_root.words = 10;
};
ycenter = 175;
speed = 1/40;
this.onEnterFrame = function() {
var distance = _root._ymouse-ycenter;
_root.slider._y -= (distance*speed);
if (_root.slider._y>0) {
_root.slider._y = -630;
}
if (_root.slider._y<-630) {
_root.slider._y = 0;
}
};
Is this some strange bug with the infinite menu? Please have a look at the fla as it becomes completely obvious.
If anyone can help, or at least come up with a work around, i would appreciate it very much.
thanks!
kd