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
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
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
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
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) {
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 != )
{
6 matches
Mail list logo