RE: [flexcoders] How to force construction when creationPolicy=all' does not work?

2009-08-20 Thread Alex Harui
Not sure when you're running that code.  Did you try applicationComplete?

But this kind of practice doesn't scale.  In a model-view design, the views 
pull their data from the model so you don't end up with code that pushes stuff 
downward.

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 Mic
Sent: Wednesday, August 19, 2009 12:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to force construction when creationPolicy=all' does 
not work?



ViewStack.vsMainDash
VBox.vbDrctrDash
VBox.vbParmsAndDrills
ViewStack.vsDashDrills
VBox.CustLevel
VBox.UDAC

is the hierarchy. Run code 

vsMainDash.selectedChild = vbParmsAndDrills;
vsDashDrills.selectedChild = vbCustLevel; ** null reference error

Debug at line that errors does show vsDashDrills = null, whereas vsMainDash = 
ViewStack. I have tried splattering creationPolicy=all' everywhere - of course 
if I do this too high up I start getting null reference errors there.

(If I OK the error the app does continue with everything displayed correctly so 
Flex does create what it should.)

If creationPolicy=all' does not work, how do I force the ViewStack 
vsDashDrills into existence? TIA,

Mic.



[flexcoders] Re: ComboBox not updating

2009-08-20 Thread mitek17
The really proper solution is called why do you need it anyway? (c)(tm)

:)


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Maybe the solution is not to bind the selectedItem but set it explicitly?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Richard Rodseth
 Sent: Wednesday, August 19, 2009 12:34 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: ComboBox not updating
 
  
 
   
 
 Thanks. I should add that my combobox is in use in an item renderer. A
 colleague had a similar problem which went away when he switched to a
 repeater.
 
 It's not clear which if any of your modifications will help my use case, but
 I'll try some of them.
 
 Is there a bug we can vote on besides the one you mentioned (11282) ? It
 strikes me that comboboxes in forms must be one of the more common use
 cases, and it's pretty disappointing that this component is so problematic.
 
 On Tue, Aug 18, 2009 at 9:01 PM, Dmitri Girski mite...@gmail.
 mailto:mite...@... com wrote:
 
   
 
 This is an old story with ComboBox  selectedIndex. It does not count the
 fact that binding on SelectedIndex could come well before dataProvider
 property assignment, so it simply resets itself every time it has
 dataProvider property being updated. 
 I have rewritten the ComboBox class to make it working properly with
 dataProviders.
 
 http://mitek.
 http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/
 id.au/blog/2008/10/28/combobox-madness-continues/
 http://mitek.
 http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/
 id.au/blog/2008/08/18/combobox-selecteditem-problem/
 http://mitek. http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/
 id.au/blog/2008/06/09/unselect-in-combobox/
 
 Cheers,
 Dmitri.
 
 
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Richard Rodseth rrodseth@ wrote:
 
  The full story is too long to relate and involves the component which has
  given me more grief than any other - ComboBox. I'm pretty sure I
 established
  a while ago that there's a bug in using a ComboBox with a bound value for
  selectedIndex.
  
  I have one whose dataprovider (and current selected index) are both highly
  dynamic (changing in response to changes in another combobox). There is a
  circumstance in which the displayed label does not update until you roll
  over the combobox, or sometimes click on it. Is there a brute force way I
  can make it update? I've tried various invalidateXXX methods.
 





[flexcoders] Changing ResultHandler of WebService Operation

2009-08-20 Thread Angelo Anolin
Hi FlexCoders,

How do I change the Result property of a web service operation?

For example, I have declared my WebService as follows:

mx:WebService id=ws
  mx:operation name=Call_One result=Call_OneRH(event) 
fault=Call_OneFH(event) /
  mx:operation name=Call_Two result=Call_TwoRH(event) 
fault=Call_TwoFH(event) /
/mx:WebService

I want to be able to change the result of the operation Call_One to another 
result, since I am planning to re-use the same web service, but the result 
would be treated differently.

Will this work?

ws.operation.Call_One.result = myOtherResult

Any ideas?

Thanks. Regards.

Angelo


  

Re: [flexcoders] Changing ResultHandler of WebService Operation

2009-08-20 Thread Purnima S
Hello,
Iam getting the following error in my application . please help me in
solving this problem.
[RPC Fault faultString=HTTP request error faultCode=Server.Error.Request
faultDetail=Error: [IOErrorEvent type=ioError bubbles=false
cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL:
http://localhost:8084/Projects/projectdelete.do;]. URL:
http://localhost:8084/Projects/projectdelete.do;]

Purnima

On Thu, Aug 20, 2009 at 12:45 PM, Angelo Anolin angelo_ano...@yahoo.comwrote:



 Hi FlexCoders,

 How do I change the Result property of a web service operation?

 For example, I have declared my WebService as follows:

 mx:WebService id=ws
   mx:operation name=Call_One result=Call_OneRH(event)
 fault=Call_OneFH(event) /
   mx:operation name=Call_Two result=Call_TwoRH(event)
 fault=Call_TwoFH(event) /
 /mx:WebService

 I want to be able to change the result of the operation Call_One to
 another result, since I am planning to re-use the same web service, but the
 result would be treated differently.

 Will this work?

 ws.operation.Call_One.result = myOtherResult

 Any ideas?

 Thanks. Regards.

 Angelo

  



Re: [flexcoders] VBox constrains - A simple question :-p

2009-08-20 Thread Wesley Acheson
Sorry no I meant the min height.

I didn't have a lot of time to answer when I typed this reply out before.

I've seen this behaviour with dataGrid and I got stuck with it too, I asked
here on the flexcoders mailing list.  Basically when the items in a
container are larger than its height.  The container when it calculates
the size of the children sets the minHeight to be a height that contains all
its children. (or width).  It then uses the minHeight as the height of the
container. However if you explictly set a minHeight that is smaller than the
sum of the children heights e.g. 0. This minimum height isn't overridden by
the container.  This allows the container to pick up its height property.

Thats the tehory behind why I suggested it. I don't know if it works for
VBox and I don't know if the problem applies to numeric heights as opposed
to percentage heights. However I thought it may be worth a shot as its an
easy thing to test.

Regards,

Wes

On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:



 Hi Wesley, do you mean the maxHeight?

 My problem is with the height of the box getting bigger than the
 application instead of staying @ bottom 10.

 If i set the height or maxHeight it works as advertised.

 I am not trying to just fix it though.. I am trying to understand/know why
 it does not work..

 Thanks, for the reply though


 On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson wesley.ache...@gmail.com
  wrote:



 try setting the minWidth also.

 On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos 
 fotis.chatzini...@gmail.com wrote:

 mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
width=640
height=480

mx:VBox top=100 bottom=10 horizontalCenter=0 width=90%
 horizontalAlign=left verticalGap=5 id=debugWinVB_ID
/mx:VBox
 /mx:Application


 At the start of the application the VBox height is 370
 (Application.height - vbox.top - vbox.bottom) - Correct.

 Child labels are added to this vbox in runtime and as soon as the
 cumulative labels height becomes  370 the vbox expands and scroll bars
 appear @ the Application level...Why?

 Should not the Vbox remain @ 370 height and display inner scrollbars,
 according to the following rule:?

* Component size determined by a pair of constraint-based layout
 properties (left-right or top-bottom) overrides any explicit or
 percentage-based size specifications. For example, if you specify both left
 and right constraints, the calculated constraint-based width overrides the
 width set by a width or percentWidth property.




 

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







 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,


 


Re: [flexcoders] Flex 3.3 SDK and DataVisualization

2009-08-20 Thread Tom Chiverton
On Wednesday 19 Aug 2009, Angelo Anolin wrote:
 the datavisualization.swc to a folder where the MXMLC compiler is located
 and when I run the compiler, I include the folder as library in the command
 line.

There are proper instructions for this : 
http://www.rachaelandtom.info/content/using-flex-3-data-visualisation-components-with-flex-3-sdk

-- 
Helping to centrally maximize open-source granular content as part of the IT 
team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-20 Thread Gautam P
if you need to load an external xml file from the file system rather than
from the server, compile your flex project using the option *
-use-network=false*. however, compiling in this fashion will not allow the
swf to make calls to the server.

On Thu, Aug 13, 2009 at 1:57 AM, mattcalthropmcalth...@gmail.com wrote:
 Thanks Gautam.

 I think we're almost there... except: I want the XML to reside in an
external file, not as a string in the AS3 code.

 Is that easy to do?

 cheers,

 Matt

 --- In flexcoders@yahoogroups.com, Gautam P p.gau...@... wrote:

 var imageXML:XML = new XML('imageListimage
location=path/to/image1.jpg/'+

 'image location=path/to/image2.jpg//imageList');
 var s:List = new List();
 s.dataProvider = imageXML.image; // this give a XMLList (e4x expression)
 s.labelfield = @location; // to display location in the list. to
 access attribute prefix @ symbol

 Regards,
 Gautam.

 On Wed, Aug 12, 2009 at 5:09 PM, mattcalthropmcalth...@... wrote:
  Hi all.
 
  I am using FB4, and want to specify an XML file to be used as the
dataProvider for an s:List object.
 
  However, I just can't seem to work out how to do it.
 
  Have read manuals, done google searches, checked forums - all to no
avail.
 
  Can anyone help me please?
 
  Format of XML file is thus:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  imageList
   image location=path/to/image1.jpg /
   image location=path/to/image2.jpg /
   !-- ... --
  /imageList
 
  many thanks in advance!
 
  Matt
 
 
 
  
 
  --
  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] VBox constrains - A simple question :-p

2009-08-20 Thread Fotis Chatzinikos
Thanks! Setting the minimum height works but still its counterintuitive at
the least...

Can somebody from Adobe point me to the docs explaining this behaviour?

TIA,
Fotis

On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson
wesley.ache...@gmail.comwrote:



 Sorry no I meant the min height.

 I didn't have a lot of time to answer when I typed this reply out before.

 I've seen this behaviour with dataGrid and I got stuck with it too, I asked
 here on the flexcoders mailing list.  Basically when the items in a
 container are larger than its height.  The container when it calculates
 the size of the children sets the minHeight to be a height that contains all
 its children. (or width).  It then uses the minHeight as the height of the
 container. However if you explictly set a minHeight that is smaller than the
 sum of the children heights e.g. 0. This minimum height isn't overridden by
 the container.  This allows the container to pick up its height property.

 Thats the tehory behind why I suggested it. I don't know if it works for
 VBox and I don't know if the problem applies to numeric heights as opposed
 to percentage heights. However I thought it may be worth a shot as its an
 easy thing to test.

 Regards,

 Wes

 On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos 
 fotis.chatzini...@gmail.com wrote:



 Hi Wesley, do you mean the maxHeight?

 My problem is with the height of the box getting bigger than the
 application instead of staying @ bottom 10.

 If i set the height or maxHeight it works as advertised.

 I am not trying to just fix it though.. I am trying to understand/know why
 it does not work..

 Thanks, for the reply though


 On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson 
 wesley.ache...@gmail.com wrote:



 try setting the minWidth also.

 On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos 
 fotis.chatzini...@gmail.com wrote:

 mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
width=640
height=480

mx:VBox top=100 bottom=10 horizontalCenter=0 width=90%
 horizontalAlign=left verticalGap=5 id=debugWinVB_ID
/mx:VBox
 /mx:Application


 At the start of the application the VBox height is 370
 (Application.height - vbox.top - vbox.bottom) - Correct.

 Child labels are added to this vbox in runtime and as soon as the
 cumulative labels height becomes  370 the vbox expands and scroll bars
 appear @ the Application level...Why?

 Should not the Vbox remain @ 370 height and display inner scrollbars,
 according to the following rule:?

* Component size determined by a pair of constraint-based layout
 properties (left-right or top-bottom) overrides any explicit or
 percentage-based size specifications. For example, if you specify both left
 and right constraints, the calculated constraint-based width overrides the
 width set by a width or percentWidth property.




 

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







 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,



  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [Spam] RE: [flexcoders] 5 Datagrids ontop of each other, one resizes andthe ones below shift up or down?

2009-08-20 Thread Nick Middleweek
Alex,

Awesome, that makes total sense now! of course, the VBox will naturally flow
the objects downwards...

Thanks!!! :-)






2009/8/20 Alex Harui aha...@adobe.com



  Should just be VBox with 5 DG’s in it.  Set rowCount to change its size.



 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 *Nick Middleweek
 *Sent:* Wednesday, August 19, 2009 1:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] 5 Datagrids ontop of each other, one resizes and
 the ones below shift up or down?





 Hi guys,

 Excuse the subject of this post :-)  But it does sum up what I'm trying to
 achieve.

 I want to have 5 DataGrids ontop of each other in a vertical arrangement (A
 bit like the rows in Excel are ontop of each).

 In the bottom right of each DG, I want a little button that when clicked,
 expands/ collapses it's DG.

 When e.g. DG_2 is expanded, I want DG_1 to remain where it is but DG_3,
 DG_4 and DG_5 to shunt downwards and DG_2 will be expanded down to say ten
 rows.

 What is the best way to achieve this? Or should I be looking into
 DividedBox components? Or does the Tile Component help me?

 Or do I write it all myself using maths and do the resizing using top and
 bottom properties of the DG's?


 Thanks for any help...


 Nick

   



[flexcoders] Air bundle strips Mac executable permissions

2009-08-20 Thread christofink
There is a bug where an air app cannot maintain the permissions of executable 
(r-x) files within the project.
If you put any executable file like a applescript.app or say a flash projector 
within a project (in the src directory), when you create the air package (.air) 
and install it the permissions of the .app file will be stripped.

I have put a test src directory here so you can replicate the problem in an air 
project.
www.elevenxy.com.au/Air_Permissions_Bug.zip

