View Full Version : Disable all buttons tab by default?
pixelmana
01-03-2006, 05:32 AM
hi there, is it possible, in flash8, to disable the tab ordering functions for all any buttons or movie clips? My situation is that I have a plenty of swf loaded by loadMovie(). It is so dummy to hard code to disable all tab ordering for their buttons/movieclips inside the swf files. Now, I have to disable them in every swf files or frames.
Thanks so much.
Billy T
01-03-2006, 08:41 AM
could use tabEnabled = false to disable them and something like
for (i in _root) {
if (typeof (_root[i]) == "MovieClip") {
_root[i].tabEnabled=false;
}
}
Flash Gordon
01-05-2006, 03:42 AM
Anyone got any idea why I can't get a trace of the movieclips on _root?
function wave() {
trace("wave called");
for (i in _root) {
if (typeof (_root[i]) == "MovieClip") {
//if (typeof (i) == "MovieClip") {
mc = _root[i];
trace(mc);
//tweenSize(mc);
}
}
}
wave();
Flash Gordon
01-05-2006, 03:50 AM
Fixed:
function wave() {
trace("wave called");
for (i in _root) {
//trace(i);
i = eval(i);
//trace(i+" = "+typeof (i));
if (typeof (i) == "movieclip") {
trace("fired");
trace(i);
//tweenSize(mc);
}
}
}
wave();
Billy T
01-05-2006, 03:57 AM
sry it should have been movieclip not MovieClip
function wave() {
trace("wave called");
for (i in _root) {
trace(typeof (_root[i]));
if (typeof (_root[i]) == "movieclip") {
trace("fired");
trace(i);
}
}
}
wave();
Flash Gordon
01-05-2006, 04:00 AM
thanks, bud. I just caught that and edited my post!
bluesammy33
02-02-2007, 01:03 PM
If you want to disable tab ordering, I've found this works pretty well:
1. Set the tabIndex of any of your MovieClips or Buttons to 1
2.Set the tabEnabled property of that same MovieClip or Button to false.
mybutton_btn.tabIndex = 1;
mybutton_btn.tabEnabled = false;
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.