touchstart button problem


hi,

 

i posted problem before thought might better repost code examples problem driving crazy!

 

in test widget build ibooks have 'check answers' button should reveal either cross or tick depending on whether answer entered text field correct or not .. button hides , shows reset question button.

 

the problem when widget run on ipad make functionality work have keep finger held on button not ideal ..

 

here code check answers button:

 

.touchstart

//sets questions check mode //make sure pick questions var pagediv = sym.getsymbolelement("page") var pagechilds = sym.getchildsymbols(pagediv);  var theclass = $(sym).attr("class");  (i=0; i<pagechilds.length; i++){           var questiondiv = pagechilds[i].getsymbolelement("question")            var qchilds = sym.getchildsymbols(questiondiv);            var qclass = $(questiondiv).attr("class");            if (qclass == "question"){                     // playfrom test check                     pagechilds[i].play("test");            } }  //make sure right button showing other 1 decides appear when not wanted sym.$("resetbutton").show(); sym.$("answerbutton").hide(); 

 

and code reset questions button:

 

.touchstart

//sets questions check mode //make sure pick questions var questionsdiv = sym.$("questions"); var childquestions = sym.getchildsymbols(questionsdiv); var theclass = $(questionsdiv).attr("class");  (i=0; i<childquestions.length; i++){           //get question           childquestions[i].play("init");  }  //make sure right button showing coz other 1 decides appear when not wanted sym.$("answerbutton").show(); sym.$("resetbutton").hide(); 

 

 

both buttons have same problem yet in desktop browser whole thing works fine ..

 

any suggestions greatfully received, reading!

hi,

 

"in desktop browser whole thing works fine."

which one?

$(sym).attr("class"); returns undefined. browser: safari.

"reset questions button": symbol ?

it easier seeing complete file.



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached