OK, in an effort to streamline the grossly inflated scripting within my .fla, I am trying to employ the use of some variables and functions...
I have the following list of MCs:
_root.icona
_root.iconb
_root.iconc
_root.icond
_root.icone
_root.iconf
they are all draggable MCs, upon crossing a threshold (x=700) a global variable named "homebase" reads a,b,c,d,e,or f indicating the corresponding MC is in position for a given function to be applied. something like this
function stretch () {
_xscale = 200;
gotoAndPlay (2);
}
I would like to set up something that works along these lines but can't get it to work...
onClipEvent (enterFrame) {
_root.icon + homebase +.stretch;
}
any tips on how to make it work? I think the key lies somewhere in getting the variable within the path (I am tracing homebase and it seems to work properly), but I am losing any semblance of patience with it all. Any help would be greatly appreciated.
TIA
bugg
I have the following list of MCs:
_root.icona
_root.iconb
_root.iconc
_root.icond
_root.icone
_root.iconf
they are all draggable MCs, upon crossing a threshold (x=700) a global variable named "homebase" reads a,b,c,d,e,or f indicating the corresponding MC is in position for a given function to be applied. something like this
function stretch () {
_xscale = 200;
gotoAndPlay (2);
}
I would like to set up something that works along these lines but can't get it to work...
onClipEvent (enterFrame) {
_root.icon + homebase +.stretch;
}
any tips on how to make it work? I think the key lies somewhere in getting the variable within the path (I am tracing homebase and it seems to work properly), but I am losing any semblance of patience with it all. Any help would be greatly appreciated.
TIA
bugg