Start a new topic

onClick htmlDrawable

onClick htmlDrawable


Hi Mueataz,

are the drawable overlapping or very close, so that you might always click on the same? Otherwise there must be some error in your code.

Best regards,
Simon

hi

why when ever i click on a html drawable always fires the first-defined html drwabale

i want to know how to define 2 html drawable each one fires it`s own onClick event

    htmlObj = new AR.HtmlDrawable({ uri: "assets/email/emailComp.html" },

        1,

        { onClick:CallFun, onLoaded: ContentLoaded, onError: ContentError });

 

    htmlObj2 = new AR.HtmlDrawable({ uri: "assets/phone/phone.html" },

    1,

    { onClick:emailFun, onLoaded: ContentLoaded, onError: ContentError });

 

    htmlObj3 = new AR.HtmlDrawable({ uri: "assets/logo/logoComp.html" },

    1,

    { onLoaded: ContentLoaded, onError: ContentError });
Login or Signup to post a comment