Try to follow how we make our SWCs and put your custom component in a SWC. Try copying the HTML5 folder as a starting point.
HTH, -Alex On 2/22/17, 9:58 PM, "PKumar" <[email protected]> wrote: >Yes, I am using it at application level. >Will it be available at Library project? Please clarify. > >On 23-Feb-2017 2:24 AM, "Peter Ent [via Apache Flex Users]" < >[email protected]> wrote: > >The WrappedHTMLElement is only available when compiling with COMPILE::JS >blocks which are available within the FlexJS framework projects. > >Are you trying to build this at the application level? > >Regards, >Peter Ent >Adobe Systems/Apache Flex Project > >On 2/22/17, 1:50 PM, "PKumar" <[hidden email] ><http:///user/SendEmail.jtp?type=node&node=14723&i=0>> wrote: > >>I wrote following code: >> >>override protected function createElement():IFlexJSElement >> { >> element = document.createElement('input') as WrappedHTMLElement; >> element.setAttribute('type', 'file'); >> element.className = 'FileInput'; >> typeNames = 'FileInput'; >> >> //attach input handler to dispatch flexjs change event when user write >>in >>textinput >> goog.events.listen(element, 'input', fileChangeHandler); >> >> positioner = element; >> positioner.style.position = 'relative'; >> element.flexjs_wrapper = this; >> >> return element >> } >> >>Please suggest. >> >> >> >>----- >>Regards, >>Prashant >>-- >>View this message in context: >>http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Unable-to-access-Wr >>a >>ppedHTMLElement-tp14717p14721.html >>Sent from the Apache Flex Users mailing list archive at Nabble.com. > > > >------------------------------ >If you reply to this email, your message will be added to the discussion >below: >http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Unable-to-access- >WrappedHTMLElement-tp14717p14723.html >To start a new topic under Apache Flex Users, email >[email protected] >To unsubscribe from Apache Flex Users, click here ><http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m >acro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0M >TcyMzE2NA==> >. >NAML ><http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?m >acro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.n >amespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.v >iew.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Ae >mail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble >%3Aemail.naml> > > > > >----- >Regards, >Prashant >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Unable-to-access-Wra >ppedHTMLElement-tp14717p14724.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.
