RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-15 Thread Cor
Hi Keith,

I am a fine, thank you.
I am also just trying to help, and hopefully together we find the answer.

About addChildAt:
My bad...
I made a mistake and did not get the error. I think that's a BUG. Hahaha.

I rebuild a little test and you are right, it throws the error.

But generally spoken, I think a thrown error is not a bug because it tells
you, you are trying to do something impossible with your program.
So thrown errors are your friend!

Kind regards
Cor


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
Reinfeld
Sent: vrijdag 14 november 2008 20:50
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3

Cor, 

addChildAt() -- Tested: 

Any index 0 thru numChildren (inclusive) = No RangeError.

Any index greater than numChildren = RangeError. 
 
That's why I thought 'bug'. 
 
Just an observation. Just trying to help. 
 
So, Cor, howyabin? 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Cor
 Sent: Friday, November 14, 2008 1:18 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 I guess because you set the customCursor in the array position.
 And array positions can be set to any index, and for that matter it can't
 be
 out of range.
 
 stage.addChildAt(customCursor, 100); will try to put the child at index
 hundred.
 Eventually the displayList notices a empty index and will shuffle
 everything
 in place so there is never an empty indexed location.
 The same as when you remove a child for the displayList.
 
 I am not completely sure if this is the correct technical description, but
 from what I have read about the displayList, it figures.
 
 Kind regards
 Cor
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Keith
 Reinfeld
 Sent: vrijdag 14 november 2008 20:11
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Hi Cor,
 
 Right. I know all that. The question is why doesn't
 
   stage.addChildAt(customCursor, stage.numChildren);
 
 trigger a RangeError?
 
 Regards,
 
 -Keith
 http://keithreinfeld.home.comcast.net
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Cor
  Sent: Friday, November 14, 2008 12:38 PM
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  It is not a bug.
  The displayList stores it objects in a Array, wich starts at 0.
  So Array[obj1,obj2,obj3,obj4] has 4 children wich are located at
  position 0, 1, 2, 3.
  If you remove a child every other moves up 1 place.
 
  So stage.numChildren is accordingly out of range.
 
  HTH
  C
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Keith
  Reinfeld
  Sent: vrijdag 14 november 2008 18:57
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Joel,
 
  Another good optimization point, Joel. If we assume that Karim's custom
  cursor is already a child of the stage, then setChildIndex() should be
  more
  efficient. So I guess it depends on the implementation.
 
  Interestingly,
 
  I get a RangeError with this:
 
  stage.setChildIndex(customCursor, stage.numChildren);
 
  but this works:
 
  stage.setChildIndex(customCursor, stage.numChildren - 1);
 
  However,
 
  stage.addChildAt(customCursor, stage.numChildren);
 
  does not trigger the RangeError, and
 
  stage.addChildAt(customCursor, stage.numChildren - 1);
 
  still produces the desired result.
 
  If this is a bug then 'stage.numChildren - 1' would be the safe way to
 go.
 
  Regards,
 
  -Keith
  http://keithreinfeld.home.comcast.net
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Joel Stransky
   Sent: Friday, November 14, 2008 10:25 AM
   To: Flash Coders List
   Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   Very nice Keith. Wouldn't setChildIndex() work as well? Or is
  addChildAt()
   better for ensuring that the cursor is added to the display list?
  
   On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
   [EMAIL PROTECTED]wrote:
  
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-
 2008
  13:36
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Keith Reinfeld
Karim, 
 
In light of Joel's comments I'd like to suggest a refinement: 
 
import flash.events.* 
 
function updateCursor(){ 
stage.addChildAt(customCursor, stage.numChildren); 
} 
 
comboBox.dropdown.addEventListener(Event.ADDED_TO_STAGE, onDropdown); 
 
function onDropdown(event:Event){ 
updateCursor(); 
} 
 
Give it a try! I think it works quite well. 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Karim Beyrouti
 Sent: Thursday, November 13, 2008 6:24 AM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Yeh - this might not work - I already have a similar structure, and as the
 ComboBox adds the List to the stage. I tried to find a 'lockRoot' type of
 solution for AS3 - but no joy there.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Joel
 Stransky
 Sent: 12 November 2008 23:03
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 This might be a bit cumbersome but less processor intensive. Instead of
 using MOUSE_MOVE, create two Sprites on the stage. One as a content pane
 and
 other as a custom cursor pane. Then add all content including the combo
 box
 to the content pane and the cursor to the cursor pane. I can't say for
 sure
 if the combo box will still display on top but may be worth a shot if
 you're
 big on freeing up resources.
 
 On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti [EMAIL PROTECTED] wrote:
 
  Perfect - thank you !
 
  it seems a little odd that the ComboBox adds the List to the stage and
 not
  one of its own children. Maybe memory/resource managment. h.
 
 
 
  On 12 Nov 2008, at 16:26, Keith Reinfeld wrote:
 
   Karim,
 
  Try adding the following line of code to your MOUSE_MOVE event listener
  function:
  stage.addChildAt(customCursor, stage.numChildren);
 
  Of course, you must substitute your custom cursor's instance name for
  'customCursor'.
 
  HTH
 
  Regards,
 
  -Keith
  http://keithreinfeld.home.comcast.net
 
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 --
 --Joel
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Joel Stransky
Very nice Keith. Wouldn't setChildIndex() work as well? Or is addChildAt()
better for ensuring that the cursor is added to the display list?

On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
[EMAIL PROTECTED]wrote:

 Karim,

 In light of Joel's comments I'd like to suggest a refinement:

 import flash.events.*

 function updateCursor(){
 stage.addChildAt(customCursor, stage.numChildren);
 }

 comboBox.dropdown.addEventListener(Event.ADDED_TO_STAGE, onDropdown);

 function onDropdown(event:Event){
updateCursor();
 }

 Give it a try! I think it works quite well.

 Regards,

 -Keith
 http://keithreinfeld.home.comcast.net


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Karim Beyrouti
  Sent: Thursday, November 13, 2008 6:24 AM
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Yeh - this might not work - I already have a similar structure, and as
 the
  ComboBox adds the List to the stage. I tried to find a 'lockRoot' type of
  solution for AS3 - but no joy there.
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Joel
  Stransky
  Sent: 12 November 2008 23:03
  To: Flash Coders List
  Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  This might be a bit cumbersome but less processor intensive. Instead of
  using MOUSE_MOVE, create two Sprites on the stage. One as a content pane
  and
  other as a custom cursor pane. Then add all content including the combo
  box
  to the content pane and the cursor to the cursor pane. I can't say for
  sure
  if the combo box will still display on top but may be worth a shot if
  you're
  big on freeing up resources.
 
  On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti [EMAIL PROTECTED]
 wrote:
 
   Perfect - thank you !
  
   it seems a little odd that the ComboBox adds the List to the stage and
  not
   one of its own children. Maybe memory/resource managment. h.
  
  
  
   On 12 Nov 2008, at 16:26, Keith Reinfeld wrote:
  
Karim,
  
   Try adding the following line of code to your MOUSE_MOVE event
 listener
   function:
   stage.addChildAt(customCursor, stage.numChildren);
  
   Of course, you must substitute your custom cursor's instance name for
   'customCursor'.
  
   HTH
  
   Regards,
  
   -Keith
   http://keithreinfeld.home.comcast.net
  
  
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
  --
  --Joel
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Keith Reinfeld
Joel, 
 
Another good optimization point, Joel. If we assume that Karim's custom
cursor is already a child of the stage, then setChildIndex() should be more
efficient. So I guess it depends on the implementation. 

Interestingly,
 
I get a RangeError with this: 
 
stage.setChildIndex(customCursor, stage.numChildren); 
 
but this works: 
 
stage.setChildIndex(customCursor, stage.numChildren - 1); 
 
However, 
 
stage.addChildAt(customCursor, stage.numChildren); 
 
does not trigger the RangeError, and 
 
stage.addChildAt(customCursor, stage.numChildren - 1); 
 
still produces the desired result. 
 
If this is a bug then 'stage.numChildren - 1' would be the safe way to go. 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Joel Stransky
 Sent: Friday, November 14, 2008 10:25 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Very nice Keith. Wouldn't setChildIndex() work as well? Or is addChildAt()
 better for ensuring that the cursor is added to the display list?
 
 On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
 [EMAIL PROTECTED]wrote:
 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Cor
It is not a bug.
The displayList stores it objects in a Array, wich starts at 0.
So Array[obj1,obj2,obj3,obj4] has 4 children wich are located at
position 0, 1, 2, 3.
If you remove a child every other moves up 1 place.

So stage.numChildren is accordingly out of range.

HTH
C



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
Reinfeld
Sent: vrijdag 14 november 2008 18:57
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3

Joel, 
 
Another good optimization point, Joel. If we assume that Karim's custom
cursor is already a child of the stage, then setChildIndex() should be more
efficient. So I guess it depends on the implementation. 

Interestingly,
 
I get a RangeError with this: 
 
stage.setChildIndex(customCursor, stage.numChildren); 
 
but this works: 
 
stage.setChildIndex(customCursor, stage.numChildren - 1); 
 
However, 
 
stage.addChildAt(customCursor, stage.numChildren); 
 
does not trigger the RangeError, and 
 
stage.addChildAt(customCursor, stage.numChildren - 1); 
 
still produces the desired result. 
 
If this is a bug then 'stage.numChildren - 1' would be the safe way to go. 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Joel Stransky
 Sent: Friday, November 14, 2008 10:25 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Very nice Keith. Wouldn't setChildIndex() work as well? Or is addChildAt()
 better for ensuring that the cursor is added to the display list?
 
 On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
 [EMAIL PROTECTED]wrote:
 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-2008
13:36

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Keith Reinfeld
Hi Cor, 
 
Right. I know all that. The question is why doesn't 
 
stage.addChildAt(customCursor, stage.numChildren); 
 
trigger a RangeError? 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Cor
 Sent: Friday, November 14, 2008 12:38 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 It is not a bug.
 The displayList stores it objects in a Array, wich starts at 0.
 So Array[obj1,obj2,obj3,obj4] has 4 children wich are located at
 position 0, 1, 2, 3.
 If you remove a child every other moves up 1 place.
 
 So stage.numChildren is accordingly out of range.
 
 HTH
 C
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Keith
 Reinfeld
 Sent: vrijdag 14 november 2008 18:57
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Joel,
 
 Another good optimization point, Joel. If we assume that Karim's custom
 cursor is already a child of the stage, then setChildIndex() should be
 more
 efficient. So I guess it depends on the implementation.
 
 Interestingly,
 
 I get a RangeError with this:
 
   stage.setChildIndex(customCursor, stage.numChildren);
 
 but this works:
 
   stage.setChildIndex(customCursor, stage.numChildren - 1);
 
 However,
 
   stage.addChildAt(customCursor, stage.numChildren);
 
 does not trigger the RangeError, and
 
   stage.addChildAt(customCursor, stage.numChildren - 1);
 
 still produces the desired result.
 
 If this is a bug then 'stage.numChildren - 1' would be the safe way to go.
 
 Regards,
 
 -Keith
 http://keithreinfeld.home.comcast.net
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Joel Stransky
  Sent: Friday, November 14, 2008 10:25 AM
  To: Flash Coders List
  Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Very nice Keith. Wouldn't setChildIndex() work as well? Or is
 addChildAt()
  better for ensuring that the cursor is added to the display list?
 
  On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
  [EMAIL PROTECTED]wrote:
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-2008
 13:36
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Cor
I guess because you set the customCursor in the array position.
And array positions can be set to any index, and for that matter it can't be
out of range.

stage.addChildAt(customCursor, 100); will try to put the child at index
hundred.
Eventually the displayList notices a empty index and will shuffle everything
in place so there is never an empty indexed location.
The same as when you remove a child for the displayList.

I am not completely sure if this is the correct technical description, but
from what I have read about the displayList, it figures.

Kind regards
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
Reinfeld
Sent: vrijdag 14 november 2008 20:11
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3

Hi Cor, 
 
Right. I know all that. The question is why doesn't 
 
stage.addChildAt(customCursor, stage.numChildren); 
 
