Groups | Blog | Home
all groups > flash actionscript > march 2005 >

flash actionscript : objectname to a variable



Andrea Corrado Campitelli
3/8/2005 8:25:52 PM
hi i have th following problem

programming a onscreen keyboard

if i set the focus to an textfield, this will activate the keyboard

some_mc.nickname_tf.onSetFocus=function(){
_root.attachMovie("tastatur_mc","tastatur_mc",10
tastatur_mc.focus=Selection.getfocus()
}

in the tastatur_mc:

key_mc.onRelease=function(){
trace(this._parent.focus)//in the output window:dann
_level0.irgendein_mc.nickname_tf
this._parent.focus.text += this.label
//that's not working cause this._parent.focus.text = undefined...
}
}


i know why, but i don't how to do it right
thanks

andrea
man muß nicht alles wissen, nur wo man fragen kann :-)))


kglad
3/9/2005 4:37:13 AM
AddThis Social Bookmark Button