i am trying to declare a constant in an interface

package com.company.airdale.model {
   
   

    import flash.events.IEventDispatcher;
   
    public interface IStream  extends IEventDispatcher{
        const UPDATED:String ="streamUpdated";
        function getTotalAt(index:int):Number;   
       
        function get streamLength():int;
       
       
        function get streamType():int;
        function get streamName():String;
       
       
        function set startTime(v:uint):void;
        function get startTime():uint;
        }
}

getting the error "variable declarations are not permitted in interfaces". but a constant is not a variable, its set at compile time so why is this not allowed?


--
j:pn


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to