i have seen people accomplish this by declaring classes outside the package so
say
package com.adobe.library{
public class Test extends OtherTest{
public function Test(){
}
}
//no one will be able to access it
class OutsideOfPackage{
}
----- Original Message ----
From: Sanjit Kumar <[EMAIL PROTECTED]>
To: flexcoder <[email protected]>
Sent: Wednesday, February 6, 2008 10:30:45 PM
Subject: [flexcoders] private constructor in action script
all
I want to define private constructor in action script for defining
singleton class. so that no one can create object for this class.
compiler don't allow me to define private constructor. please if any
body have idea about this how we create private constructor or I
restrict any body to creating the object of my singleton class.
Regards
sanjit kumar
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping