for the sake of consistency really, i just wanted the name of the implementation to be the same as the presentation and figured it should be ok since the namespaces were different...i know if i change the name it'll work, but i was hoping there was something else to it... thanks much
percy On Sun, Jun 14, 2009 at 10:14 AM, Tracy Spratt <tr...@nts3rd.com> wrote: > > > “…there are 2 MediaProfiles…” that would be where I looked first. Why > are there two classes with the same name in the project? > > > > Tracy Spratt, > > Lariat Services, development services available > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *[p e r c e p t i c o n] > *Sent:* Saturday, June 13, 2009 8:11 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: ambiguous reference error > > > > > > > Hi Tracy, > > > > this is line 349 > > var target:MediaProfile = this; > > > > ?? > > > > actually i have 2 errors stating the same thing but on a different line > number (517) > > > > this is line 517 > > (MediaProfile)._watcherSetupUtil = watcherSetupUtil; > > > > > > but yes...there are 2 MediaProfiles...but in different namespaces...one is > in com.media.forms -- the code-behind....and the other is in com.media.views > -- the mxml component... > > > > thanks for all your help > > > > > > > > On Sat, Jun 13, 2009 at 2:28 PM, Tracy Spratt <tr...@nts3rd.com> wrote: > > > > Please post what is on line: > > 349 in the generated class MediaProfile-generated.as > > > > Tracy Spratt, > > Lariat Services, development services available > ------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *[p e r c e p t i c o n] > *Sent:* Saturday, June 13, 2009 4:06 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: ambiguous reference error > > > > > > oh yes, i've done this but it doesn't reveal anything... > > On Sat, Jun 13, 2009 at 10:49 AM, Tim Hoff <timh...@aol.com> wrote: > > > > > My advice is to add the -keep compiler argument, build the project, and > look at Line: 349 in the generated class MediaProfile-generated.as. > > -TH > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Tim > Hoff" <timh...@...> wrote: > > > > > > I think that the error is pointing to mediaupload. Is that a variable > > in MediaProfile? > > > > -TH > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "[p e > r c e p t i c o n]" > > percepticon@ wrote: > > > > > > @Timhmm, perhaps you are correct, but i'm not sure i understand > > > completely... > > > here's my root node.. > > > > > > <forms:MediaProfile xmlns:mx="http://www.adobe.com/2006/mxml" > > width="736" > > > height="594" > > > xmlns:forms="com.media.forms.*" > > > defaultButton="{submitButton}" > > > creationComplete="init();" layout="absolute"> > > > > > > so I have a class called MediaProfile.as that has a bindable public > > var > > > called isValid > > > shouldn't this be accessible? > > > > > > > > > > > > On Sat, Jun 13, 2009 at 10:28 AM, Tim Hoff TimHoff@ wrote: > > > > > > > > > > > > > > > > @Timno all methods and vars have to be public in order to be > > accessed in > > > > the > > > > > view.. > > > > > > > > True, the getter has to be a public. However, you can make the > > setter > > > > private or protected; in order to create a read-only accessor: > > > > > > > > > > > > > > > http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespace\ > \ > <http://www.rubenswieringa.com/blog/ambiguous-reference-bug-for-namespace>> > s-in-flex > > > > > > > > Now that we actually see the error you are receiving, we notice > that > > you > > > > have sent us down the wrong path. MediaProfile has nothing to do > wih > > > > isValid. > > > > > > > > -TH > > > > > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, > "[p e r c e p t i c o n]" > > percepticon@ > > > > wrote: > > > > > > > > > > @Timno all methods and vars have to be public in order to be > > accessed in > > > > the > > > > > view.. > > > > > > > > > > @Tracy > > > > > it's the class itself.... so the reference states > > > > > > > > > > Severity and Description Path Resource Location Creation Time Id > > > > > Ambiguous reference to MediaProfile. [Generated code (use -keep > to > > save): > > > > > Path: com\media\views\MediaProfile-generated.as, Line: 349, > > Column: 14] > > > > > mediaupload Unknown 1244912081333 16143 > > > > > > > > > > > > > > > thanks > > > > > > > > > > On Fri, Jun 12, 2009 at 3:16 PM, Tim Hoff TimHoff@ wrote: > > > > > > > > > > > > > > > > > > > > > > > Are you by any chance using a getter/setter for the isValid > var? > > If so, > > > > you > > > > > > may need to change the setter to public. > > > > > > > > > > > > -TH > > > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> > > <flexcoders%40yahoogroups.com>, "[p > > > > e r > > > > > > c e p t i c o n]" percepticon@ wrote: > > > > > > > > > > > > > > Hi Tracy,that was a mistake, actually i called it 'isValid' > > like this > > > > > > > > > > > > > > <mx:Button x="504" y="511" id="submitButton" > > > > > > > label="Continue"click="Submit();" enabled="{isValid}"/> > > > > > > > > > > > > > > > > > > > > > is valid is a boolean that i declared in my code-behind > > > > > > > > > > > > > > also > > > > > > > > > > > > > > i noticed that when i put defaultButton in the root node of > my > > mxml > > > > > > > component it does the same thing... > > > > > > > > > > > > > > very confused > > > > > > > > > > > > > > > > > > > > > On Fri, Jun 12, 2009 at 8:42 AM, Tracy Spratt tracy@ wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Which reference is ambiguous? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I would mistrust a variable named "valid" as being a > system > > > > reserved > > > > > > word. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Tracy Spratt, > > > > > > > > > > > > > > > > Lariat Services, development services available > > > > > > > > ------------------------------ > > > > > > > > > > > > > > > > *From:* flexcoders@yahoogroups.com<flexcoders%40yahoogroups.com> > > <flexcoders%40yahoogroups.com > > > > >[mailto: > > > > > > flexcoders@yahoogroups.com > > > > > > <flexcoders%40yahoogroups.com><flexcoders% > 40yahoogroups.com>] *On > > > > > > > > Behalf Of *[p e r c e p t i c o n] > > > > > > > > *Sent:* Thursday, June 11, 2009 5:01 PM > > > > > > > > *To:* flexcoders@yahoogroups.com<flexcoders%40yahoogroups.com> > > <flexcoders%40yahoogroups.com> > > > > > > > > > > > > *Subject:* Re: [flexcoders] ambiguous reference error > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > valid is not the same as enabled...i don't think... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jun 11, 2009 at 1:23 AM, Tom Chiverton < > > > > > > > > tom.chiverton@ wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Wednesday 10 Jun 2009, [p e r c e p t i c o n] wrote: > > > > > > > > > <mx:Button x="504" y="511" id="submitButton" > > label="Continue" > > > > > > > > > click="Submit();" enabled="{valid}"/> > > > > > > > > > > > > > > > > So using > > > > > > > > submitButton.valid > > > > > > > > is a work around ? > > > > > > > > > > > > > > > > -- > > > > > > > > Helping to globally strategize error-free eligible > > professional > > > > > > products as > > > > > > > > > > > > > > > > part of the IT team of the year, '09 and '08 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *Tom Chiverton * > > > > > > > > Developer > > > > > > > > Tel: +44 0161 618 5032 > > > > > > > > Fax: +44 0161 618 5099 > > > > > > > > Tom.Chiverton@ > > > > > > > > 3 Hardman Square, Manchester, M3 3EB > > > > > > > > *www.Halliwells.com* <http://www.Halliwells.com> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > **************************************************** > > > > > > > > > > > > > > > > This email is sent for and on behalf of Halliwells LLP. > > > > > > > > > > > > > > > > Halliwells LLP is a limited liability partnership > registered > > in > > > > England > > > > > > and > > > > > > > > Wales under registered number OC307980 whose registered > > office > > > > address > > > > > > is at > > > > > > > > Halliwells LLP, 3 Hardman Square, Spinningfields, > > Manchester, M3 > > > > 3EB. A > > > > > > list > > > > > > > > of members is available for inspection at the registered > > office > > > > > > together > > > > > > > > with a list of those non members who are referred to as > > partners. > > > > We > > > > > > use the > > > > > > > > word ?partner? to refer to a member of the LLP, or an > > employee or > > > > > > consultant > > > > > > > > with equivalent standing and qualifications. Regulated by > > the > > > > > > Solicitors > > > > > > > > Regulation Authority. > > > > > > > > > > > > > > > > CONFIDENTIALITY > > > > > > > > > > > > > > > > This email is intended only for the use of the addressee > > named > > > > above > > > > > > and > > > > > > > > may be confidential or legally privileged. If you are not > > the > > > > addressee > > > > > > you > > > > > > > > must not read it and must not use any information > contained > > in nor > > > > copy > > > > > > it > > > > > > > > nor inform any person other than Halliwells LLP or the > > addressee of > > > > its > > > > > > > > existence or contents. If you have received this email in > > error > > > > please > > > > > > > > delete it and notify Halliwells LLP IT Department on 0870 > > 365 2500. > > > > > > > > > > > > > > > > For more information about Halliwells LLP visit * > > > > www.Halliwells.com*< > > > > > > http://www.Halliwells.com>. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >