Hi all,
  Thanks for all the replies to my previous posts.  You guys are
really helping me learn this stuff.  Hopefully by the time Flex2 ships
I'll be able to start to give back too...

OK.  I'm trying to actually start using my own packages and classes. 
I've created a new class that extends HTTPService and simply adds one
new property:

package com.jbe.picfindr 
{
        
import mx.rpc.http.HTTPService;
 
    [Property(name="_siteID", type="String")]
    public class pfHTTPService extends HTTPService {
        
        public function pfHTTPService()
        {
            super();
            public var _siteID:String = "";
            public function get siteID() 
            {
                return _siteID;
                }
                public function set siteID(value:uint)
                {
                        _siteID = value;
                }
        }
        
    }   
         
}

This file is called pfHTTPService.as and it lives in a folder called
com.jbe.picfindr, which shows up as a package in Flex code hints. 
When I go to create a new instance in an actionscript block (which
includes the line "import com.jbe.picfindr.pfHTTPService;", I get "not
a compile time constant" and "trying to access possibly undefined
method" errors.  I instatiate it like this:

var service:pfHTTPService = new pfHTTPService();

Any thoughts?

Thanks in advance!

Rick
        





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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to