Hello,

this should work:


package com.pearson.utils
{
        public class PlaceItemsInSeries
        {
                
                public function PlaceItemsInSeries()
                {
                        trace("Place Items in Series Class");
                }
                
                public function hello():void
                {
                        trace("Hello");
                }
        }
}

You placed your 'Hello' function in the constructor ... it must be sitting on the same level than the constructor, not inside.

Moreover, it is best to name function with a lower cap: 'Hello' becomes 'hello' as it is only a public method of the PlaceItemsInSeries class.


Take care,
Cedric

package com.pearson.utils
{
        public class PlaceItemsInSeries
        {
                
                public function PlaceItemsInSeries()
                {
                        
                        trace("Place Items in Series Class");
                        
                        public function Hello():void
                        {
                                trace("Hello");
                        }
                }
        }
}

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to