Nice one guys you got me sorted.
:-) On 16 Dec 2010 16:06, "Fabrice3D" <[email protected]> wrote: > oh and you could also set object = myMesh; > and all other custom vars defined into this event class. > then check on object instead of target prop. > > but since you do know the object you want, it doesn't really... > > Fabrice > > > On Dec 16, 2010, at 4:49 PM, Greg209 wrote: > >> How about something like..... >> >> private var myTargetOverride:Object3D; >> >> private function someClass():void { >> myTargetOverride = someOtherObject3DTypeThing; >> DoSomething(null); >> } >> >> public function DoSomething(e:MouseEvent):void { >> var target:*; >> if (e) { >> target = e.target; >> } else { >> if (myTargetOverride) { >> target = myTargetOverride; >> } >> } >> } >> >> How does that work for you? >> >> Greg >
