Well,

for starters;

com.jbe.picfindr

should be

projectroot/com/jbe/picfinder/pfHTTPService.as

Try that, you need the dots to be actuall directory structure.

Are you dead ending the :

HTTPService(rootURL:String = null)

signature?

If not, your super needs to look like

super(rootURL:String = null);

Peace, Mike

On 3/16/06, revanisle <[EMAIL PROTECTED]> wrote:
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




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


YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
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