Orkut Gmail Calendar Documents Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Doubt in Defining the class.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gerald Anto  
View profile  
 More options Nov 18 2009, 11:15 am
From: Gerald Anto <flex.gerald.a...@gmail.com>
Date: Tue, 17 Nov 2009 21:45:22 -0800 (PST)
Local: Wed, Nov 18 2009 11:15 am
Subject: Doubt in Defining the class.
Hello Friends,

Actually i need a class that extends a super class.

Shall i have two classes in a single .as file? if i do like i cant get
a result

but if i have a separate class in a package it works fine

my previous code

package com
{

        public class Example
        {
                public var status:String = "undefined";
            public function Example()
            {
                status = "it has value now";
                 trace('status in super : '+status);
            }

        }

        public class ExampleEx extends Example
        {
                public function ExampleEx()
                {
                        //super();
                        trace('status in subclass : '+super.status);

                }

        }

}

my application code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
   <mx:Script>
        <![CDATA[

                import com.*;
                import mx.controls.Alert;

                private function displayConstructor():void{
                 var ex:ExampleEx = new ExampleEx();

                }
        ]]>
   </mx:Script>

        <mx:Button label="click" click="displayConstructor()"/>
</mx:Application>

    -- it is not working ?
  Is it possible????

now my code

package com
{
        public class Example
        {
                public var status:String = "undefined";
            public function Example()
            {
                status = "it has value now";
                 trace('status in super : '+status);
            }

        }

}

package com
{
        public class ExampleEx extends Example
        {
                public function ExampleEx()
                {
                        //super();
                        trace('status in subclass : '+super.status);

                }

        }

}

my application code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
   <mx:Script>
        <![CDATA[

                import com.*;
                import mx.controls.Alert;

                private function displayConstructor():void{
                 var ex:ExampleEx = new ExampleEx();

                }
        ]]>
   </mx:Script>

        <mx:Button label="click" click="displayConstructor()"/>
</mx:Application>

-- It is working fine.

Thanks&Regards,
Gerald A


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
koteshwar Rao myneni  
View profile  
 More options Nov 18 2009, 11:21 am
From: koteshwar Rao myneni <mkoteshwar...@gmail.com>
Date: Wed, 18 Nov 2009 11:21:09 +0530
Local: Wed, Nov 18 2009 11:21 am
Subject: Re: [Pune Flex Users:2054] Doubt in Defining the class.

you can have inner classes in a single as file....

Myneni Koteshwar Rao Chowdary
   Adobe Flex Developer

On Wed, Nov 18, 2009 at 11:15 AM, Gerald Anto <flex.gerald.a...@gmail.com>wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald Anto Fernando  
View profile  
 More options Nov 18 2009, 1:00 pm
From: Gerald Anto Fernando <flex.gerald.a...@gmail.com>
Date: Wed, 18 Nov 2009 13:00:53 +0530
Local: Wed, Nov 18 2009 1:00 pm
Subject: Re: [Pune Flex Users:2055] Re: Doubt in Defining the class.

can you please say in detail.

Thanks&Regards,
Gerald A

On Wed, Nov 18, 2009 at 11:21 AM, koteshwar Rao myneni <

--
Thanks & Regards,
A  Gerald

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald Anto Fernando  
View profile  
 More options Nov 21 2009, 10:44 am
From: Gerald Anto Fernando <flex.gerald.a...@gmail.com>
Date: Sat, 21 Nov 2009 10:44:33 +0530
Local: Sat, Nov 21 2009 10:44 am
Subject: Re: [Pune Flex Users:2055] Re: Doubt in Defining the class.

Hi Koteshwar,
How to define inner class

Gerald A

On Wed, Nov 18, 2009 at 1:00 PM, Gerald Anto Fernando <

--
Thanks & Regards,
A  Gerald

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
koteshwar Rao myneni  
View profile  
 More options Nov 21 2009, 1:21 pm
From: koteshwar Rao myneni <mkoteshwar...@gmail.com>
Date: Sat, 21 Nov 2009 13:21:51 +0530
Local: Sat, Nov 21 2009 1:21 pm
Subject: Re: [Pune Flex Users:2062] Re: Doubt in Defining the class.

http://www.kellyjo.com/blog/index.cfm/2007/7/12/Private-Inner-Classes...

Myneni Koteshwar Rao Chowdary
   Adobe Flex Developer

On Sat, Nov 21, 2009 at 10:44 AM, Gerald Anto Fernando <


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gerald Anto Fernando  
View profile  
 More options Nov 21 2009, 3:14 pm
From: Gerald Anto Fernando <flex.gerald.a...@gmail.com>
Date: Sat, 21 Nov 2009 15:14:16 +0530
Local: Sat, Nov 21 2009 3:14 pm
Subject: Re: [Pune Flex Users:2063] Re: Doubt in Defining the class.

Thanks Koteshwar

Regards,
Gerald A

On Sat, Nov 21, 2009 at 1:21 PM, koteshwar Rao myneni <

--
Thanks & Regards,
A  Gerald

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
prasant rout  
View profile  
 More options Nov 18 2009, 6:38 pm
From: prasant rout <rout.pras...@gmail.com>
Date: Wed, 18 Nov 2009 18:38:19 +0530
Local: Wed, Nov 18 2009 6:38 pm
Subject: Re: [Pune Flex Users:2054] Doubt in Defining the class.

 Hi,

we can specify only one class per package. Flex compiler recognize classes
by its name. If you have multiple class names in a single package, then
there will be conflict among the classes.

You can very well specify helper class out side the package in the same as
file which will be refered in the same .as file only.

you can try some thing like this.
///Start Example.as
package com
{

       public class Example
       {
            public var status:String = "undefined";
           public function Example()
           {
               status = "it has value now";
                trace('status in super : '+status);
           }

       }
       }
     public class ExampleEx extends Example
       {
               public function ExampleEx()
               {
                       //super();
                       trace('status in subclass : '+super.status);

               }

       }
///End Example.as

Hope it will help you resolve your issue.

Cheers
Prasant

On Wed, Nov 18, 2009 at 11:15 AM, Gerald Anto <flex.gerald.a...@gmail.com>wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google