Can you share your code? I am sure I could tell you whats wrong if I can see
what your doing but I am just not sure from the little bit of info I have.

Dan

On Fri, May 30, 2008 at 10:28 AM, justSteve <[EMAIL PROTECTED]>
wrote:

>   Thankx...if i set code as you suggest I eliminate the compiler error
> but it causes this problem:
>
> The class I'm trying to hit has already instantiated by the time the
> MXML file calls getData (it's called from the creationComplete
> handler). Creating a new one from my MXML file won't work cuz the
> constructor won't get valid data.
>
>
> On Fri, May 30, 2008 at 8:46 AM, Dan Vega <[EMAIL 
> PROTECTED]<danvega%40gmail.com>>
> wrote:
> > The static error leads me to believe you have not instantiated your
> object
> > yet. Have you created the object or are you directly trying to call the
> > method?
> >
> > var obj:myObject = new myObject();
> > obj.getData();
> >
> >
> > On Fri, May 30, 2008 at 9:42 AM, justSteve <[EMAIL 
> > PROTECTED]<steve%40stevelearnsflex.com>
> >
> > wrote:
> >>
> >> I have a public class that defines a method as:
> >>
> >> public function getData( ):String
> >> {
> >> return "mData";
> >> }
> >>
> >> In an mxml file, I've imported that package and attempt to call ( _nav
> >> = getData(); ) but get '1061: Call to a possibly undefined method
> >> getData through a reference with static type Class.' I've tried fully
> >> qualifying the object (_nav = com.myObject.getData(); ) with the same
> >> result.
> >>
> >> Obviously I'm missing something very, very basic.
> >>
> >> thx
> >> --steve...
> >>
> >> Messages in this topic (1) Reply (via web post) | Start a new topic
> >> Messages
> >> --
> >> Flexcoders Mailing List
> >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >> Change settings via the Web (Yahoo! ID required)
> >> Change settings via email: Switch delivery to Daily Digest | Switch
> format
> >> to Traditional
> >> Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
> >> Recent Activity
> >>
> >> 103
> >> New Members
> >>
> >> Visit Your Group
> >> Yahoo! Finance
> >>
> >> It's Now Personal
> >>
> >> Guides, news,
> >>
> >> advice & more.
> >>
> >> Discover Tips
> >>
> >> on healthy living
> >>
> >> and healthy eating
> >>
> >> on Yahoo! Groups.
> >>
> >> Cat Zone
> >>
> >> on Yahoo! Groups
> >>
> >> Join a Group
> >>
> >> all about cats.
> >>
> >> .
> >> __,_._,_
> >
> >
>  
>



-- 
Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org

Reply via email to