Re: [flexcoders] duplicate function definition

2007-02-13 Thread Ralf Bokelberg

Yes, it's because the name is duplicated. Adding an underscore is the usual
practice to mark properties.
I don't think though, that an internal setter is created automatically.
I guess it's just the error message, which is a little bit misleading.

Cheers,
Ralf.

On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED]
wrote:


   Hi Mayur,

When you define a member variable, a setter method is internally created.

You have to rename your variable vbox and define it as private.

private var _vbox:VBox;

public function set vbox(val:VBox):void
{
_vbox = val;
}

Rgds,

Olivier

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *learner
*Sent:* Tuesday, February 13, 2007 7:54 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] duplicate function definition

  Hello all,
When I am doing this :

 public var vbox:VBox;

 public function set vbox(val):void{
   vbox = val
   }


Why am i getting a error like *Duplicate function definition *when i am
defining my set vbox function.

Regards
Mayur

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-



-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-



 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] duplicate function definition

2007-02-13 Thread learner

Thanks I got that :)

On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED]
wrote:


   Hi Mayur,

When you define a member variable, a setter method is internally created.

You have to rename your variable vbox and define it as private.

private var _vbox:VBox;

public function set vbox(val:VBox):void
{
_vbox = val;
}

Rgds,

Olivier

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *learner
*Sent:* Tuesday, February 13, 2007 7:54 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] duplicate function definition



Hello all,
When I am doing this :

 public var vbox:VBox;

 public function set vbox(val):void{
   vbox = val
   }


Why am i getting a error like *Duplicate function definition *when i am
defining my set vbox function.

Regards
Mayur

 -

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-



-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-







Re: [flexcoders] duplicate function definition

2007-02-13 Thread André Rodrigues Pena

Hey guys...

In the function mentioned above, the set modifier was used but I couldn't
find it's reference at the official Actionscript 3.0 manual
http://livedocs.macromedia.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm

I searched google with no return either.

Is it really allowed at Actionscript 3.0? If yes, where can I find it's
reference?

On 2/13/07, learner [EMAIL PROTECTED] wrote:


  Thanks I got that :)

On 2/13/07, Stembert Olivier (BIL) [EMAIL PROTECTED]
wrote:

Hi Mayur,

 When you define a member variable, a setter method is internally
 created.

 You have to rename your variable vbox and define it as private.

 private var _vbox:VBox;

 public function set vbox(val:VBox):void
 {
 _vbox = val;
 }

 Rgds,

 Olivier

  --
 *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
 *On Behalf Of *learner
 *Sent:* Tuesday, February 13, 2007 7:54 AM
 *To:* [EMAIL PROTECTED] ups.com
 *Subject:* [flexcoders] duplicate function definition



 Hello all,
 When I am doing this :

  public var vbox:VBox;

  public function set vbox(val):void{
vbox = val
}


 Why am i getting a error like *Duplicate function definition *when i am
 defining my set vbox function.

 Regards
 Mayur

  -

 An electronic message is not binding on its sender.

 Any message referring to a binding engagement must be confirmed in
 writing and duly signed.

 -



 -

 An electronic message is not binding on its sender.

 Any message referring to a binding engagement must be confirmed in
 writing and duly signed.

 -




 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


RE: [flexcoders] duplicate function definition

2007-02-12 Thread Stembert Olivier \(BIL\)
Hi Mayur,
 
When you define a member variable, a setter method is internally
created.
 
You have to rename your variable vbox and define it as private.
 
private var _vbox:VBox;
 
public function set vbox(val:VBox):void
{
_vbox = val;
}
 
Rgds,
 
Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of learner
Sent: Tuesday, February 13, 2007 7:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] duplicate function definition



Hello all,
When I am doing this :
 
 public var vbox:VBox;

 public function set vbox(val):void{ 
   vbox = val
   }

 
Why am i getting a error like Duplicate function definition when i am
defining my set vbox function.
 
Regards
Mayur

 

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in
writing and duly signed.

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-