Accessibility and onPress
i developing basic drag , drop activity in flash 8 , attempting make accessibile. have run problem screen reader won't read text or _accprops textfield parent movie clip has onpress handler applied (the object being dragged).
the textfield has html set true , displays imported xml. seems dynamic textfields don't receive focus have set type input, works fine. how applying stylesheet prevents being editable behaves dynamic field anyway.
i have tested in ms internet explorer using demo version of window eyes.
does 1 have info on why happens , how work? thanks.
the textfield has html set true , displays imported xml. seems dynamic textfields don't receive focus have set type input, works fine. how applying stylesheet prevents being editable behaves dynamic field anyway.
i have tested in ms internet explorer using demo version of window eyes.
does 1 have info on why happens , how work? thanks.
a solution - found work around after posting forum. use mouselistener onmousedown event function , hittest on movie clip dragged. eg
/***** accessible alternative using movieclip.onpress dragable movie clips *****/
var mouselistener:object = new object();
mouselistener.onmousedown = function() {
if (drag_mov.hittest(_root._xmouse, _root._ymouse, true) , drag_mov.enabled){
drag_mov.startdrag(false, 0, 0, 200, 200)
}
}
mouselistener.onmouseup = function() {
if (drag_mov.hittest(_root._xmouse, _root._ymouse, true) , drag_mov.enabled ){
stopdrag();
drag_mov.enabled = false;
}
}
mouse.addlistener(mouselistener);
/***** end of code *****/
depending on how write code dragged movie clip, may need couple of traps testing if drag moive clip has been dropped ( used movieclip.enabled property) prevent unwanted behaviour. hope helps someone. :-)
/***** accessible alternative using movieclip.onpress dragable movie clips *****/
var mouselistener:object = new object();
mouselistener.onmousedown = function() {
if (drag_mov.hittest(_root._xmouse, _root._ymouse, true) , drag_mov.enabled){
drag_mov.startdrag(false, 0, 0, 200, 200)
}
}
mouselistener.onmouseup = function() {
if (drag_mov.hittest(_root._xmouse, _root._ymouse, true) , drag_mov.enabled ){
stopdrag();
drag_mov.enabled = false;
}
}
mouse.addlistener(mouselistener);
/***** end of code *****/
depending on how write code dragged movie clip, may need couple of traps testing if drag moive clip has been dropped ( used movieclip.enabled property) prevent unwanted behaviour. hope helps someone. :-)
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment