Re: [flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread Alex Harui
Is the loaded SWF also built with 3.5?


On 7/2/10 10:18 AM, jamesfin james.alan.finni...@gmail.com wrote:






Follow-up...

As a test, I set loadForCompatibility=false.  Voila, everything works.  This 
indicates a clear defect in the loadForCompatibility functionality with the 
ActiveX Flash Player.  However, I will no longer be able to use cross-SDK SWF's 
in parallel. ;(

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
jamesfin james.alan.finni...@... wrote:

 I believe there is an anomaly within the ActiveX Flash Player that is causing 
 a 1009 error when trying to center a simple popup.

 This logic runs fine on all non-IE OSX and Windows browsers thus causing me 
 to think it's specific to ActiveX Flash.

 One thing that may be unique here is that we are using 
 loadForCompatibility=true.  The loadForCompatibility property specifies 
 whether the sub-application is loaded into a peer ApplicationDomain as the 
 parent (when set to true), or into a child ApplicationDomain (when set to 
 false).

 Using 3.5SDK with Flash Player (IE) 10.1.53.64.



 Parent Application Loading code...

 swf = new SWFLoader();
 parentApp.rawChildren.addChild(swf);
 swf.visible = false;
 swf.includeInLayout = false;

 swf.addEventListener(Event.COMPLETE, swfAppComplete);
 swf.addEventListener(IOErrorEvent.IO_ERROR, ioError);
 swf.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);

 swf.loadForCompatibility = true;





 Parent Application later calls into SWF...

 var callFunction:Function = (swf.content as 
 Object).application[_commonFunction];
 callFunction(_param);





 Loaded SWF Code trys to display a Popup...

 var foo:fooEdit = PopUpManager.createPopUp(systemManager.getSandboxRoot(), 
 fooEdit, true) as fooEdit;
 foo.fooID = 123;
 PopUpManager.centerPopUp(bldg);



 When the PopUpManager.centerPopUp method is called, it fails at...

 TypeError: Error #1009: Cannot access a property or method of a null object 
 reference.
 at mx.managers::PopUpManagerImpl/findPopupInfoByOwner()
 at mx.managers::PopUpManagerImpl/centerPopUp()
 at mx.managers::PopUpManager$/centerPopUp()



 Since these same SWF's run fine in non-IE environments, is there something 
 unique about the ActiveX flash player that might cause this failure?

 What other kinds of information would be needed to further evaluate a cause?







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread Alex Harui
Try passing in just systemManager instead of systemManager.getSandboxRoot


On 7/2/10 11:11 AM, jamesfin james.alan.finni...@gmail.com wrote:






Sorry bout that...foo is being passed...

var foo:fooEdit = PopUpManager.createPopUp(systemManager.getSandboxRoot(), 
fooEdit, true) as fooEdit;
foo.fooID = 123;
PopUpManager.centerPopUp(foo);

The loaded SWF is also 3.5.

Thanks!

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aha...@... wrote:

 Is the loaded SWF also built with 3.5?


 On 7/2/10 10:18 AM, jamesfin james.alan.finni...@... wrote:






 Follow-up...

 As a test, I set loadForCompatibility=false.  Voila, everything works.  This 
 indicates a clear defect in the loadForCompatibility functionality with the 
 ActiveX Flash Player.  However, I will no longer be able to use cross-SDK 
 SWF's in parallel. ;(

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , jamesfin james.alan.finnigan@ 
 wrote:
 
  I believe there is an anomaly within the ActiveX Flash Player that is 
  causing a 1009 error when trying to center a simple popup.
 
  This logic runs fine on all non-IE OSX and Windows browsers thus causing me 
  to think it's specific to ActiveX Flash.
 
  One thing that may be unique here is that we are using 
  loadForCompatibility=true.  The loadForCompatibility property specifies 
  whether the sub-application is loaded into a peer ApplicationDomain as the 
  parent (when set to true), or into a child ApplicationDomain (when set to 
  false).
 
  Using 3.5SDK with Flash Player (IE) 10.1.53.64.
 
 
 
  Parent Application Loading code...
 
  swf = new SWFLoader();
  parentApp.rawChildren.addChild(swf);
  swf.visible = false;
  swf.includeInLayout = false;
 
  swf.addEventListener(Event.COMPLETE, swfAppComplete);
  swf.addEventListener(IOErrorEvent.IO_ERROR, ioError);
  swf.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);
 
  swf.loadForCompatibility = true;
 
 
 
 
 
  Parent Application later calls into SWF...
 
  var callFunction:Function = (swf.content as 
  Object).application[_commonFunction];
  callFunction(_param);
 
 
 
 
 
  Loaded SWF Code trys to display a Popup...
 
  var foo:fooEdit = PopUpManager.createPopUp(systemManager.getSandboxRoot(), 
  fooEdit, true) as fooEdit;
  foo.fooID = 123;
  PopUpManager.centerPopUp(bldg);
 
 
 
  When the PopUpManager.centerPopUp method is called, it fails at...
 
  TypeError: Error #1009: Cannot access a property or method of a null object 
  reference.
  at mx.managers::PopUpManagerImpl/findPopupInfoByOwner()
  at mx.managers::PopUpManagerImpl/centerPopUp()
  at mx.managers::PopUpManager$/centerPopUp()
 
 
 
  Since these same SWF's run fine in non-IE environments, is there something 
  unique about the ActiveX flash player that might cause this failure?
 
  What other kinds of information would be needed to further evaluate a cause?
 






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: IE8/ActiveX FlashPlayer Bug?

2010-07-02 Thread Alex Harui
Create the simplest test case you can and if the problem reproduces, file a 
bug.  Note that Adobe is closed next week so we won’t be able to assist you 
until 7/12.  The support folks will be working though.


On 7/2/10 3:45 PM, jamesfin james.alan.finni...@gmail.com wrote:






Tried this and got the same 1009 error in the same place.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aha...@... wrote:

 Try passing in just systemManager instead of systemManager.getSandboxRoot


 On 7/2/10 11:11 AM, jamesfin james.alan.finni...@... wrote:






 Sorry bout that...foo is being passed...

 var foo:fooEdit = PopUpManager.createPopUp(systemManager.getSandboxRoot(), 
 fooEdit, true) as fooEdit;
 foo.fooID = 123;
 PopUpManager.centerPopUp(foo);

 The loaded SWF is also 3.5.

 Thanks!

 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  Is the loaded SWF also built with 3.5?
 
 
  On 7/2/10 10:18 AM, jamesfin james.alan.finnigan@ wrote:
 
 
 
 
 
 
  Follow-up...
 
  As a test, I set loadForCompatibility=false.  Voila, everything works.  
  This indicates a clear defect in the loadForCompatibility functionality 
  with the ActiveX Flash Player.  However, I will no longer be able to use 
  cross-SDK SWF's in parallel. ;(
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com  
  mailto:flexcoders%40yahoogroups.com , jamesfin james.alan.finnigan@ 
  wrote:
  
   I believe there is an anomaly within the ActiveX Flash Player that is 
   causing a 1009 error when trying to center a simple popup.
  
   This logic runs fine on all non-IE OSX and Windows browsers thus causing 
   me to think it's specific to ActiveX Flash.
  
   One thing that may be unique here is that we are using 
   loadForCompatibility=true.  The loadForCompatibility property specifies 
   whether the sub-application is loaded into a peer ApplicationDomain as 
   the parent (when set to true), or into a child ApplicationDomain (when 
   set to false).
  
   Using 3.5SDK with Flash Player (IE) 10.1.53.64.
  
  
  
   Parent Application Loading code...
  
   swf = new SWFLoader();
   parentApp.rawChildren.addChild(swf);
   swf.visible = false;
   swf.includeInLayout = false;
  
   swf.addEventListener(Event.COMPLETE, swfAppComplete);
   swf.addEventListener(IOErrorEvent.IO_ERROR, ioError);
   swf.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);
  
   swf.loadForCompatibility = true;
  
  
  
  
  
   Parent Application later calls into SWF...
  
   var callFunction:Function = (swf.content as 
   Object).application[_commonFunction];
   callFunction(_param);
  
  
  
  
  
   Loaded SWF Code trys to display a Popup...
  
   var foo:fooEdit = 
   PopUpManager.createPopUp(systemManager.getSandboxRoot(), fooEdit, true) 
   as fooEdit;
   foo.fooID = 123;
   PopUpManager.centerPopUp(bldg);
  
  
  
   When the PopUpManager.centerPopUp method is called, it fails at...
  
   TypeError: Error #1009: Cannot access a property or method of a null 
   object reference.
   at mx.managers::PopUpManagerImpl/findPopupInfoByOwner()
   at mx.managers::PopUpManagerImpl/centerPopUp()
   at mx.managers::PopUpManager$/centerPopUp()
  
  
  
   Since these same SWF's run fine in non-IE environments, is there 
   something unique about the ActiveX flash player that might cause this 
   failure?
  
   What other kinds of information would be needed to further evaluate a 
   cause?
  
 
 
 
 
 
 
  --
  Alex Harui
  Flex SDK Team
  Adobe System, Inc.
  http://blogs.adobe.com/aharui
 






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Re: Is it a Bug?

2009-10-07 Thread Alex Harui
I'm sure there is but I don't know where it is.  Try release notes or there may 
be a list in JIRA (the bug system)

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of GeorgeB
Sent: Wednesday, October 07, 2009 8:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it a Bug?



Hi Alex.

Following your description of that behaviour, I resolved the case doing as you 
said, by handling menuEvent.MENU_HIDE for the menuBar control to disable 
processing itemEditBegin for the ADG.
Everything is now looking normal. Thanks for the advice.

BTW is there a published list of errors/bugs fixed in Flex SDK 3.4 as compared 
to SDK 3.2 ? (the one I use now).

Thanks again
George

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Flex tries hard to make sure some component has focus and will restore focus 
 to the last thing in the app that had focus. If that is the ADG, the ADG will 
 start a new edit session. You can try to detect that situation and cancel 
 ITEM_EDIT_BEGINNING or ITEM_EDIT_BEGIN.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of GeorgeB
 Sent: Tuesday, October 06, 2009 6:04 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Is it a Bug?



 Hi all,

 I stumbled on the following and don't know if this is a bug, and if there are 
 is any fix.
 Environment is Eclipse Ganymede, Flex Pro Plugin 3 (3.2 SDK)

 The setup includes a MenuBar control with several submenus. Also there is a 
 AdvancedDataGrid with several columns and some itemEditors used in these 
 columns. Handling of the itemEditors is through a typical itemEditBegin event 
 function, that handles the event. This works OK as it should.

 Now let's first use any itemEditor on the ADG (and finish the operation). 
 Then clicking the menuBar, it opens the popup submenu through 
 nenuEvent:MENU_SHOW, as it has to. If I leave the popup open and click 
 anywhere outside, to close the popup, it closes allright, but the previously 
 used itemEditor comes open/selected. This is not supposed to be, but happens 
 all the time, even if I click outside the ADG, anywhere. (The function that 
 handles the itemEditBegin is triggered and the event.target shows the ADG 
 with columnIndex of the previously used itemEditor still selected)

 Any insight please?

 Thanks
 George




RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-11 Thread Battershall, Jeff
Darrell,

I wanted to pick this one back up - I'm wondering whether it should be
entered as a bug. If so, I'll put togeter some example code to reproduce
the issue.  Only caveat being that the RSLs have to live somewhere so
there is an external dependency.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Friday, February 06, 2009 9:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?


3.2.0.3958

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 9:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?



What version of dataviz and the framework are you using?


-Darrell

--- In flexcoders@yahoogroups.com, Battershall, Jeff
jeff.battersh...@... wrote:

 Daniel,
 
 OK its an RSL issue. When I have the dataviz and framework merged into

 code, everything renders correctly.  When I'm referencing them as RSL
 URLs, the fonts don't render properly in the AxisRenderer (for 
 vertical axes).
 
 I had run into this previously and the workaround is/was to merge it
 all into code with the commensurate increase in file size.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On Behalf Of Battershall, Jeff
 Sent: Thursday, February 05, 2009 8:54 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?
 
 
 Daniel,
 
 It's bizarre - I enumerated the fonts in the document (TitleWindow)
 and they are there but aren't displaying in the AxisRenderer. The 
 fonts ARE rendering in other parts of the document. I'm wondering 
 whether I have the latest datavis build or something weird like that.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 On Behalf Of Darrell Loverin
 Sent: Thursday, February 05, 2009 7:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?
 
 
 The problem sounds like it might be this bug 
 https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
 Flex 3.2.
 
 
 -Darrell
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff 
 jeff.battershall@ wrote:
 
  Additional info - the chart is in a TitleWindow.  There seems to
 be a
  lot of posts about this and similar issues with charts within
 modules,
  etc.  I just haven't been able to get the magic incantation that
 will
  make the fonts render.  I could just say f-it and render the
 labels
  using device fonts and without rotation, but that kinda runs
 against the
  grain, if you know what I mean.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On
  Behalf Of Battershall, Jeff
  Sent: Thursday, February 05, 2009 2:36 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] AxisRenderer Embedded Font Bug?
  
  
  I've got a vertical axis with an axisrenderer and I'm trying to
 rotate
  the labels 90 degrees.  I'm referring to a font embedded in a
  stylesheet. The labels won't display - it appears that room is
 being
  made for the labels to appear, but the labels aren't getting
 rendered.
  
  I'm using MyriadWebPro as the embedded font and I've also tried
 this
  with Arial with the same results. I've also tried this with no
 label
  rotation at all - but no dice.  If I stipulate a font family
 including
  device fonts, the labels will render, but no rotation is
 available.
  
  Has anyone seen this?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
 b4cf-
  1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
  Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c
 f-
 1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
 Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c
 f-
 1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
 Links







--
Flexcoders Mailing List
FAQ: http

RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-06 Thread Battershall, Jeff
3.2.0.3958

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 9:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?



What version of dataviz and the framework are you using?


-Darrell

--- In flexcoders@yahoogroups.com, Battershall, Jeff
jeff.battersh...@... wrote:

 Daniel,
 
 OK its an RSL issue. When I have the dataviz and framework merged into

 code, everything renders correctly.  When I'm referencing them as RSL 
 URLs, the fonts don't render properly in the AxisRenderer (for 
 vertical axes).
 
 I had run into this previously and the workaround is/was to merge it 
 all into code with the commensurate increase in file size.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 On Behalf Of Battershall, Jeff
 Sent: Thursday, February 05, 2009 8:54 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?
 
 
 Daniel,
 
 It's bizarre - I enumerated the fonts in the document (TitleWindow) 
 and they are there but aren't displaying in the AxisRenderer. The 
 fonts ARE rendering in other parts of the document. I'm wondering 
 whether I have the latest datavis build or something weird like that.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 On Behalf Of Darrell Loverin
 Sent: Thursday, February 05, 2009 7:37 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?
 
 
 The problem sounds like it might be this bug
 https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
 Flex 3.2.
 
 
 -Darrell
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Additional info - the chart is in a TitleWindow.  There seems to
 be a
  lot of posts about this and similar issues with charts within
 modules,
  etc.  I just haven't been able to get the magic incantation that
 will
  make the fonts render.  I could just say f-it and render the
 labels
  using device fonts and without rotation, but that kinda runs
 against the
  grain, if you know what I mean.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com
 [mailto:flexcod...@yahoogroups.com] On
  Behalf Of Battershall, Jeff
  Sent: Thursday, February 05, 2009 2:36 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] AxisRenderer Embedded Font Bug?
  
  
  I've got a vertical axis with an axisrenderer and I'm trying to
 rotate
  the labels 90 degrees.  I'm referring to a font embedded in a 
  stylesheet. The labels won't display - it appears that room is
 being
  made for the labels to appear, but the labels aren't getting
 rendered.
  
  I'm using MyriadWebPro as the embedded font and I've also tried
 this
  with Arial with the same results. I've also tried this with no
 label
  rotation at all - but no dice.  If I stipulate a font family
 including
  device fonts, the labels will render, but no rotation is
 available.
  
  Has anyone seen this?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
 b4cf-
  1e62079f6847
  Search Archives: 
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
 Groups
  Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c
 f-
 1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c
 f-
 1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Daniel,

It's bizarre - I enumerated the fonts in the document (TitleWindow) and
they are there but aren't displaying in the AxisRenderer. The fonts ARE
rendering in other parts of the document. I'm wondering whether I have
the latest datavis build or something weird like that.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?


The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, Battershall, Jeff 
jeff.battersh...@... wrote:

 Additional info - the chart is in a TitleWindow.  There seems to
be a
 lot of posts about this and similar issues with charts within
modules,
 etc.  I just haven't been able to get the magic incantation that
will
 make the fonts render.  I could just say f-it and render the
labels
 using device fonts and without rotation, but that kinda runs
against the
 grain, if you know what I mean.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
 Behalf Of Battershall, Jeff
 Sent: Thursday, February 05, 2009 2:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AxisRenderer Embedded Font Bug?
 
 
 I've got a vertical axis with an axisrenderer and I'm trying to
rotate
 the labels 90 degrees.  I'm referring to a font embedded in a 
 stylesheet. The labels won't display - it appears that room is
being
 made for the labels to appear, but the labels aren't getting
rendered.
 
 I'm using MyriadWebPro as the embedded font and I've also tried
this
 with Arial with the same results. I've also tried this with no
label
 rotation at all - but no dice.  If I stipulate a font family
including
 device fonts, the labels will render, but no rotation is
available. 
 
 Has anyone seen this?
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 jeff.battersh...@...
 (609) 520-5637 (p)
 (484) 477-9900 (c)
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
 1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
 Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Daniel,

OK its an RSL issue. When I have the dataviz and framework merged into
code, everything renders correctly.  When I'm referencing them as RSL
URLs, the fonts don't render properly in the AxisRenderer (for vertical
axes).  

I had run into this previously and the workaround is/was to merge it all
into code with the commensurate increase in file size.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, February 05, 2009 8:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?


Daniel,

It's bizarre - I enumerated the fonts in the document (TitleWindow) and
they are there but aren't displaying in the AxisRenderer. The fonts ARE
rendering in other parts of the document. I'm wondering whether I have
the latest datavis build or something weird like that.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?


The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, Battershall, Jeff 
jeff.battersh...@... wrote:

 Additional info - the chart is in a TitleWindow.  There seems to
be a
 lot of posts about this and similar issues with charts within
modules,
 etc.  I just haven't been able to get the magic incantation that
will
 make the fonts render.  I could just say f-it and render the
labels
 using device fonts and without rotation, but that kinda runs
against the
 grain, if you know what I mean.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
 Behalf Of Battershall, Jeff
 Sent: Thursday, February 05, 2009 2:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] AxisRenderer Embedded Font Bug?
 
 
 I've got a vertical axis with an axisrenderer and I'm trying to
rotate
 the labels 90 degrees.  I'm referring to a font embedded in a
 stylesheet. The labels won't display - it appears that room is
being
 made for the labels to appear, but the labels aren't getting
rendered.
 
 I'm using MyriadWebPro as the embedded font and I've also tried
this
 with Arial with the same results. I've also tried this with no
label
 rotation at all - but no dice.  If I stipulate a font family
including
 device fonts, the labels will render, but no rotation is
available. 
 
 Has anyone seen this?
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 jeff.battersh...@...
 (609) 520-5637 (p)
 (484) 477-9900 (c)
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
 1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
 Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: Is it a bug while switching focus ?

2008-11-06 Thread Alex Harui
Please file a bug with a simplified test case.  If it is that Alt-TAB is seen 
as TAB, you can block that event with a high priority capture phase listener on 
systemManager

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
itdanny2002
Sent: Wednesday, November 05, 2008 11:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it a bug while switching focus ?


I use I.E.

It has focus but shift to other control
I guess that it capture the Tab key while
I press Alt-Tab to switch back.

Anyway, I write a rountine in DeActivate
event to capture last focus. And then,
restore it in Activate event. However, I
find another problem ... if I press the key
quickly, it will force me back since I use
Calllater. I need to modify the code. Thanks.



RE: [flexcoders] Re: Is it a bug while switching focus ?

2008-11-05 Thread Alex Harui
Which browser are you using?  I'm quite surprised the browser did not have 
focus.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
itdanny2002
Sent: Wednesday, November 05, 2008 1:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is it a bug while switching focus ?


Hi Alex,

As in my example, it did. It can get back
the focus but it shifts to other control
(test2) instead of original one (test1).



RE: [flexcoders] Re: Text component drag bug

2008-02-14 Thread Joan Lafferty
The bug has just been deferred, but, not closed forever. If you vote on
the bug, it will possibly get reopened for a future release.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Raymes
Sent: Thursday, February 14, 2008 2:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Text component drag bug

 

And to think I was the only one annoyed by this... I'm looking for a
way to fix it as well.

If I find a way, I will post it!

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, philarmon [EMAIL PROTECTED] wrote:

 Hi !
 
 Have someone managed to fix the dragging bug in the Text component ?
 If you click in the text and drag it down, the text scrolls although
 no scrolling is needed. The first line becomes invisible - very
annoying !
 
 I found this bug in the flex bug database but it is marked as resolved
 and closed there but it is not ... Just try the code snippet there and
 try to drag the text on the _left_ side of the textfield:
 
 https://bugs.adobe.com/jira/browse/SDK-484
https://bugs.adobe.com/jira/browse/SDK-484 
 
 Any ideas ? Thank you !


 



Re: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

2007-10-23 Thread Aldo Bucchi
Thanks Alex,

That was it... I was confused, there is no need to escape the code point
backslash ( only on char classes ).



On 10/14/07, Alex Harui [EMAIL PROTECTED] wrote:

Sorry, you have too many '\.  It should be \u0041  If you have two of
 them they become the backslash.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Alex Harui
 *Sent:* Sunday, October 14, 2007 12:05 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode



 I don't think it sees \u0041 as a Unicode character in the string
 definition.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Aldo Bucchi
 *Sent:* Saturday, October 13, 2007 8:37 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode



 Sorry, forgot some info

 Flex 3 Beta 2



  On 10/13/07, *Aldo Bucchi* [EMAIL PROTECTED] wrote:

 Hi all,

 I think I just found a bug in my player ( 9,0,60,235 debug )

 

 // we will do some searches over the following string
 var str:String = lalalALAlalalA;

 // first regexp is declared using forward slashes ( Unicode 0041 ==
 LATIN CAPITAL 'A' )
 var regex1:RegExp = /\u0041/g;

 // second is equivalent, but declared using the constructor ( note
 that the backslash is now escaped )
 var regex2:RegExp = new RegExp( \\u0041,g );


 // OK: outputs A,A,A
 trace ( str.match( regex1 ).join(, )  );

 // ERROR: outputs nothing!!!
 trace ( str.match( regex2 ).join(, )  );

 

 Am I missing something??

 Thanks,
 Aldo

 --
  Aldo Bucchi 
 +1 858 539 6986
 +56 9 8429 8300
 +56 9 7623 8653
 skype:aldo.bucchi




 --
  Aldo Bucchi 
 +1 858 539 6986
 +56 9 8429 8300
 +56 9 7623 8653
 skype:aldo.bucchi

  




-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi


RE: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

2007-10-14 Thread Alex Harui
I don't think it sees \u0041 as a Unicode character in the string
definition.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aldo Bucchi
Sent: Saturday, October 13, 2007 8:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

 

Sorry, forgot some info

Flex 3 Beta 2




On 10/13/07, Aldo Bucchi [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi all,

I think I just found a bug in my player ( 9,0,60,235 debug )

 

// we will do some searches over the following string
var str:String = lalalALAlalalA;

// first regexp is declared using forward slashes ( Unicode 0041 ==
LATIN CAPITAL 'A' )
var regex1:RegExp = /\u0041/g; 

// second is equivalent, but declared using the constructor ( note
that the backslash is now escaped )
var regex2:RegExp = new RegExp( \\u0041,g );


// OK: outputs A,A,A
trace ( str.match( regex1 ).join(, )  );

// ERROR: outputs nothing!!!
trace ( str.match( regex2 ).join(, )  );



Am I missing something??

Thanks, 
Aldo

--
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi




-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300 
+56 9 7623 8653 
skype:aldo.bucchi 

 



RE: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

2007-10-14 Thread Alex Harui
Sorry, you have too many '\.  It should be \u0041 file:///\\\u0041
If you have two of them they become the backslash.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Sunday, October 14, 2007 12:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

 

I don't think it sees \u0041 as a Unicode character in the string
definition.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aldo Bucchi
Sent: Saturday, October 13, 2007 8:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flash Player 9 BUG?? Regex and Unicode

 

Sorry, forgot some info

Flex 3 Beta 2





On 10/13/07, Aldo Bucchi [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi all,

I think I just found a bug in my player ( 9,0,60,235 debug )

 

// we will do some searches over the following string
var str:String = lalalALAlalalA;

// first regexp is declared using forward slashes ( Unicode 0041 ==
LATIN CAPITAL 'A' )
var regex1:RegExp = /\u0041/g; 

// second is equivalent, but declared using the constructor ( note
that the backslash is now escaped )
var regex2:RegExp = new RegExp( \\u0041,g );


// OK: outputs A,A,A
trace ( str.match( regex1 ).join(, )  );

// ERROR: outputs nothing!!!
trace ( str.match( regex2 ).join(, )  );



Am I missing something??

Thanks, 
Aldo

--
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300
+56 9 7623 8653
skype:aldo.bucchi




-- 
 Aldo Bucchi 
+1 858 539 6986
+56 9 8429 8300 
+56 9 7623 8653 
skype:aldo.bucchi 

 



Re: [flexcoders] Re: ComboBox itemRenderer scrolling Bug?

2006-06-21 Thread Brendan Meutzner



Is this a bug then?... can somebody tell me if it's been reported on the beta list?Thanks,BrendanOn 6/20/06, indy_nagpal 
[EMAIL PROTECTED] wrote:








  



Hi Brendon... I came across exactly the same weirdness when using an
itemrenderer that displayed different images in a datagrid column
based on specific values. 

No matter what I do, I continue to get the same weird behaviour where
if you scroll down, the values in the rendered column start moving
around...

I picked up the example code from:
http://www.iepl.net/dataGridItemRendererSample/dgItemRendererSample.html

and reduced the height of the datagrid so that scrolling is required.
And this weird behaviour occurs there as well.

This unexpected behaviour is not listed as a known issue at
http://labs.adobe.com/wiki/index.php/Flex:Known_Issues#Item_Renderers.


So I don't know if it is bug or it is something that all of us are
doing incorrectly.

Indy
--- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED]

wrote:

 Sorry if this is a repost, but i didn't see it showing up after being
 posted this morning..
 
 
 
 Hi All,
 
 I came across some funky behaviour when using a ComboBox as an
 itemRenderer for a DataGrid.  I've  posted the issue at
 http://www.visualconcepts.ca/flex2/comboboxrenderer/Tester.html.  To

 replicated just change one of the combobox items, and then move your
 mouse above and below the datagrid.  For additional funkiness, go
 focus on one of the numbers (NumericStepper renderer used) and move
 the mouse above and below the datagrid to see them disappear as the
 rows are redrawn... interesting...
 
 Brendan



  















__._,_.___





--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: f2b3: initial layout bug

2006-06-15 Thread Michael Schmalle



Hi,

FYI

THe problem you are having is from the verticalScroll bar being taken into the startup measuremnts.

Not that I have a solution but,

add this;

verticalScrollPolicy=off

And you will see it work fine with the code you are using.

Peace, MikeOn 6/15/06, Tim Hoff [EMAIL PROTECTED] wrote:









  



Sorry Jason,
That was an ugly work-around. This works better:
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute height=50% backgroundColor=0xFFmx:VBox height=100% width={Application.application.width}
backgroundColor=0x00FF00
-TH--- In flexcoders@yahoogroups.com
, Tim Hoff [EMAIL PROTECTED] wrote: Here's a work-around:  mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml layout=vertical width=100% height=50%  backgroundColor=0xFF paddingBottom=0 paddingTop=0 
 paddingLeft=-8 paddingRight=-8  Pretty ugly though, -TH  --- In 
flexcoders@yahoogroups.com, Jason jep1975@ wrote:   Sorry, change that grid height to 90%. Still the same bug, but at  least it all adds to 100% now!It seems that any % other than 100% for the application height 
 causes  this. Absolute numbers work, too. I wonder, should I even  specifying  app height/width? It seems if I leave this off it assumes 100%  anyway.--- In 
flexcoders@yahoogroups.com, Jason jep1975@ wrote: Using the following code, the initial load of the app shows a 
 little   dead area to the right side of the screen. As soon as you  resize the   browser window, it fixes and flows correctly.  ?xml version=
1.0 encoding=utf-8?   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
   layout=absolute width=100% height=50%  backgroundColor=0xFF   mx:VBox height=100% width=100% backgroundColor=0x00FF00
   mx:Button label=Print width=100% height=5%/   mx:DataGrid width=100% height=95%  backgroundColor=0xFF 
   mx:dataProvider   mx:ArrayCollection   mx:source   mx:Object   mx:ArtistPavement/mx:Artist
   mx:Price11.99/mx:Price   mx:AlbumSlanted and  Enchanted/mx:Album   /mx:Object   mx:Object   mx:ArtistPavement/mx:Artist
   mx:AlbumBrighten the Corners/mx:Album   mx:Price11.99/mx:Price   /mx:Object   /mx:source   /mx:ArrayCollection
   /mx:dataProvider   /mx:DataGrid   mx:Button label=Empty width=100% height=5%/   /mx:VBox
   /mx:Application   

  













-- What goes up, does come down.

__._,_.___





--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Re: Is this a bug?

2006-06-09 Thread Darren Houle
Tracy and Ben, thank you :-)

Darren



From: ben.clinkinbeard [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is this a bug?
Date: Fri, 09 Jun 2006 19:44:33 -

Yep, in AS3 everything must be imported no matter what. See #5 here:
http://labs.adobe.com/wiki/index.php/ActionScript_3:Learning_Tips

Ben




 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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




RE: [flexcoders] Re: Drag Drop conundrum... BUG?

2006-04-24 Thread Paul Williams



Hi Martin,

Did you see my previous reply? I've pasted it below.

Thanks,

Paul



Previous reply:
===

Hi Martin,

Can you post your code?

Another guess: Are you using an Array or an ArrayCollection as your
dataprovider? My understanding is that you must use an ArrayCollection
if you want updates to propagate to the control, see below for more:

http://livedocs.macromedia.com/flex/20beta1/docs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=LiveDocs_Partsfile=2088.html

Paul



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Sunday, April 23, 2006 10:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag  Drop conundrum... BUG?

I am still having a problem. This looks like it might be a bug?

Once I set dropEnabled to false, I can see (while debugging) that
the contents of the Array after the Drop were Correct, i.e. no
[object Object] items in the List. So far so good... BUT!!! Once
it is set to false the List does not reflect the contents of the
Array (it's dataProvider) after the Drop. I tested this in two ways:
 
1. I Initialized the [Bindable] Array to contain values before the
Drop. They show up in the List as expected but when I Drop an item
nothing changes! In debug mode, though, the Array contains both the
initialized values and the drop items.
 
2. When I set dropEnabled back to true, the drop items show up in
the list, but so does the default [object Object] for each drop item.
 
This now looks like a bug to me, that somehow the list control does
not get notified of change to the dataProvider. 
 
To test this, I added a button that manually adds a value to the Array
and the List still does not reflect the change to it's dataProvider. 
Any Ideas?
 
Thanks...
 
Martin

 --- In flexcoders@yahoogroups.com, Paul Williams paulw@ wrote:
 
  Just a guess, but one possibility is that your list's default drop
  behaviour is switched on, i.e. on the list control,
dropEnabled=true.
  This could cause the item to be added twice, once by your event
handler
  and once by the default drop behaviour.
  
  Paul
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of flexabledev
  Sent: Saturday, April 22, 2006 9:38 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Drag  Drop conundrum...
  
  I've started to experiment with Drag  Drop and have run into a
  problem I can't figure out. I have successfully written code that
  allows me to Drag rows from a DataGrid (with a custom Drag Proxy)
and
  Drop the value of one of the columns into a List. The only thing I
  don't understand is why when I do a Drag  Drop, I always get two
  entries in the List for each of the rows that were dragged. If I
drag
  two rows with String values that get dropped (i.e. ONE, TWO),
the
  result in the List after the Drop looks like:
  
  [object Object]
  [object Object]
  ONE
  TWO
  
  When I debug it, the value of items.length equals 2
  
  which drives a For loop with
  IList(dropTarget.dataProvider).addItem(items[i].field);
  
  As I step through the doDragDrop function in debug mode, it only
  executes the loop twice, yet I end up with four entries in the List?
  
  Any ideas? 
  
  I can't figure it out, but it feels like there is some default
  behaviour (dropping the items Object separate from my addItem)
  occuring that I don't see when I step through it in debug mode?
  
  
  
  
  
  
  --
  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
 







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



 








--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Drag Drop conundrum... BUG?

2006-04-23 Thread Paul Williams



Hi Martin,

Can you post your code?

Another guess: Are you using an Array or an ArrayCollection as your
dataprovider? My understanding is that you must use an ArrayCollection
if you want updates to propagate to the control, see below for more:

http://livedocs.macromedia.com/flex/20beta1/docs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=LiveDocs_Partsfile=2088.html

Paul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Saturday, April 22, 2006 11:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag  Drop conundrum... BUG?

Paul,

Thanks! I didn't know that you did not need to set dropEnabled=true
if you also set dragEnter and dragDrop handlers. I just assumed that
you always needed to set dropEnabled, even if you write your own drag
behaviour...

Once I set dropEnabled to false, I can see (while debugging) that
the contents of the Array after the Drop were Correct, i.e. no
[object Object] items in the List. So far so good... BUT!!! Once
it is set to false the List does not reflect the contents of the
Array (it's dataProvider) after the Drop. I tested this in two ways:

1. I Initialized the [Bindable] Array to contain values before the
Drop. They show up in the List as expected but when I Drop an item
nothing changes! In debug mode, though, the Array contains both the
initialized values and the drop items.

2. When I set dropEnabled back to true, the drop items show up in
the list, but so does the default [object Object] for each drop item.

This now looks like a bug to me, that somehow the list control does
not get notified of change to the dataProvider. 

To test this, I added a button that manually adds a value to the Array
and the List still does not reflect the change to it's dataProvider. 
Any Ideas?

Thanks...

Martin

--- In flexcoders@yahoogroups.com, Paul Williams [EMAIL PROTECTED] wrote:

 Just a guess, but one possibility is that your list's default drop
 behaviour is switched on, i.e. on the list control,
dropEnabled=true.
 This could cause the item to be added twice, once by your event
handler
 and once by the default drop behaviour.
 
 Paul
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of flexabledev
 Sent: Saturday, April 22, 2006 9:38 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Drag  Drop conundrum...
 
 I've started to experiment with Drag  Drop and have run into a
 problem I can't figure out. I have successfully written code that
 allows me to Drag rows from a DataGrid (with a custom Drag Proxy) and
 Drop the value of one of the columns into a List. The only thing I
 don't understand is why when I do a Drag  Drop, I always get two
 entries in the List for each of the rows that were dragged. If I drag
 two rows with String values that get dropped (i.e. ONE, TWO), the
 result in the List after the Drop looks like:
 
 [object Object]
 [object Object]
 ONE
 TWO
 
 When I debug it, the value of items.length equals 2
 
 which drives a For loop with
 IList(dropTarget.dataProvider).addItem(items[i].field);
 
 As I step through the doDragDrop function in debug mode, it only
 executes the loop twice, yet I end up with four entries in the List?
 
 Any ideas? 
 
 I can't figure it out, but it feels like there is some default
 behaviour (dropping the items Object separate from my addItem)
 occuring that I don't see when I step through it in debug mode?
 
 
 
 
 
 
 --
 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







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



 








--
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
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.