[flexcoders] Re: Array based class throws error for splice method call

2006-02-28 Thread Vadim Melnik
Thanks for interesting information, dynamic keyword helps and 1068 
runtime error disappears, now I always have pure Access violation 
GPF in fldbg85a.dll, at 0x00142c74. If someone @ Macromedia need Dr 
Watson mini dump and test case, it's uploaded to 
http://www.docsultant.com/temp/dump.zip . As temporary solution I'll 
update my code to subclass Array using composition.

--
Thanks,
Vadim.


--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 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 flexcoders@yahoogroups.com, Paul BH eyefodder@ 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 jmiranda@ 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
  
   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:* flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] *On
   Behalf Of *Vadim Melnik
   *Sent:* Monday, February 27, 2006 2:23 PM
   *To:* flexcoders@yahoogroups.com
   *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 flexcoders@yahoogroups.com, 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

Re: [flexcoders] Re: Array based class throws error for splice method call

2006-02-28 Thread Manish Jethani
On 2/28/06, Vadim Melnik [EMAIL PROTECTED] wrote:

 Thanks for interesting information, dynamic keyword helps and 1068
 runtime error disappears, now I always have pure Access violation
 GPF in fldbg85a.dll, at 0x00142c74. If someone @ Macromedia need Dr
 Watson mini dump and test case, it's uploaded to
 http://www.docsultant.com/temp/dump.zip . As temporary solution I'll
 update my code to subclass Array using composition.

I'm getting a crash in Firefox for the same thing.  Even if you create
an empty subclass of Array and create an instance of it, it crashes
the browser.

package
{
import flash.util.*;

public dynamic class MyArray extends Array
{
}
}

var a:MyArray = new MyArray();

Close the browser after running this and it crashes.

Manish


--
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/
 




[flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Vadim Melnik
 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 flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] 
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
 
 [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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Vadim Melnik
 Sent: Monday, February 27, 2006 1:50 PM
 To: flexcoders@yahoogroups.com
 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=msk=Web+site+design+developmentw1=Web+
 
site+design+developmentw2=Computer+software+developmentw3=Software+
des
 
ign+and+developmentw4=Macromedia+flexw5=Software+development+best+p
rac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ  
 
 Computer software development
 http://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=We
 
b+site+design+developmentw2=Computer+software+developmentw3=Softwar
e+d
 
esign+and+developmentw4=Macromedia+flexw5=Software+development+best
+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw  
 
 Software design and development
 http://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=
 
Web+site+design+developmentw2=Computer+software+developmentw3=Softw
are
 
+design+and+developmentw4=Macromedia+flexw5=Software+development+be
st+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ  

RE: [flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Jonathan Miranda












In your code, youre 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: 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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Vadim Melnik
Sent: Monday, February 27, 2006
2:23 PM
To: flexcoders@yahoogroups.com
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 flexcoders@yahoogroups.com,
Jonathan Miranda [EMAIL PROTECTED] 
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
 
 [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: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of Vadim Melnik
 Sent: Monday, February 27, 2006 1:50 PM
 To: flexcoders@yahoogroups.com
 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

[flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Vadim Melnik
Yes, I also tested super() before and it didn't help me. 
As far as I know, it's allowed to omit super() call in AS3 
constructor, at least documentation refers it as:
...If you omit the call to super(), Flex automatically calls it at 
the beginning of your
constructor 

--
Thanks,
Vadim.


--- In flexcoders@yahoogroups.com, 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(tm)
 
 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: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Vadim Melnik
 Sent: Monday, February 27, 2006 2:23 PM
 To: flexcoders@yahoogroups.com
 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 flexcoders@yahoogroups.com, 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: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Vadim Melnik
  Sent: Monday, February 27, 2006 1:50 PM
  To: flexcoders@yahoogroups.com
  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

Re: [flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Paul BH



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: 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: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Vadim MelnikSent: Monday, February 27, 2006 2:23 PMTo: 
flexcoders@yahoogroups.comSubject: [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 understandsMy 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 
flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] 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  [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: flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] On Behalf Of Vadim Melnik Sent: Monday, February 27, 2006 1:50 PM
 To: flexcoders@yahoogroups.com 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

Re: [flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Johannes Nel



array is not marked as final according to the docs so you should be able to subclass itOn 2/27/06, 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: 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: 

flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 

On Behalf Of Vadim MelnikSent: Monday, February 27, 2006 2:23 PMTo: 

flexcoders@yahoogroups.comSubject: [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 understandsMy 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 

flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] 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  [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: flexcoders@yahoogroups.com [mailto:

 flexcoders@yahoogroups.com] On Behalf Of Vadim Melnik Sent: Monday, February 27, 2006 1:50 PM

 To: flexcoders@yahoogroups.com 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

[flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Doug Lowder
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 flexcoders@yahoogroups.com, 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:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Vadim Melnik
  *Sent:* Monday, February 27, 2006 2:23 PM
  *To:* flexcoders@yahoogroups.com
  *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 flexcoders@yahoogroups.com, 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: flexcoders@yahoogroups.com
  [mailto: [EMAIL PROTECTED] On
   Behalf Of Vadim Melnik
   Sent: Monday, February 27, 2006 1:50 PM
   To: flexcoders@yahoogroups.com
   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

Re: [flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread JesterXL
There are known problems with sub-classing Array, but not sure the status. 
For now, just use composition until we know it's fixed.

- Original Message - 
From: Doug Lowder [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 27, 2006 4:59 PM
Subject: [flexcoders] Re: Array based class throws error for splice method 
call


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 flexcoders@yahoogroups.com, 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
  HealthcareT
 
  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:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Vadim Melnik
  *Sent:* Monday, February 27, 2006 2:23 PM
  *To:* flexcoders@yahoogroups.com
  *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 flexcoders@yahoogroups.com, 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: flexcoders@yahoogroups.com
  [mailto: [EMAIL PROTECTED] On
   Behalf Of Vadim Melnik
   Sent: Monday, February 27

Re: [flexcoders] Re: Array based class throws error for splice method call

2006-02-27 Thread Paul BH



thats what I get for half listening to stuff...
On 2/27/06, Doug Lowder [EMAIL PROTECTED] wrote:
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 
flexcoders@yahoogroups.com, 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:* flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] *On  Behalf Of *Vadim Melnik
  *Sent:* Monday, February 27, 2006 2:23 PM 
  *To:* flexcoders@yahoogroups.com  *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 
flexcoders@yahoogroups.com, 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: 
flexcoders@yahoogroups.com  [mailto: flexcoders@yahoogroups.com] On   Behalf Of Vadim Melnik
   Sent: Monday, February 27, 2006 1:50 PM   To: flexcoders@yahoogroups.com
   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