trigger a RangeError? 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Cor
 Sent: Friday, November 14, 2008 12:38 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 It is not a bug.
 The displayList stores it objects in a Array, wich starts at 0.
 So Array[obj1,obj2,obj3,obj4] has 4 children wich are located at
 position 0, 1, 2, 3.
 If you remove a child every other moves up 1 place.
 
 So stage.numChildren is accordingly out of range.
 
 HTH
 C
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Keith
 Reinfeld
 Sent: vrijdag 14 november 2008 18:57
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Joel,
 
 Another good optimization point, Joel. If we assume that Karim's custom
 cursor is already a child of the stage, then setChildIndex() should be
 more
 efficient. So I guess it depends on the implementation.
 
 Interestingly,
 
 I get a RangeError with this:
 
   stage.setChildIndex(customCursor, stage.numChildren);
 
 but this works:
 
   stage.setChildIndex(customCursor, stage.numChildren - 1);
 
 However,
 
   stage.addChildAt(customCursor, stage.numChildren);
 
 does not trigger the RangeError, and
 
   stage.addChildAt(customCursor, stage.numChildren - 1);
 
 still produces the desired result.
 
 If this is a bug then 'stage.numChildren - 1' would be the safe way to go.
 
 Regards,
 
 -Keith
 http://keithreinfeld.home.comcast.net
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Joel Stransky
  Sent: Friday, November 14, 2008 10:25 AM
  To: Flash Coders List
  Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Very nice Keith. Wouldn't setChildIndex() work as well? Or is
 addChildAt()
  better for ensuring that the cursor is added to the display list?
 
  On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
  [EMAIL PROTECTED]wrote:
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-2008
 13:36
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-2008
13:36

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Keith Reinfeld
Cor, 

addChildAt() -- Tested: 

Any index 0 thru numChildren (inclusive) = No RangeError.

Any index greater than numChildren = RangeError. 
 
That's why I thought 'bug'. 
 
Just an observation. Just trying to help. 
 
So, Cor, howyabin? 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Cor
 Sent: Friday, November 14, 2008 1:18 PM
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 I guess because you set the customCursor in the array position.
 And array positions can be set to any index, and for that matter it can't
 be
 out of range.
 
 stage.addChildAt(customCursor, 100); will try to put the child at index
 hundred.
 Eventually the displayList notices a empty index and will shuffle
 everything
 in place so there is never an empty indexed location.
 The same as when you remove a child for the displayList.
 
 I am not completely sure if this is the correct technical description, but
 from what I have read about the displayList, it figures.
 
 Kind regards
 Cor
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Keith
 Reinfeld
 Sent: vrijdag 14 november 2008 20:11
 To: 'Flash Coders List'
 Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 Hi Cor,
 
 Right. I know all that. The question is why doesn't
 
   stage.addChildAt(customCursor, stage.numChildren);
 
 trigger a RangeError?
 
 Regards,
 
 -Keith
 http://keithreinfeld.home.comcast.net
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Cor
  Sent: Friday, November 14, 2008 12:38 PM
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  It is not a bug.
  The displayList stores it objects in a Array, wich starts at 0.
  So Array[obj1,obj2,obj3,obj4] has 4 children wich are located at
  position 0, 1, 2, 3.
  If you remove a child every other moves up 1 place.
 
  So stage.numChildren is accordingly out of range.
 
  HTH
  C
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Keith
  Reinfeld
  Sent: vrijdag 14 november 2008 18:57
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Joel,
 
  Another good optimization point, Joel. If we assume that Karim's custom
  cursor is already a child of the stage, then setChildIndex() should be
  more
  efficient. So I guess it depends on the implementation.
 
  Interestingly,
 
  I get a RangeError with this:
 
  stage.setChildIndex(customCursor, stage.numChildren);
 
  but this works:
 
  stage.setChildIndex(customCursor, stage.numChildren - 1);
 
  However,
 
  stage.addChildAt(customCursor, stage.numChildren);
 
  does not trigger the RangeError, and
 
  stage.addChildAt(customCursor, stage.numChildren - 1);
 
  still produces the desired result.
 
  If this is a bug then 'stage.numChildren - 1' would be the safe way to
 go.
 
  Regards,
 
  -Keith
  http://keithreinfeld.home.comcast.net
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Joel Stransky
   Sent: Friday, November 14, 2008 10:25 AM
   To: Flash Coders List
   Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   Very nice Keith. Wouldn't setChildIndex() work as well? Or is
  addChildAt()
   better for ensuring that the cursor is added to the display list?
  
   On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
   [EMAIL PROTECTED]wrote:
  
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-
 2008
  13:36
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-2008
 13:36
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Joel Stransky
It could be seen as a bug. addChildAt tells flash to ADD to the current
number of children. setChildIndex works within the existing children.

