I am trying to create a file control using FlexJS. I write below mentioned
code but it is not  compiling. getting lots of error. can any one check &
provide suggestion? 


package comp
{
        import flash.events.IEventDispatcher;
        
        import org.apache.flex.core.IStrand;
        import org.apache.flex.core.IUIBase;
        
        COMPILE::JS
        {
                import org.apache.flex.core.UIBase;
                import org.apache.flex.core.WrappedHTMLElement;
        }

        COMPILE::JS
        public class FileUploader  extends UIBase implements IStrand,
IEventDispatcher, IUIBase
        {
                public function FileUploader()
                {
                        super();
                }
                
                override protected function createElement():WrappedHTMLElement
                {
                        element = document.createElement('input') as 
WrappedHTMLElement;
                        element.setAttribute('type', 'file');
                        positioner = element;
                        positioner.style.position = 'relative';
                        element.flexjs_wrapper = this;
                        return element;
                }
        }
}


*E:\FlexWorkspace47\FlexJSLib\src\comp\FileUploader.as:8
Can not resolve config constant: 'JS'
        COMPILE::JS
        ^

E:\FlexWorkspace47\FlexJSLib\src\comp\FileUploader.as:14
Access of possibly undefined property COMPILE.
        COMPILE::JS
        ^

E:\FlexWorkspace47\FlexJSLib\src\comp\FileUploader.as:15
The definition of base class UIBase was not found.
        public class FileUploader  extends UIBase implements IStrand,
IEventDispatcher, IUIBase*



-----
Prashant
Sr. Product Specialist, Sungard
--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/FlexJS-FileUploader-Control-tp12072.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to