I have noticed that if I zip up the .app file and unzip it, that the executable 
properties are maintained, but if I try to unzip if with the nochump library 
(http://nochump.com/blog/?p=15) it does not work, so I am stuck with any 
workable solution to put an executable file (on a mac) into an air package.

Has anyone experienced this before? Thanks in advance for any assistance.

Regards,

Christopher
Operating System: Mac OSX 10.5.8
Adobe Air: 1.5



Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread flexjunker
Hey Nick, yeah ImageSnapShot is a class that basically takes a UI component and 
spits out the bitmapData, which you can encode as a jpg / png. 

http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.html

I just don't want the 'snap' of a container to have any scroll bars, although 
the container does (and needs at this point in time) to have them. I'm prolly 
just going to go with SWFObject and something like swiffit.

Unless anyone can come up with a solution...



Re: [flexcoders] VBox constrains - A simple question :-p

2009-08-20 Thread Wesley Acheson
I agree its counter intuative. There is some documentation on the measure
method of box. This behaviour isn't explictly mentioned however It may be
covered if you delve into the rules on

http://livedocs.adobe.com/flex/3/langref/mx/containers/Box.html#measure()http://livedocs.adobe.com/flex/3/langref/mx/containers/Box.html#measure%28%29

specifically this piece If the child's width is unset or set to a fixed
value, the child refuses to grow or shrink, so the Box container's minimum
width is equal to the value of the child's explicitWidth property

Probably the documentation could be clearer if it does mean this. Personally
I think thats misleading and contradictory.

Regards,

Wesley Acheson

On Thu, Aug 20, 2009 at 11:19 AM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:



 Thanks! Setting the minimum height works but still its counterintuitive at
 the least...

 Can somebody from Adobe point me to the docs explaining this behaviour?

 TIA,
 Fotis


 On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson wesley.ache...@gmail.com
  wrote:



 Sorry no I meant the min height.

 I didn't have a lot of time to answer when I typed this reply out before.

 I've seen this behaviour with dataGrid and I got stuck with it too, I
 asked here on the flexcoders mailing list.  Basically when the items in a
 container are larger than its height.  The container when it calculates
 the size of the children sets the minHeight to be a height that contains all
 its children. (or width).  It then uses the minHeight as the height of the
 container. However if you explictly set a minHeight that is smaller than the
 sum of the children heights e.g. 0. This minimum height isn't overridden by
 the container.  This allows the container to pick up its height property.

 Thats the tehory behind why I suggested it. I don't know if it works for
 VBox and I don't know if the problem applies to numeric heights as opposed
 to percentage heights. However I thought it may be worth a shot as its an
 easy thing to test.

 Regards,

 Wes

 On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos 
 fotis.chatzini...@gmail.com wrote:



 Hi Wesley, do you mean the maxHeight?

 My problem is with the height of the box getting bigger than the
 application instead of staying @ bottom 10.

 If i set the height or maxHeight it works as advertised.

 I am not trying to just fix it though.. I am trying to understand/know
 why it does not work..

 Thanks, for the reply though


 On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson 
 wesley.ache...@gmail.com wrote:



 try setting the minWidth also.

 On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos 
 fotis.chatzini...@gmail.com wrote:

 mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
width=640
height=480

mx:VBox top=100 bottom=10 horizontalCenter=0 width=90%
 horizontalAlign=left verticalGap=5 id=debugWinVB_ID
/mx:VBox
 /mx:Application


 At the start of the application the VBox height is 370
 (Application.height - vbox.top - vbox.bottom) - Correct.

 Child labels are added to this vbox in runtime and as soon as the
 cumulative labels height becomes  370 the vbox expands and scroll bars
 appear @ the Application level...Why?

 Should not the Vbox remain @ 370 height and display inner scrollbars,
 according to the following rule:?

* Component size determined by a pair of constraint-based layout
 properties (left-right or top-bottom) overrides any explicit or
 percentage-based size specifications. For example, if you specify both 
 left
 and right constraints, the calculated constraint-based width overrides the
 width set by a width or percentWidth property.




 

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







 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,






 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,


 



[flexcoders] Re: Instant messaging example

2009-08-20 Thread valdhor
In that case, can you post your weborb-services-config.xml file?


--- In flexcoders@yahoogroups.com, Andrew roly...@... wrote:

 Thanks valdhor.
 
 I have double checked but I am already referencing 
 'weborb-services-config.xml' and i and still having the same issue.
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  It looks like you are referencing services-config.xml instead of 
  weborb-services-config.xml in your compilere settings. weborb-rtmp should 
  be defined in that file.
  
  --- In flexcoders@yahoogroups.com, Andrew roly445@ wrote:
  
   Ok cool thank you.
   
   How do I go about defining one?
   
   --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
   
Well, from that file, there is no channel defined as weborb-rtmp.

   
 





[flexcoders] Re: Coding The itemClick event of the List Control

2009-08-20 Thread valdhor
The datagrid is a good example of a list control. There are many examples of 
the ListEvent.ITEM_CLICK event for a data grid.


--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 
 Hi. 
 I looked up the documentation for Flex and was not able to find a good sample 
 of coding for the itemClick event for a list control.
 
 Any good example or link would be appreciated.
 
 Thanks.





[flexcoders] Re: Changing ResultHandler of WebService Operation

2009-08-20 Thread valdhor
Probably not. In ActionScript, you would add an event listener. For a remote 
object it is...

theRemoteObject.theOperation.removeEventListener(ResultEvent.RESULT, 
firstResultHandler)

theRemoteObject.theOperation.addEventListener(ResultEvent.RESULT, 
secondResultHandler)

I would think it would be the same for a web service although I have not tried 
it.



--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote:

 Hi FlexCoders,
 
 How do I change the Result property of a web service operation?
 
 For example, I have declared my WebService as follows:
 
 mx:WebService id=ws
   mx:operation name=Call_One result=Call_OneRH(event) 
 fault=Call_OneFH(event) /
   mx:operation name=Call_Two result=Call_TwoRH(event) 
 fault=Call_TwoFH(event) /
 /mx:WebService
 
 I want to be able to change the result of the operation Call_One to another 
 result, since I am planning to re-use the same web service, but the result 
 would be treated differently.
 
 Will this work?
 
 ws.operation.Call_One.result = myOtherResult
 
 Any ideas?
 
 Thanks. Regards.
 
 Angelo





Re: [Spam] Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread Nick Middleweek
OK, that's amazing...

Is there not a way to test if the scrollbars are actually visible? Different
from the scrollbar visible policy?...

You could always crop the image I guess? can you do that in Flex/ AS?

Or you could force scrollbars to be visible and then always crop the image
that's produced...



Nick



2009/8/20 flexjunker willtheb...@yahoo.com



 Hey Nick, yeah ImageSnapShot is a class that basically takes a UI component
 and spits out the bitmapData, which you can encode as a jpg / png.


 http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.htmlhttp://www.cs.vu.nl/%7Eeliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.html

 I just don't want the 'snap' of a container to have any scroll bars,
 although the container does (and needs at this point in time) to have them.
 I'm prolly just going to go with SWFObject and something like swiffit.

 Unless anyone can come up with a solution...

  



[flexcoders] Re: Changing ResultHandler of WebService Operation

2009-08-20 Thread valdhor
Can you get to http://localhost:8084/Projects/projectdelete.do from a browser? 
ie. Just type the url in the browser. What do you get?

Also, what does Charles show?


--- In flexcoders@yahoogroups.com, Purnima S purnima2...@... wrote:

 Hello,
 Iam getting the following error in my application . please help me in
 solving this problem.
 [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request
 faultDetail=Error: [IOErrorEvent type=ioError bubbles=false
 cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL:
 http://localhost:8084/Projects/projectdelete.do;]. URL:
 http://localhost:8084/Projects/projectdelete.do;]
 
 Purnima
 
 On Thu, Aug 20, 2009 at 12:45 PM, Angelo Anolin angelo_ano...@...wrote:
 
 
 
  Hi FlexCoders,
 
  How do I change the Result property of a web service operation?
 
  For example, I have declared my WebService as follows:
 
  mx:WebService id=ws
mx:operation name=Call_One result=Call_OneRH(event)
  fault=Call_OneFH(event) /
mx:operation name=Call_Two result=Call_TwoRH(event)
  fault=Call_TwoFH(event) /
  /mx:WebService
 
  I want to be able to change the result of the operation Call_One to
  another result, since I am planning to re-use the same web service, but the
  result would be treated differently.
 
  Will this work?
 
  ws.operation.Call_One.result = myOtherResult
 
  Any ideas?
 
  Thanks. Regards.
 
  Angelo
 
   
 





[flexcoders] How to add fragments to debug url in Flex Builder

2009-08-20 Thread valdhor
I need to debug deep linking in my project (When a user pastes a URL in the 
browser and presses Go). If I just paste the URL, the browser is not connected 
to the debugger. So, I need to be able to add the fragments to the debug URL in 
Flex Builder. I thought I could just do that in the Run/Debug Settings panel 
but if I do that I get a file not found error.

I need to know how to force the debugger to connect to the browser OR how to 
add fragments to the URL in Flex Builder so the debugger starts with the right 
fragments.

Any help appreciated.



[flexcoders] How do I test if the DG row is a grouping row?

2009-08-20 Thread Nick Middleweek
Hi,

I've been asked to fix a problem with an existing project that has some
icons rendered (using an ItemRenderer) in the 1st column.

I need to NOT display these icons when the grouping function is activated
and the row is a grouping tree.

The ItemRenderer component has a get and set override function for
listData and I've tried testing the .hasChildren inside the set function
but it's always false even when the grouping function is expanded - perhaps
I've misunderstood it.


What's the best approach to test this?


Thanks in advance!

Nick


[flexcoders] Flex Data Services, Hibernate and Eclipse available for early access

2009-08-20 Thread mike_slinn
This book explains how to design, build and test the Flex Data Services and the 
server-side Java stack of an application built with the Adobe Flash Platform. 
Java EE technology such as Tomcat and Hibernate are covered in detail, 
including reverse engineering ORM POJOs from a database schema, and creating a 
schema from POJOs. Using the tools and techniques described in this book 
series, one or two people can put together a client-server system that would 
have required at least a dozen people ten years ago, in a similar time. What's 
more, the software stack described in this book can support tens of thousands 
of simultaneous users per server CPU, with excellent responsiveness, high 
reliability and presentation-quality graphics.

Because access to remote data sources is part of many applications, the free 
open source BlazeDS package is discussed with working code examples, as well as 
its big brother, LiveCycle DS. This book also covers Hibernate, an 
object-relational mapping technology and shows how it works with databases, 
including reverse engineering ORM POJOs from a database schema, and creating a 
schema from POJOs.



[flexcoders] Flex Data Services, Hibernate and Eclipse

2009-08-20 Thread mike_slinn
...oops, the URL is http://www.slinnbooks.com



[flexcoders] BrowserManagerShim, the workaround to fix preloader issues throws error...

2009-08-20 Thread djhatrick
Any suggestions how to overcome this error with the BroswerManagerShim:


ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.


I need a preloader to work with anchor tags... thanks.  Software should operate 
like a German car, not a French car.

Thanks,
Patrick
















Re: [Spam] RE: [flexcoders] 5 Datagrids ontop of each other, one resizes andthe ones below shift up or down?

2009-08-20 Thread Nick Middleweek
Alex... I've tested it out and it works nicely... Thanks again!

No I just need to learn about animated transistions so it's bounces between
the sizes... :-)


mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
styleName=plain

mx:Script
![CDATA[

private function resizeDG(objDG:DataGrid):void{
if(objDG.rowCount  12)
objDG.rowCount = 12;
else
objDG.rowCount = 6;
}

]]
/mx:Script

mx:VBox x=10 y=10 height=100%
mx:DataGrid id=DG1
mx:columns
mx:DataGridColumn headerText=Column 1 dataField=col1/
mx:DataGridColumn headerText=Column 2 dataField=col2/
mx:DataGridColumn headerText=Column 3 dataField=col3/
/mx:columns
/mx:DataGrid
mx:Button label=Button id=button1 click=resizeDG(DG1);/
mx:DataGrid id=DG2
mx:columns
mx:DataGridColumn headerText=Column 1 dataField=col1/
mx:DataGridColumn headerText=Column 2 dataField=col2/
mx:DataGridColumn headerText=Column 3 dataField=col3/
/mx:columns
/mx:DataGrid
mx:Button label=Button id=button2 click=resizeDG(DG2);/
/mx:VBox

/mx:Application





2009/8/20 Nick Middleweek n...@middleweek.co.uk

 Alex,

 Awesome, that makes total sense now! of course, the VBox will naturally
 flow the objects downwards...

 Thanks!!! :-)






 2009/8/20 Alex Harui aha...@adobe.com



  Should just be VBox with 5 DG’s in it.  Set rowCount to change its size.



 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 *Nick Middleweek
 *Sent:* Wednesday, August 19, 2009 1:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] 5 Datagrids ontop of each other, one resizes and
 the ones below shift up or down?





 Hi guys,

 Excuse the subject of this post :-)  But it does sum up what I'm trying to
 achieve.

 I want to have 5 DataGrids ontop of each other in a vertical arrangement
 (A bit like the rows in Excel are ontop of each).

 In the bottom right of each DG, I want a little button that when clicked,
 expands/ collapses it's DG.

 When e.g. DG_2 is expanded, I want DG_1 to remain where it is but DG_3,
 DG_4 and DG_5 to shunt downwards and DG_2 will be expanded down to say ten
 rows.

 What is the best way to achieve this? Or should I be looking into
 DividedBox components? Or does the Tile Component help me?

 Or do I write it all myself using maths and do the resizing using top and
 bottom properties of the DG's?


 Thanks for any help...


 Nick

   





Re: [flexcoders] Cannot select identical item in my tree component...

2009-08-20 Thread - -
Hi Alex, if I need both objects to be identical, how can I assign different UID?

If I double click the object on the parent node, I enable a view to edit the 
object.
The same object is found nested deeper in the tree, if I double click it, it 
must edit the same object on the parent branch.

Thanks.

-David





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thursday, August 20, 2009 1:47:10 AM
Subject: RE: [flexcoders] Cannot select identical item in my tree component...

  
Each object must have a unique UID.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of whiskerstasters
Sent: Wednesday, August 19, 2009 1:06 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Cannot select identical item in my tree component...
 
  
Hi everyone, I'm having an issue with my tree component.
I use an arrayCollection for my dataProvider. 
I have the same object in my arrayCollection nested at different levels.

I cannot select this object at different levels in my tree, it always select 
the topmost nested object.

Is there a way to work around this? I would like to be able to select an item 
even though the same item is found at different nested levels within the tree.

Thanks!



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

RE: [flexcoders] BrowserManagerShim, the workaround to fix preloader issues throws error...

2009-08-20 Thread Alex Harui
I think that's a player version problem.  Make sure you're running the version 
of the player that the SWF is compiled for.

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 djhatrick
Sent: Thursday, August 20, 2009 7:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BrowserManagerShim, the workaround to fix preloader 
issues throws error...



Any suggestions how to overcome this error with the BroswerManagerShim:

ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.

I need a preloader to work with anchor tags... thanks. Software should operate 
like a German car, not a French car.

Thanks,
Patrick



RE: [flexcoders] Cannot select identical item in my tree component...

2009-08-20 Thread Alex Harui
It is a Tree, not a DAG.  The same node cannot appear in a tree.

You can have proxy objects in the collection that update a shared object.

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 - -
Sent: Thursday, August 20, 2009 8:35 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cannot select identical item in my tree component...


Hi Alex, if I need both objects to be identical, how can I assign different UID?

If I double click the object on the parent node, I enable a view to edit the 
object.
The same object is found nested deeper in the tree, if I double click it, it 
must edit the same object on the parent branch.

Thanks.

-David


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thursday, August 20, 2009 1:47:10 AM
Subject: RE: [flexcoders] Cannot select identical item in my tree component...


Each object must have a unique UID.

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

From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of whiskerstasters
Sent: Wednesday, August 19, 2009 1:06 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Cannot select identical item in my tree component...



Hi everyone, I'm having an issue with my tree component.
I use an arrayCollection for my dataProvider.
I have the same object in my arrayCollection nested at different levels.

I cannot select this object at different levels in my tree, it always select 
the topmost nested object.

Is there a way to work around this? I would like to be able to select an item 
even though the same item is found at different nested levels within the tree.

Thanks!


Looking for the perfect gift? Give the gift of 
Flickr!http://www.flickr.com/gift/



[flexcoders] how to wait for one event to finish?

2009-08-20 Thread coder3

Hi

I have a module, that needs to wait for the parentApplication to finish the
httpservice so that it can get the data and do some stuff.

so the httpservice has a result handling function, 

how can the module know when to get the result? i guess i need to use
eventlistener, how?

thanks!
c


-- 
View this message in context: 
http://www.nabble.com/how-to-wait-for-one-event-to-finish--tp25067200p25067200.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread coder3

Hi 

my application needs to wait until two (or more) resultHandlers to get their
results and use them together.

for example,

mx:RemoteObject id=myRO destination=test fault=FaultHandler(event)
mx:method name=getList1  result=handleList1Result(event)/
mx:method name=getList2  result=handleList2Result(event)/
/mx:RemoteObject

at application creationComplete, it calles myRO.getList1() and
myRO.getList2()

what can i do to make sure i get both results before i do anything else?

i know it can call myRO.getList1(), then in the
handleList1Result(event:ResultEvent), after it gets the list1 result, then
it calls myRO.getList2(), 

but i would like to know a better, more clear way.

thanks

C

-- 
View this message in context: 
http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteobject-result-to-finish--tp25067471p25067471.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] call remoteObject muliple times

2009-08-20 Thread kpjj31
Is it possible to call remoteObject multiple times. This number would be based 
on the number of records in an arrayCollection.

This calls it only for the first record.

for (var i:int = 0; 1  departmentlist.length; i++)

{
delagateService.setDelegateAssignment({ProfileID:profileid,GLString:departmentlist.getItemAt(i).DATA,AddRemove:isselected})

{
index = i;
break;
}



[flexcoders] Re: how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread valdhor
If you need to wait for both results, then that is the best way.

--- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote:

 
 Hi 
 
 my application needs to wait until two (or more) resultHandlers to get their
 results and use them together.
 
 for example,
 
 mx:RemoteObject id=myRO destination=test fault=FaultHandler(event)
   mx:method name=getList1  result=handleList1Result(event)/
   mx:method name=getList2  result=handleList2Result(event)/
 /mx:RemoteObject
 
 at application creationComplete, it calles myRO.getList1() and
 myRO.getList2()
 
 what can i do to make sure i get both results before i do anything else?
 
 i know it can call myRO.getList1(), then in the
 handleList1Result(event:ResultEvent), after it gets the list1 result, then
 it calls myRO.getList2(), 
 
 but i would like to know a better, more clear way.
 
 thanks
 
 C
 
 -- 
 View this message in context: 
 http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteobject-result-to-finish--tp25067471p25067471.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





Re: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Wesley Acheson
private var list1Result:ResultEvent;
private var list2Result:ResultEvent;

private function handleList1Result(event:ResultEvent):void
{
  list1Result = event;
  if(list2Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleList2Result(event:ResultEvent):void
{
  list2Result = event;
  if(list1Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleResults(result1:ResultEvent,
result2:ResultEvent):void
{
  //your code here
}

On Thu, Aug 20, 2009 at 8:35 PM, coder3 rrhu...@hotmail.com wrote:


 Hi

 my application needs to wait until two (or more) resultHandlers to get
 their
 results and use them together.

 for example,

 mx:RemoteObject id=myRO destination=test fault=FaultHandler(event)
mx:method name=getList1  result=handleList1Result(event)/
mx:method name=getList2  result=handleList2Result(event)/
 /mx:RemoteObject

 at application creationComplete, it calles myRO.getList1() and
 myRO.getList2()

 what can i do to make sure i get both results before i do anything else?

 i know it can call myRO.getList1(), then in the
 handleList1Result(event:ResultEvent), after it gets the list1 result, then
 it calls myRO.getList2(),

 but i would like to know a better, more clear way.

 thanks

 C

 --
 View this message in context:
 http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteobject-result-to-finish--tp25067471p25067471.html
 Sent from the FlexCoders mailing list archive at Nabble.com.



 

 --
 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: Changing ResultHandler of WebService Operation

2009-08-20 Thread Tracy Spratt
Look into AsyncToken.  All the RPC calls, inclusing WebService return an
AsyncToken, which is a dynamic object to which you can add any property you
want, and you can retrieve the value of that property in the result handler.
Set a called property and use a switch statement to decide how t handle the
result.  AsyncToken also supports callback functions.

 

Further, I am sure you could call removeEventListener and the
addEventListener to actually change the result handler.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Thursday, August 20, 2009 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Changing ResultHandler of WebService Operation

 

  

Probably not. In ActionScript, you would add an event listener. For a remote
object it is...

theRemoteObject.theOperation.removeEventListener(ResultEvent.RESULT,
firstResultHandler)

theRemoteObject.theOperation.addEventListener(ResultEvent.RESULT,
secondResultHandler)

I would think it would be the same for a web service although I have not
tried it.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Angelo Anolin angelo_ano...@... wrote:

 Hi FlexCoders,
 
 How do I change the Result property of a web service operation?
 
 For example, I have declared my WebService as follows:
 
 mx:WebService id=ws
   mx:operation name=Call_One result=Call_OneRH(event)
fault=Call_OneFH(event) /
   mx:operation name=Call_Two result=Call_TwoRH(event)
fault=Call_TwoFH(event) /
 /mx:WebService
 
 I want to be able to change the result of the operation Call_One to
another result, since I am planning to re-use the same web service, but the
result would be treated differently.
 
 Will this work?
 
 ws.operation.Call_One.result = myOtherResult
 
 Any ideas?
 
 Thanks. Regards.
 
 Angelo






RE: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-20 Thread Tracy Spratt
You can use mx:XML source=myFile.xml . for compile time embedding or you
can use HTTPService for run-time retrieval.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Gautam P
Sent: Thursday, August 20, 2009 4:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to use XML file as dataProvider for
s:List

 

  

if you need to load an external xml file from the file system rather than
from the server, compile your flex project using the option
-use-network=false. however, compiling in this fashion will not allow the
swf to make calls to the server.

On Thu, Aug 13, 2009 at 1:57 AM, mattcalthropmcalth...@gmail.
mailto:mcalth...@gmail.com com wrote:
 Thanks Gautam.

 I think we're almost there... except: I want the XML to reside in an
external file, not as a string in the AS3 code.

 Is that easy to do?

 cheers,

 Matt

 --- In flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com,
Gautam P p.gau...@... wrote:

 var imageXML:XML = new XML('imageListimage
location=path/to/image1.jpg/'+

 'image location=path/to/image2.jpg//imageList');
 var s:List = new List();
 s.dataProvider = imageXML.image; // this give a XMLList (e4x expression)
 s.labelfield = @location; // to display location in the list. to
 access attribute prefix @ symbol

 Regards,
 Gautam.

 On Wed, Aug 12, 2009 at 5:09 PM, mattcalthropmcalth...@... wrote:
  Hi all.
 
  I am using FB4, and want to specify an XML file to be used as the
dataProvider for an s:List object.
 
  However, I just can't seem to work out how to do it.
 
  Have read manuals, done google searches, checked forums - all to no
avail.
 
  Can anyone help me please?
 
  Format of XML file is thus:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  imageList
   image location=path/to/image1.jpg /
   image location=path/to/image2.jpg /
   !-- ... --
  /imageList
 
  many thanks in advance!
 
  Matt
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location: https://share.
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
2079f6847
acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives: http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 




 

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


(Yahoo! ID required)

mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com








[flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread lanekelly5
I'm trying to load a few elements of an RSS feed into a DataGrid, and I'm 
having trouble with the code to pre-sort the data before the grid gets it.  
Here's a snippet of the code:

private function requestRSS(e:FlexEvent):void
{
initVars();
showBusyCursor();
rssService.url = rssUrl;
rssService.resultFormat = e4x;
rssService.useProxy = false;
rssService.addEventListener(ResultEvent.RESULT, 
resultHandler);
rssService.addEventListener(FaultEvent.FAULT, 
faultHandler);
rssService.send();
}

private function resultHandler(e:ResultEvent):void
{
listHeadlines.dataProvider = 
e.target.lastResult.channel.item;
}

In the mxml:
mx:DataGrid id=listHeadlines width=433 height=113 
click=showDetails(event)
mx:columns
mx:DataGridColumn dataField=pubDate sortDescending=true/
mx:DataGridColumn dataField=title/
/mx:columns
/mx:DataGrid 

At this point my data in e.target.lastResult.channel.item is not always sorted 
properly.  I'd like to sort it by pubDate descending before filling out the 
DataGrid.  Any guidance on this?



Re: [flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread Wesley Acheson
I've not experienced it yet my self but the problem is probably the dates.
Flex does string comparison on the dates not object comparison. (even if
they were dates which they're probably strings by the time they get into
your application.  I haven't verified the accuracy of said post but at a
glance
http://blog.flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/looks
like it has what you need.

On Thu, Aug 20, 2009 at 9:30 PM, lanekelly5 lkel...@gmail.com wrote:

 I'm trying to load a few elements of an RSS feed into a DataGrid, and I'm
 having trouble with the code to pre-sort the data before the grid gets it.
  Here's a snippet of the code:

 private function requestRSS(e:FlexEvent):void
{
initVars();
showBusyCursor();
rssService.url = rssUrl;
rssService.resultFormat = e4x;
rssService.useProxy = false;

  rssService.addEventListener(ResultEvent.RESULT, resultHandler);

  rssService.addEventListener(FaultEvent.FAULT, faultHandler);
rssService.send();
}

 private function resultHandler(e:ResultEvent):void
{
listHeadlines.dataProvider =
 e.target.lastResult.channel.item;
}

 In the mxml:
 mx:DataGrid id=listHeadlines width=433 height=113
 click=showDetails(event)
mx:columns
mx:DataGridColumn dataField=pubDate sortDescending=true/
mx:DataGridColumn dataField=title/
/mx:columns
 /mx:DataGrid

 At this point my data in e.target.lastResult.channel.item is not always
 sorted properly.  I'd like to sort it by pubDate descending before filling
 out the DataGrid.  Any guidance on this?



 

 --
 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] Create XML for AnyChart component

2009-08-20 Thread fumeng5
Hi, 

I'm writing XML for an AnyChart component and I am having troubles setting the 
value of a node attribute to a dynamic element, i.e. 

// The method accepts a DTO
private function createSemiCircularGaugeXML( gauge:GaugeDTO ):XML

// I can write it here
text{gauge.label}/text

// But not here as an attribute
scale minimum={gauge.min} maximum={gauge.max} major_interval=10/

What's the proper syntax for adding dynamic data as an attribute? Am I doing 
this wrong? Is there some proprietary way of doing it for AnyChart? I couldn't 
figure it out from their documentation.

Any tips would be very helpful. 

Thanks,

Matt



[flexcoders] Re: ReferenceError #1069 property not found on native class

2009-08-20 Thread dhchang77
Thanks for the response Wesley but this is an IR-specific issue.

A couple more findings, now it's no longer just my machine.  Another team 
member has also ran into this when is reencrypt called while running the 
production build within AIR and using adl to run it however it's fine for him 
in flex builder.  I tested on a pc and experiencing the same thing.  Anyone 
worked with reencrypt and found no issues in dev and prod environments?  
Because this is starting to seem like a runtime vm bug.

Thanks,
David

--- In flexcoders@yahoogroups.com, Wesley Acheson wesley.ache...@... wrote:

 All I can think of is check the verson of flash player but I don't know if
 it could cause that problem.
 
 On Tue, Aug 18, 2009 at 7:17 PM, dhchang77 dhchan...@... wrote:
 
  Hi folks,
 
  Any chance anyone here has run into the following?
 
  ReferenceError: Error #1069: Property reencrypt not found on
  flash.data.SQLConnection and there is no default value.
 
  It's something with my environment as it's fine for other devs I'm working
  with.  Just the following code compiles fine but breaks on me at runtime.
 
  var conn:SQLConnection = new SQLConnection();
  trace(conn.reencrypt);
 
  I realize the method was added to AIR 1.5 and have tested in Flex Builder
  3.3, with ADL from the command line out of a fresh 3.3 SDK download,
  installed app and ran with AIR 1.5.2 but have gotten the runtime error in
  every scenario.  Also, trace(SQLErrorOperation.REENCRYPT); shows up fine so
  I'm implying I do have the latest airglobals.swc compiled in there.
 
  Any help would be much appreciated, thanks!
 
  David
 
 
 
  
 
  --
  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] Re: how to wait for one event to finish?

2009-08-20 Thread vishwas_gagrani
--- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote:

 
 Hi
 
 I have a module, that needs to wait for the parentApplication to finish the
 httpservice so that it can get the data and do some stuff.
 
 so the httpservice has a result handling function, 
 
 how can the module know when to get the result? i guess i need to use
 eventlistener, how?
 
 thanks!
 c
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/how-to-wait-for-one-event-to-finish--tp25067200p25067200.html
 Sent from the FlexCoders mailing list archive at Nabble.com.


yes, you need an eventlistener. 

the object of the class that contains the module, would register the event, 
with the broadcaster function. 
And the module you are using, would need to be coded for dispatching particular 
event ( when you get the result) .



Re: [flexcoders] Parser Error | Itemrender

2009-08-20 Thread Rajan Jain
Hi Alex

Thanks
ilikeflex





From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Thursday, August 20, 2009 1:44:50 AM
Subject: RE: [flexcoders] Parser Error  | Itemrender

  
mx:Component defines a sub-document within an MXML file. 
You don’t need it in the component file, just
 
?xml version=1.0 encoding=utf-8?
mx:CheckBox label={data.label} selected={data.selected}/


Alex Harui
Flex SDK Developer
Adobe
Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of ilikeflex
Sent: Wednesday, August 19, 2009 7:56 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Parser Error | Itemrender
 
  
Hi

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml
layout=absolute creationComplete=onCreationcomplete( )
mx:Script
![CDATA[
import mx.collections. ArrayCollection;
import com.DateUtils;
private var stateList:Array = [
{ label: Alaska, selected: false },
{ label: Arkansas, selected: false },
{ label: California, selected: false },
{ label: Delaware, selected: false },
{ label: Florida, selected: false },
{ label: Georgia, selected: false },
{ label: Hawaii, selected: false },
{ label: Massachusetts, selected: false },
{ label: Nevada, selected: false },
{ label: Pennsylvania, selected: false },
{ label: South Dakota, selected: false },
{ label: Tennessee, selected: false },
{ label: Utah, selected: false },
{ label: Virginia, selected: false },
{ label: Washington, selected: false }
];

public function onCreationcomplete( ):void
{
test.dataProvider = new ArrayCollection( stateList) ;
}
]]
/mx:Script

mx:ComboBox id=test width=300 
mx:itemRenderer
mx:Component
mx:CheckBox selectedField=selected change=data.selected =
selected /
/mx:Component
/mx:itemRenderer
/mx:ComboBox 
/mx:Application

The above file works fine and it show check box as itemrender. Now if i want to
create same itemrender in different file like

?xml version=1.0 encoding=utf-8?
mx:Component xmlns:mx=http://www.adobe. com/2006/ mxml
width=100% height=100%
mx:CheckBox label={data.label} selected={data.selected}/
/mx:Component

it gives me parser error.

Can somebody throw some light??

Thanks
ilikeflex
   


  

RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Tim Rowe
You don't really get much in the way of thread control in Flex, but a neater 
way might still be to create something of a pseudo-barrier.

At the time each object is fired, you would also add a token to the barrier, 
latching it and increasing the counter on that token.  Each event listener 
could then call off to the barrier, passing the same token fired as a property 
of the event to decrease against that token on the barrier - at the point all 
tokens are unblocked (ie, reach 0) you can open the barrier.  Your other code 
would sleep (I was almost going to say spinwait... hm, no :) until the barrier 
is unlatched.

This could avoid you needing to write a handler for each event - the problem 
with the below example is what happens when you need three, or four, of seven 
events to be waited on.  Just something to give some thought to anyway.

--Tim


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Wesley Acheson
Sent: Friday, 21 August 2009 5:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to wait for more than one 
httpserivice/remoteobject result to finish?



private var list1Result:ResultEvent;
private var list2Result:ResultEvent;

private function handleList1Result(event:ResultEvent):void
{
  list1Result = event;
  if(list2Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleList2Result(event:ResultEvent):void
{
  list2Result = event;
  if(list1Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleResults(result1:ResultEvent, result2:ResultEvent):void
{
  //your code here
}

On Thu, Aug 20, 2009 at 8:35 PM, coder3 
rrhu...@hotmail.commailto:rrhu...@hotmail.com wrote:

Hi

my application needs to wait until two (or more) resultHandlers to get their
results and use them together.

for example,

mx:RemoteObject id=myRO destination=test fault=FaultHandler(event)
   mx:method name=getList1  result=handleList1Result(event)/
   mx:method name=getList2  result=handleList2Result(event)/
/mx:RemoteObject

at application creationComplete, it calles myRO.getList1() and
myRO.getList2()

what can i do to make sure i get both results before i do anything else?

i know it can call myRO.getList1(), then in the
handleList1Result(event:ResultEvent), after it gets the list1 result, then
it calls myRO.getList2(),

but i would like to know a better, more clear way.

thanks

C

--
View this message in context: 
http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteobject-result-to-finish--tp25067471p25067471.html
Sent from the FlexCoders mailing list archive at Nabble.com.





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







__
Notice: This email and attachments (if any) is for the exclusive use of the 
addressee and may contain information that is privileged and confidential. Any 
unauthorised use of the contents of the email and/or attachments is expressly 
prohibited. If you are not the addressee of this email, please notify me 
immediately by email and then immediately destroy any electronic or paper copy 
of this email and/or attachments. Carsales.com Ltd and its related companies do 
not accept responsibility for the views expressed in the email or for the 
consequences of any computer viruses that may be transmitted with this email. 
This email is subject to copyright. No part of it should be reproduced, adapted 
or transmitted without the written consent of the copyright owner.

RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?

2009-08-20 Thread Tracy Spratt
This may be essentially the same thing Tim is suggesting, but you could set
a property on an associative array (Object) in the send function and delete
the corresponding property value in the result or fault handlers.  When
for..in returns zero iterations, all calls have returned.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Rowe
Sent: Thursday, August 20, 2009 7:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to wait for more than one
httpserivice/remoteobject result to finish?

 

  

You don't really get much in the way of thread control in Flex, but a neater
way might still be to create something of a pseudo-barrier.

 

At the time each object is fired, you would also add a token to the barrier,
latching it and increasing the counter on that token.  Each event listener
could then call off to the barrier, passing the same token fired as a
property of the event to decrease against that token on the barrier - at the
point all tokens are unblocked (ie, reach 0) you can open the barrier.  Your
other code would sleep (I was almost going to say spinwait... hm, no :)
until the barrier is unlatched.

 

This could avoid you needing to write a handler for each event - the problem
with the below example is what happens when you need three, or four, of
seven events to be waited on.  Just something to give some thought to
anyway.

 

--Tim

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wesley Acheson
Sent: Friday, 21 August 2009 5:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to wait for more than one
httpserivice/remoteobject result to finish?

  

private var list1Result:ResultEvent;
private var list2Result:ResultEvent;

private function handleList1Result(event:ResultEvent):void
{
  list1Result = event;
  if(list2Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleList2Result(event:ResultEvent):void
{
  list2Result = event;
  if(list1Result)
  {
handleResults(list1Result, list2Result);
  }
}

private function handleResults(result1:ResultEvent,
result2:ResultEvent):void
{
  //your code here
}

On Thu, Aug 20, 2009 at 8:35 PM, coder3 rrhu...@hotmail.
mailto:rrhu...@hotmail.com com wrote:


Hi

my application needs to wait until two (or more) resultHandlers to get their
results and use them together.

for example,

mx:RemoteObject id=myRO destination=test fault=FaultHandler(event)
   mx:method name=getList1  result=handleList1Result(event)/
   mx:method name=getList2  result=handleList2Result(event)/
/mx:RemoteObject

at application creationComplete, it calles myRO.getList1() and
myRO.getList2()

what can i do to make sure i get both results before i do anything else?

i know it can call myRO.getList1(), then in the
handleList1Result(event:ResultEvent), after it gets the list1 result, then
it calls myRO.getList2(),

but i would like to know a better, more clear way.

thanks

C

--
View this message in context: http://www.nabble.
http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteobje
ct-result-to-finish--tp25067471p25067471.html
com/how-to-wait-for-more-than-one-httpserivice-remoteobject-result-to-finish
--tp25067471p25067471.html
Sent from the FlexCoders mailing list archive at Nabble.com.





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


   (Yahoo! ID required)

   mailto:flexcoders-fullfeat
mailto:flexcoders-fullfeatu...@yahoogroups.com u...@yahoogroups.com


 


__
Notice: This email and attachments (if any) is for the exclusive use of the
addressee and may contain information that is privileged and confidential.
Any unauthorised use of the contents of the email and/or attachments is
expressly prohibited. If you are not the addressee of this email, please
notify me immediately by email and then immediately destroy any electronic
or paper copy of this email and/or attachments. Carsales.com Ltd and its
related companies do not accept responsibility for the views expressed in
the email or for the consequences of any computer viruses that may be
transmitted with this email. This email is subject to copyright. No part of
it should be reproduced, adapted or transmitted without the written consent
of the copyright owner.





RE: [flexcoders] Help trying to sort data provider for DataGrid

2009-08-20 Thread Tracy Spratt
If it is not a date format issue then you might want to put the XML list
into a collection array and sort that.  If you want to keep the xml (as I
often do), use setChildren to assign the sorted XML list back to the root
xml.

 

If you do not need to keep the xml (as I sometimes do not) Put the data into
an ArrayCollection of strongly typed value objects.  This has other benefits
as well.

 

Below is a function I use to sort XML child nodes.

 

/** Sorts an xml node's children on a single attribute

*   Returns a copy of the xml node with the children in the sorted order
*/

public static function sortChildren(xml:XML, 

  sAttrName:String, 

  bCaseInsensitive:Boolean=true, 

  bDescending:Boolean=true):XML

{

  var xmlReturn:XML;

  if (xml != null)  {

xmlReturn = xml.copy();//copy to get the root node.  We will
replace the children

xml = xml.copy();  //copy so we can append the
children to the return xml directly

var xlcChildren:XMLListCollection = new
XMLListCollection(xml.children());

var xlChildren:XMLList;

var xlcSorted:XMLListCollection = new XMLListCollection();

var sort:Sort = new Sort();// Create the Sort instance.

sort.fields = [new
SortField(sAttrName,bCaseInsensitive,bDescending)];  // Both fields are
case-insensitive.

xlcChildren.sort = sort;  // Assign the Sort object to the
collection.

xlcChildren.refresh();// Apply the sort to the
collection.

for (var i:int=0;ixlcChildren.length;i++)  {  //loop over the
children in index order

  xlcSorted.addItemAt(xlcChildren.getItemAt(i),i); //add the node to
the new collection

}

xlChildren = xlcSorted.source; //get the XMLlist from the source
property 

xmlReturn.setChildren(xlChildren); //set the return xml children.


  }

  return xmlReturn;

}//sortChildren

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wesley Acheson
Sent: Thursday, August 20, 2009 4:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Help trying to sort data provider for DataGrid

 

  

I've not experienced it yet my self but the problem is probably the dates.
Flex does string comparison on the dates not object comparison. (even if
they were dates which they're probably strings by the time they get into
your application.  I haven't verified the accuracy of said post but at a
glance http://blog.
http://blog.flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/
 flexexamples.com/2007/08/12/sorting-date-columns-in-a-datagrid/ looks like
it has what you need.

On Thu, Aug 20, 2009 at 9:30 PM, lanekelly5 lkel...@gmail.
mailto:lkel...@gmail.com com wrote:

I'm trying to load a few elements of an RSS feed into a DataGrid, and I'm
having trouble with the code to pre-sort the data before the grid gets it.
Here's a snippet of the code:

private function requestRSS(e:FlexEvent):void
   {
   initVars();
   showBusyCursor();
   rssService.url = rssUrl;
   rssService.resultFormat = e4x;
   rssService.useProxy = false;
 
rssService.addEventListener(ResultEvent.RESULT, resultHandler);
   rssService.addEventListener(FaultEvent.FAULT,
faultHandler);
   rssService.send();
   }

private function resultHandler(e:ResultEvent):void
   {
   listHeadlines.dataProvider =
e.target.lastResult.channel.item;
   }

In the mxml:
mx:DataGrid id=listHeadlines width=433 height=113
click=showDetails(event)
   mx:columns
   mx:DataGridColumn dataField=pubDate sortDescending=true/
   mx:DataGridColumn dataField=title/
   /mx:columns
/mx:DataGrid

At this point my data in e.target.lastResult.channel.item is not always
sorted properly.  I'd like to sort it by pubDate descending before filling
out the DataGrid.  Any guidance on this?





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


   (Yahoo! ID required)

   mailto:flexcoders-fullfeat

[flexcoders] Determine Drag Source Control

2009-08-20 Thread Angelo Anolin
Hi FlexCoders,

I have some inquiry with regards to Drag and Drop.

Supposedly I have 5 List controls with IDs:

lstControl_Source1
lstControl_Source2
lstControl_Source3
lstControl_Source4
lstControl_Source5

All these list controls are possible source of drag items.

I am dropping the dragged item to another list control which is 
lstControl_Target.

I have defined the dragDrop event handler for the lstControl_Target as: 
dragDrop = lstControl_TargetDD(event).

And the function:

private function lstControl_TargetDD(evt:DragEvent):void
{
 // Which control was the source of the drag item???
}

Inputs appreciated. Thanks.
Regards,
Angelo



  

[flexcoders] Re: How to add fragments to debug url in Flex Builder

2009-08-20 Thread mike_morearty
Browsers don't allow fragments such as #anchor to be appended to file:
URLs, as they do for http: URLs.  The workaround for your scenario is to
have Flex Builder compile the SWF into a directory where an HTTP server
can find it.

For example, suppose you are on a Mac; /Users/johndoe/Sites can be
accessed from a web browser as http://localhost/~johndoe, if you have
enabled that via System Preferences, Sharing, Web Sharing.  So, in Flex
Builder, you could go to the Project Properties, Flex Build Path, and
set the Output folder to /Users/johndoe/Sites/myproj, and the Output
folder URL to http://localhost/~johndoe/myproj.  Once you do that, your
launch URL should automatically change to the right thing; you can then
modify it and append #anchor.


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I need to debug deep linking in my project (When a user pastes a URL
in the browser and presses Go). If I just paste the URL, the browser is
not connected to the debugger. So, I need to be able to add the
fragments to the debug URL in Flex Builder. I thought I could just do
that in the Run/Debug Settings panel but if I do that I get a file not
found error.

 I need to know how to force the debugger to connect to the browser OR
how to add fragments to the URL in Flex Builder so the debugger starts
with the right fragments.

 Any help appreciated.





RE: [flexcoders] Determine Drag Source Control

2009-08-20 Thread Alex Harui
Should be: event.dragInitiator.id

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 Angelo Anolin
Sent: Thursday, August 20, 2009 5:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Determine Drag Source Control


Hi FlexCoders,

I have some inquiry with regards to Drag and Drop.

Supposedly I have 5 List controls with IDs:

lstControl_Source1
lstControl_Source2
lstControl_Source3
lstControl_Source4
lstControl_Source5

All these list controls are possible source of drag items.

I am dropping the dragged item to another list control which is 
lstControl_Target.

I have defined the dragDrop event handler for the lstControl_Target as: 
dragDrop = lstControl_TargetDD(event).

And the function:

private function lstControl_TargetDD(evt:DragEvent):void
{
 // Which control was the source of the drag item???
}

Inputs appreciated. Thanks.
Regards,
Angelo