[Flashcoders] _targetInstanceName?

2005-12-23 Thread Mark Ribau
Hey folks, I'm in Flash 8 Pro, building for Flash 7 player. I'm trying to get _targetInstanceName working, but I can't seem to get it to work. Does anyone have a good example of how to get it working? -- Mark Ribau Lead Windows Developer | My Tech Blog

Re: [Flashcoders] _targetInstanceName?

2005-12-23 Thread eric dolecki
You mean mc._name ? On 12/23/05, Mark Ribau [EMAIL PROTECTED] wrote: Hey folks, I'm in Flash 8 Pro, building for Flash 7 player. I'm trying to get _targetInstanceName working, but I can't seem to get it to work. Does anyone have a good example of how to get it working? -- Mark Ribau

Re: [Flashcoders] _targetInstanceName?

2005-12-23 Thread Hans Wichman
Hi, if you create a component and hook up a class to it, and provide a method such as: [Inspectable(_targetInstanceName=)] function set _targetInstanceName(targetName:String) { //do whatever } you can drag and drop your component on another clip and

Re: [Flashcoders] _targetInstanceName? Events?

2005-12-23 Thread Mark Ribau
Ok, I got that part working, but how does the thing I dropped it on get the events from the component I dropped onto it ? I tried: this.addEventListener(onScroll, this.target); but that didn't seem to work. Hans Wichman wrote: Hi, if you create a component and hook up a class to it, and

Re: [Flashcoders] _targetInstanceName? Events?

2005-12-23 Thread Hans Wichman
Hi, if you got your target through something like: this.target = this._parent[this._targetInstanceName] that should work. You might have to do something like: [Inspectable(_targetInstanceName=)] function set _targetInstanceName(targetName:String) {

Re: [Flashcoders] _targetInstanceName? Events?

2005-12-23 Thread Mark Ribau
I got this: (XScroller Class): [Bindable] [Inspectable(defaultValue=)] function set _targetInstanceName(targetName:String):Void { this._TargetName = targetName; this._Target = this._parent[this._TargetName]; if ( this._Target != ) {