That would be unfortunate if true.  The current docs *do* say this, 
however:

"You can subclass Array and override or add methods; but specify the 
subclass as dynamic or you will lose the ability to store data in an 
array."

--- In [email protected], "Paul BH" <[EMAIL PROTECTED]> wrote:
>
> I may be wrong - havent looked at AS3 in a while, and I couldnt 
find it
> after a 10 minute hunt, but I think I read somewhere you are no 
longer
> allowed to subclass Array
> 
> On 2/27/06, Jonathan Miranda <[EMAIL PROTECTED]> wrote:
> >
> >  In your code, you're not calling the Super constructorÂ….* *
> >
> > _________________________________________
> >
> > *Jonathan Miranda*
> >
> > *Flexible Master of the Web*
> >
> > *"In the game of chess, it's important to never let your 
opponent see your
> > pieces." *
> >
> > HealthGrades <http://www.healthgrades.com/>: Guiding America to 
Better
> > Healthcare™
> >
> > NASDAQ: HGRD
> >
> > w  (720) 963-3832
> >
> > c  (707) 761-0868
> >
> > [EMAIL PROTECTED]
> >
> > _________________________________________
> >
> > The message contains confidential and/or legally privileged 
information
> > and is intended for use only by the indicated addressee.  If you 
are not the
> > named addressee you should not disseminate, distribute, or copy 
this e-mail.
> > Please notify the sender immediately by e-mail if you have 
received this
> > e-mail by mistake and delete this e-mail from your system. E-mail
> > transmissions cannot be guaranteed to be secure or error-free as 
information
> > could be intercepted, corrupted, lost, destroyed,arrive late or 
incomplete,
> > or contain viruses. The sender therefore does not accept 
liability for any
> > errors or omissions in the contents of this message which arise 
as a result
> > of e-mail transmission. If verification is required please 
request a
> > hard-copy version.
> >  ------------------------------
> >
> > *From:* [email protected] 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Vadim Melnik
> > *Sent:* Monday, February 27, 2006 2:23 PM
> > *To:* [email protected]
> > *Subject:* [flexcoders] Re: Array based class throws error for 
splice
> > method call
> >
> >
> >
> > >> There's a lot of stuff missing it seems in your class <<
> > Right, because I've cut source code as much as possible to 
simplify
> > test case.
> >
> > >> AS3 is strong-type coding, so you need to code in everything
> > you're assuming it understands<<
> >
> > My code compiles without errors/warnings in strict mode.
> >
> >
> > >>my first guess is to have the set/get commands and call the
> > splice/push methods on the actual array (maybe using "this"<<
> >
> > I've played with things like this/super and other variants, but 
did
> > not find right solution. For me it sounds like a bug in 
Array.splice
> > implementation, (unless Array class is final/sealed by design 
and is
> > not allowed to be inherited).
> >
> >
> > --
> > Thanks,
> > Vadim.
> >
> >
> > --- In [email protected], "Jonathan Miranda" <jmiranda@>
> > wrote:
> > >
> > > There's a lot of stuff missing it seems in your class. AS3 is
> > > strong-type coding, so you need to code in everything you're
> > assuming it
> > > understands. I don't have the time to check it out, but my 
first
> > guess
> > > is to have the set/get commands and call the splice/push 
methods
> > on the
> > > actual array (maybe using "this" - think in AS2 to AS3 the
> > > implementation of "this" changed).
> > >
> > > _________________________________________
> > >
> > > Jonathan Miranda
> > >
> > > Flexible Master of the Web
> > >
> > > "In the game of chess, it's important to never let your 
opponent
> > see
> > > your pieces."
> > >
> > > HealthGrades < http://www.healthgrades.com/> : Guiding America 
to
> > Better
> > > Healthcare(tm)
> > >
> > > NASDAQ: HGRD
> > >
> > > w  (720) 963-3832
> > >
> > > c  (707) 761-0868
> > >
> > > jmiranda@
> > >
> > > _________________________________________
> > >
> > > The message contains confidential and/or legally privileged
> > information
> > > and is intended for use only by the indicated addressee.  If 
you
> > are not
> > > the named addressee you should not disseminate, distribute, or
> > copy this
> > > e-mail. Please notify the sender immediately by e-mail if you 
have
> > > received this e-mail by mistake and delete this e-mail from 
your
> > system.
> > > E-mail transmissions cannot be guaranteed to be secure or 
error-
> > free as
> > > information could be intercepted, corrupted, lost,
> > destroyed,arrive late
> > > or incomplete, or contain viruses. The sender therefore does 
not
> > accept
> > > liability for any errors or omissions in the contents of this
> > message
> > > which arise as a result of e-mail transmission. If 
verification is
> > > required please request a hard-copy version.
> > >
> > > ________________________________
> > >
> > > From: [email protected]
> > [mailto: [EMAIL PROTECTED] On
> > > Behalf Of Vadim Melnik
> > > Sent: Monday, February 27, 2006 1:50 PM
> > > To: [email protected]
> > > Subject: [flexcoders] Array based class throws error for splice
> > method
> > > call
> > >
> > >
> > >
> > > Hi All,
> > >
> > > Got problem with my custom class inheriting default AS3 Array 
one.
> > > Not sure it's allowed in AS3, but it worked well with previous
> > > ActionScript 2.
> > >
> > > I've created small test case, it throws runtime error somewhere
> > > inside Array.splice call. Also in real application I am 
getting IE
> > > GPFs right after exception dialog closed.
> > >
> > > P.S.: also reported this bug using web form -
> > > http://www.macromedia.com/cfusion/mmform/index.cfm?
name=wishform
> > >
> > >
> > > [Error]
> > >
> > > ReferenceError: Error #1069: Property length not found on 
MyArray
> > > and there is no default value
> > >       at Array/splice()
> > >       at MyArray/bug()
> > >       at test002::doTest()
> > >
> > > [test002.mxml]
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml "
> > > >
> > > <mx:Button click="doTest()" label="doTest"/>
> > > <mx:Script><![CDATA[
> > >
> > > import MyArray;
> > >
> > > private function doTest():void
> > > {
> > >       var a:MyArray = new MyArray();
> > >       a.bug();
> > > }
> > >
> > > ]]></mx:Script>
> > > </mx:Application>
> > >
> > >
> > > [MyArray.as]
> > >
> > > package
> > > {
> > >       public class MyArray extends Array
> > >       {
> > >             public function MyArray()
> > >             {
> > >                   push("some data");
> > >             }
> > >
> > >             public function bug():void
> > >             {
> > >                   splice(0, 1);
> > >             }
> > >       }
> > > }
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Vadim.
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > >
> > >
> > >
> > >
> > > SPONSORED LINKS
> > >
> > > Web site design development
> > > <http://groups.yahoo.com/gads?
> > t=ms&k=Web+site+design+development&w1=Web+
> > >
> > 
site+design+development&w2=Computer+software+development&w3=Software+
> > des
> > >
> > 
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+p
> > rac
> > > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
> > >
> > > Computer software development
> > > < http://groups.yahoo.com/gads?
> > t=ms&k=Computer+software+development&w1=We
> > >
> > 
b+site+design+development&w2=Computer+software+development&w3=Softwar
> > e+d
> > >
> > 
esign+and+development&w4=Macromedia+flex&w5=Software+development+best
> > +pr
> > > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
> > >
> > > Software design and development
> > > < http://groups.yahoo.com/gads?
> > t=ms&k=Software+design+and+development&w1=
> > >
> > 
Web+site+design+development&w2=Computer+software+development&w3=Softw
> > are
> > >
> > 
+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> > st+
> > > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
> > >
> > > Macromedia flex
> > > <http://groups.yahoo.com/gads?
> > t=ms&k=Macromedia+flex&w1=Web+site+design+
> > >
> > 
development&w2=Computer+software+development&w3=Software+design+and+d
> > eve
> > >
> > 
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&
> > s=1
> > > 66&.sig=OO6nPIrz7_EpZI36cYzBjw>
> > >
> > > Software development best practice
> > > <http://groups.yahoo.com/gads?
> > t=ms&k=Software+development+best+practice&
> > >
> > 
w1=Web+site+design+development&w2=Computer+software+development&w3=So
> > ftw
> > >
> > 
are+design+and+development&w4=Macromedia+flex&w5=Software+development
> > +be
> > > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > >
> > > YAHOO! GROUPS LINKS
> > >
> > >
> > >
> > > *      Visit your group "flexcoders
> > > < http://groups.yahoo.com/group/flexcoders> " on the web.
> > >
> > > *      To unsubscribe from this group, send an email to:
> > >       [EMAIL PROTECTED]
> > > <mailto: [EMAIL PROTECTED]
> > subject=Unsubscribe>
> > >
> > > *      Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of
> > > Service <http://docs.yahoo.com/info/terms/> .
> > >
> > >
> > >
> > > ________________________________
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> >
> >
> >
> > SPONSORED LINKS
> >   Web site design development<http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
Computer+software+development&w3=Software+design+and+development&w4=M
acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
-4QTvxB_quFDtMyhrQaHQ> Computer
> > software development<http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=Web+site+design+development&w
2=Computer+software+development&w3=Software+design+and+development&w4
=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
=lvQjSRfQDfWudJSe1lLjHw> Software
> > design and development<http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=Web+site+design+development
&w2=Computer+software+development&w3=Software+design+and+development&
w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
ig=1pMBCdo3DsJbuU9AEmO1oQ>  Macromedia
> > flex<http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
tware+development&w3=Software+design+and+development&w4=Macromedia+fl
ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
I36cYzBjw> Software
> > development best practice<http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
ent&w2=Computer+software+development&w3=Software+design+and+developme
nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
&.sig=f89quyyulIDsnABLD6IXIw>
> >  ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> >    -  Visit your 
group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> >    on the web.
> >
> >    -  To unsubscribe from this group, send an email to:
> >      [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> >
> >    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
> >
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to