On Fri, Nov 14, 2008 at 2:49 PM, Keith Reinfeld
[EMAIL PROTECTED]wrote:

 Cor,

 addChildAt() -- Tested:

 Any index 0 thru numChildren (inclusive) = No RangeError.

 Any index greater than numChildren = RangeError.

 That's why I thought 'bug'.

 Just an observation. Just trying to help.

 So, Cor, howyabin?

 Regards,

 -Keith
 http://keithreinfeld.home.comcast.net



  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Cor
  Sent: Friday, November 14, 2008 1:18 PM
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  I guess because you set the customCursor in the array position.
  And array positions can be set to any index, and for that matter it can't
  be
  out of range.
 
  stage.addChildAt(customCursor, 100); will try to put the child at index
  hundred.
  Eventually the displayList notices a empty index and will shuffle
  everything
  in place so there is never an empty indexed location.
  The same as when you remove a child for the displayList.
 
  I am not completely sure if this is the correct technical description,
 but
  from what I have read about the displayList, it figures.
 
  Kind regards
  Cor
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Keith
  Reinfeld
  Sent: vrijdag 14 november 2008 20:11
  To: 'Flash Coders List'
  Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
 
  Hi Cor,
 
  Right. I know all that. The question is why doesn't
 
stage.addChildAt(customCursor, stage.numChildren);
 
  trigger a RangeError?
 
  Regards,
 
  -Keith
  http://keithreinfeld.home.comcast.net
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Cor
   Sent: Friday, November 14, 2008 12:38 PM
   To: 'Flash Coders List'
   Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   It is not a bug.
   The displayList stores it objects in a Array, wich starts at 0.
   So Array[obj1,obj2,obj3,obj4] has 4 children wich are located
 at
   position 0, 1, 2, 3.
   If you remove a child every other moves up 1 place.
  
   So stage.numChildren is accordingly out of range.
  
   HTH
   C
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Keith
   Reinfeld
   Sent: vrijdag 14 november 2008 18:57
   To: 'Flash Coders List'
   Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   Joel,
  
   Another good optimization point, Joel. If we assume that Karim's custom
   cursor is already a child of the stage, then setChildIndex() should be
   more
   efficient. So I guess it depends on the implementation.
  
   Interestingly,
  
   I get a RangeError with this:
  
   stage.setChildIndex(customCursor, stage.numChildren);
  
   but this works:
  
   stage.setChildIndex(customCursor, stage.numChildren - 1);
  
   However,
  
   stage.addChildAt(customCursor, stage.numChildren);
  
   does not trigger the RangeError, and
  
   stage.addChildAt(customCursor, stage.numChildren - 1);
  
   still produces the desired result.
  
   If this is a bug then 'stage.numChildren - 1' would be the safe way to
  go.
  
   Regards,
  
   -Keith
   http://keithreinfeld.home.comcast.net
  
  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Joel Stransky
Sent: Friday, November 14, 2008 10:25 AM
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
   
Very nice Keith. Wouldn't setChildIndex() work as well? Or is
   addChildAt()
better for ensuring that the cursor is added to the display list?
   
On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
[EMAIL PROTECTED]wrote:
   
  
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   No virus found in this incoming message.
   Checked by AVG - http://www.avg.com
   Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-
  2008
   13:36
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date:
 14-11-2008
  13:36
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-14 Thread Keith Reinfeld
Joel, 
 
Ah, yes, of course. Well that clears it up for me. 
 
Thanks. 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Joel Stransky
 Sent: Friday, November 14, 2008 3:33 PM
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
 
 It could be seen as a bug. addChildAt tells flash to ADD to the current
 number of children. setChildIndex works within the existing children.
 
 On Fri, Nov 14, 2008 at 2:49 PM, Keith Reinfeld
 [EMAIL PROTECTED]wrote:
 
  Cor,
 
  addChildAt() -- Tested:
 
  Any index 0 thru numChildren (inclusive) = No RangeError.
 
  Any index greater than numChildren = RangeError.
 
  That's why I thought 'bug'.
 
  Just an observation. Just trying to help.
 
  So, Cor, howyabin?
 
  Regards,
 
  -Keith
  http://keithreinfeld.home.comcast.net
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Cor
   Sent: Friday, November 14, 2008 1:18 PM
   To: 'Flash Coders List'
   Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   I guess because you set the customCursor in the array position.
   And array positions can be set to any index, and for that matter it
 can't
   be
   out of range.
  
   stage.addChildAt(customCursor, 100); will try to put the child at
 index
   hundred.
   Eventually the displayList notices a empty index and will shuffle
   everything
   in place so there is never an empty indexed location.
   The same as when you remove a child for the displayList.
  
   I am not completely sure if this is the correct technical description,
  but
   from what I have read about the displayList, it figures.
  
   Kind regards
   Cor
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Keith
   Reinfeld
   Sent: vrijdag 14 november 2008 20:11
   To: 'Flash Coders List'
   Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
  
   Hi Cor,
  
   Right. I know all that. The question is why doesn't
  
 stage.addChildAt(customCursor, stage.numChildren);
  
   trigger a RangeError?
  
   Regards,
  
   -Keith
   http://keithreinfeld.home.comcast.net
  
  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Cor
Sent: Friday, November 14, 2008 12:38 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
   
It is not a bug.
The displayList stores it objects in a Array, wich starts at 0.
So Array[obj1,obj2,obj3,obj4] has 4 children wich are
 located
  at
position 0, 1, 2, 3.
If you remove a child every other moves up 1 place.
   
So stage.numChildren is accordingly out of range.
   
HTH
C
   
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
 Keith
Reinfeld
Sent: vrijdag 14 november 2008 18:57
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
   
Joel,
   
Another good optimization point, Joel. If we assume that Karim's
 custom
cursor is already a child of the stage, then setChildIndex() should
 be
more
efficient. So I guess it depends on the implementation.
   
Interestingly,
   
I get a RangeError with this:
   
stage.setChildIndex(customCursor, stage.numChildren);
   
but this works:
   
stage.setChildIndex(customCursor, stage.numChildren - 1);
   
However,
   
stage.addChildAt(customCursor, stage.numChildren);
   
does not trigger the RangeError, and
   
stage.addChildAt(customCursor, stage.numChildren - 1);
   
still produces the desired result.
   
If this is a bug then 'stage.numChildren - 1' would be the safe way
 to
   go.
   
Regards,
   
-Keith
http://keithreinfeld.home.comcast.net
   
   
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Joel Stransky
 Sent: Friday, November 14, 2008 10:25 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3

 Very nice Keith. Wouldn't setChildIndex() work as well? Or is
addChildAt()
 better for ensuring that the cursor is added to the display list?

 On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
 [EMAIL PROTECTED]wrote:

   
   
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-
 11-
   2008
13:36
   
___
Flashcoders mailing list
Flashcoders

RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-13 Thread Karim Beyrouti
Yeh - this might not work - I already have a similar structure, and as the
ComboBox adds the List to the stage. I tried to find a 'lockRoot' type of
solution for AS3 - but no joy there. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joel
Stransky
Sent: 12 November 2008 23:03
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3

This might be a bit cumbersome but less processor intensive. Instead of
using MOUSE_MOVE, create two Sprites on the stage. One as a content pane and
other as a custom cursor pane. Then add all content including the combo box
to the content pane and the cursor to the cursor pane. I can't say for sure
if the combo box will still display on top but may be worth a shot if you're
big on freeing up resources.

On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti [EMAIL PROTECTED] wrote:

 Perfect - thank you !

 it seems a little odd that the ComboBox adds the List to the stage and not
 one of its own children. Maybe memory/resource managment. h.



 On 12 Nov 2008, at 16:26, Keith Reinfeld wrote:

  Karim,

 Try adding the following line of code to your MOUSE_MOVE event listener
 function:
 stage.addChildAt(customCursor, stage.numChildren);

 Of course, you must substitute your custom cursor's instance name for
 'customCursor'.

 HTH

 Regards,

 -Keith
 http://keithreinfeld.home.comcast.net




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Keith Reinfeld
Karim,

Try adding the following line of code to your MOUSE_MOVE event listener
function:
stage.addChildAt(customCursor, stage.numChildren);

Of course, you must substitute your custom cursor's instance name for
'customCursor'.

HTH

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
Some other way... but will look into CursorManager


Thanks


Karim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall
Sent: 12 November 2008 13:01
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3

Are you using CursorManager or adding the cursor in some other way?

Peter


On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:
 Hello All -

 I am a little stumped by this one.

 I am using a custom cursor ( added to the stage ),
 one of my loaded SWF's has a drop down comboBox -

 The problem:

 The List gets added to the stage and goes over the custom mouse cursor.
 Do you guys know of any fixes for this one?


 Regards


 Karim Beyrouti

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
Hello All - 

I am a little stumped by this one. 

I am using a custom cursor ( added to the stage ), 
one of my loaded SWF's has a drop down comboBox - 

The problem:

The List gets added to the stage and goes over the custom mouse cursor. 
Do you guys know of any fixes for this one?


Regards


Karim Beyrouti

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
Oh yes sorry, it's Flex.

Peter


On Wed, Nov 12, 2008 at 1:26 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:
 Did not find it in Docs, so googled it - and it's a Flex thing no?...

 Using flash CS3...



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall
 Sent: 12 November 2008 13:01
 To: Flash Coders List
 Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3

 Are you using CursorManager or adding the cursor in some other way?

 Peter


 On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:
 Hello All -

 I am a little stumped by this one.

 I am using a custom cursor ( added to the stage ),
 one of my loaded SWF's has a drop down comboBox -

 The problem:

 The List gets added to the stage and goes over the custom mouse cursor.
 Do you guys know of any fixes for this one?


 Regards


 Karim Beyrouti

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Karim Beyrouti
Did not find it in Docs, so googled it - and it's a Flex thing no?... 

Using flash CS3...



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Hall
Sent: 12 November 2008 13:01
To: Flash Coders List
Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3

Are you using CursorManager or adding the cursor in some other way?

Peter


On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:
 Hello All -

 I am a little stumped by this one.

 I am using a custom cursor ( added to the stage ),
 one of my loaded SWF's has a drop down comboBox -

 The problem:

 The List gets added to the stage and goes over the custom mouse cursor.
 Do you guys know of any fixes for this one?


 Regards


 Karim Beyrouti

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Peter Hall
Are you using CursorManager or adding the cursor in some other way?

Peter


On Wed, Nov 12, 2008 at 12:42 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:
 Hello All -

 I am a little stumped by this one.

 I am using a custom cursor ( added to the stage ),
 one of my loaded SWF's has a drop down comboBox -

 The problem:

 The List gets added to the stage and goes over the custom mouse cursor.
 Do you guys know of any fixes for this one?


 Regards


 Karim Beyrouti

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread karim beyrouti

Perfect - thank you !

it seems a little odd that the ComboBox adds the List to the stage and  
not one of its own children. Maybe memory/resource managment. h.



On 12 Nov 2008, at 16:26, Keith Reinfeld wrote:


Karim,

Try adding the following line of code to your MOUSE_MOVE event  
listener

function:
stage.addChildAt(customCursor, stage.numChildren);

Of course, you must substitute your custom cursor's instance name for
'customCursor'.

HTH

Regards,

-Keith
http://keithreinfeld.home.comcast.net




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ComboBox + Custom Cursor , AS3

2008-11-12 Thread Joel Stransky
This might be a bit cumbersome but less processor intensive. Instead of
using MOUSE_MOVE, create two Sprites on the stage. One as a content pane and
other as a custom cursor pane. Then add all content including the combo box
to the content pane and the cursor to the cursor pane. I can't say for sure
if the combo box will still display on top but may be worth a shot if you're
big on freeing up resources.

On Wed, Nov 12, 2008 at 5:47 PM, karim beyrouti [EMAIL PROTECTED] wrote:

 Perfect - thank you !

 it seems a little odd that the ComboBox adds the List to the stage and not
 one of its own children. Maybe memory/resource managment. h.



 On 12 Nov 2008, at 16:26, Keith Reinfeld wrote:

  Karim,

 Try adding the following line of code to your MOUSE_MOVE event listener
 function:
 stage.addChildAt(customCursor, stage.numChildren);

 Of course, you must substitute your custom cursor's instance name for
 'customCursor'.

 HTH

 Regards,

 -Keith
 http://keithreinfeld.home.comcast.net




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders