[flexcoders] Re: Constraining the DragManager

2009-11-19 Thread cuttenv
Hey Alex,
That doesn't work. Grabbing the cursor from the system manager and then setting 
it's x value to a constant does indeed keep the cursor on a vertical line but 
the problem is then the drag proxy image is following your old mouse position 
(looks somewhat ghost like :).

I then tried accessing the drag proxy directly by grabbing it from the system 
manager and setting the x, to no avail. The problem is that the drag proxy's 
mouse move event fires before the one I added even when I set the priority to 
1. I think it has to do something with DragProxy having an [Excluded] meta 
tag. There were even some comments in that class mentioning that the developer 
was having some troubles.


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

 No, I would go to systemManager.cursorChildren.  There should be one child 
 and moving it or its child (which should be the actual cursor) should be what 
 you want to do.
 
 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 cuttenv
 Sent: Tuesday, November 17, 2009 4:15 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Constraining the DragManager
 
 
 
 How would you go about getting the drag cursor? by accessing the 
 cursormanager?
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  No APIs for doing that with DragManager. Maybe there is some way to find 
  the dragcursor and move it to where you want it.
 
  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 cuttenv
  Sent: Monday, November 16, 2009 8:04 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Constraining the DragManager
 
 
 
  Is it even possible to constrain the DragManager in flex to vertical 
  movement only?? I have tried just about everything I can think of to no 
  avail. I guess I could use the startDrag() and stopDrag() methods. It just 
  seems like there should be a way. Any ideas?
 





[flexcoders] Re: TabNavigator changes page (html) title

2009-11-19 Thread Flex Boy
Yea I know, it's a bug in the historymangager(sdk 3.2), you have to set the 
pagetitle manual after pressing the tab..

work around:

private var browserManager:IBrowserManager;

private function initApp():void
{
browserManager = BrowserManager.getInstance();
browserManager.setTitle('your page title');
browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
uRLChange);
}

private function uRLChange(event:BrowserChangeEvent):void
{
   browserManager.setTitle(browserManager.title);
}


--- In flexcoders@yahoogroups.com, ynotob t...@... wrote:

 I've added a TabNavigator to a flex application.
 
 The application is launched from html that is generated by a java server page 
 (main.jsp).  The generated html includes a html page title.  
 
 Up until I added the TabNavigator to the application, the generated html page 
 title would display as expected when the flex application is run in the 
 browser.
 
 Now that I've added a TabNavigator, the html page title shows as expected 
 until the flex application shows the TabNavigator.  Then the page title 
 changes to that of the jsp (main.jsp) along with the full url to main.jsp.
 
 Any idea of how to stop the TabNavigator from changing my page title?
 
 Tony





[flexcoders] Re: using itemsChangeEffect when filtering a tilelist

2009-11-19 Thread stinasius
Guys any help...



[flexcoders] Re: how to enable stack traceback?

2009-11-19 Thread mitchgrrt
Yes I did try a simple case.  I put some code that causes a null pointer 
exception into a screen's onCreationComplete handler.  I see the traceback 
inside the debugger but nothing when running the program without the debugger.

There seems to be a lot of confusion about this issue, and also just about the 
terminology to talk about it.  I wonder if it's really just a Mac vs. Windows 
issue?  In other kinds of software development it's common to see differences 
across platforms, but it's much less common with Flex.

What version of the Flash player are you running?  I was thinking maybe it was 
something that worked with version 9 and got broken with version 10.

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

 If you have a debugger player you should be seeing the exception dialog 
 whether you are in the debugger or not.  I still do on Windows.  I don't have 
 a Mac to try it.  Did you try a simple test case?
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui




[flexcoders] Re: id css selectors

2009-11-19 Thread valdhor
What version of the SDK are you using?

From what I can ascertain, ID selectors are new as of FB4.

--- In flexcoders@yahoogroups.com, Joel Stransky stranskydes...@... wrote:

 How is it that this page claims id selectors are valid yet Flex Builder
 balks when I try to use them?
 http://opensource.adobe.com/wiki/display/flexsdk/CSS+Advanced+Selectors
 
 According to the article, I should be able to do this.
 in HelloFlex.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Canvas id=theCanvas /
 /mx:Application
 
 in HelloFlex.css
 #theCanvas{}
 
 What gives?
 
 -- 
 --Joel Stransky
 stranskydesign.com





[flexcoders] Re: how to insert checkbox value into database

2009-11-19 Thread stinasius
here is were it fails in my cfc i have the following

cfargument name=pool type=boolean required=no/

INSERT INTO homes(pool)
VALUES(#arguments.pool#)

the column in the table is pool and the id of the check box in the flex ui is 
also pool. in flex i have the following

mx:RemoteObject id=listManager destination=ColdFusion 
source=App.src.cfcs.Maintenance showBusyCursor=true
   mx:method name=listProperty result=handleStringResult(event) 
fault=mx.controls.Alert.show(event.fault.faultString)/
/mx:RemoteObject

private function insertHandler():void{
listManager.listProperty(pool.selected);

}

when i try to insert it gives error: cant execute query. any thoughts on what 
i can do to insert the value of the check box into the database. by the way the 
datatype of pool in database table is yes/no. am using access. thanks



[flexcoders] Re: how to insert checkbox value into database

2009-11-19 Thread stinasius
here is were it fails in my cfc i have the following

cfargument name=pool type=boolean required=no/

INSERT INTO homes(pool)
VALUES(#arguments.pool#)

the column in the table is pool and the id of the check box in the flex ui is 
also pool. in flex i have the following

mx:RemoteObject id=listManager destination=ColdFusion 
source=App.src.cfcs.Maintenance showBusyCursor=true
   mx:method name=listProperty result=handleStringResult(event) 
fault=mx.controls.Alert.show(event.fault.faultString)/
/mx:RemoteObject

private function insertHandler():void{
listManager.listProperty(pool.selected);

}

when i try to insert it gives error: cant execute query. any thoughts on what 
i can do to insert the value of the check box into the database. by the way the 
datatype of pool in database table is yes/no. am using access. thanks



Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-19 Thread Daniel Freiman
Ok, that fixes the problem, but it doesn't explain why the problem was
happening in the first place.  Or it doesn't explain why the first three
examples ever worked.  Nowhere in my application did I ever define a default
namespace.  In all 4 cases when I trace data.namespace().uri I get 
http://www.w3.org/2000/svg; regardless of whether I do the trace before or
after setting the default namespace.

Is this a bug?  I'm running the exact same line of code each time.  The only
thing I can think of is that the source of the XML is different.  The first
3 are created through deserialization from the server.  The 4th is just the
normal XML constructor. I do see why this would matter.

- Daniel Freiman

On Thu, Nov 19, 2009 at 12:55 AM, Tracy Spratt tr...@nts3rd.com wrote:



  This declaration, “xmlns=http://www.w3.org/2000/svg” sets the default
 namespace that is appended to every node name that is not qualified by some
 other namespace.  Unless you declare it in AS, you will not be able to
 access nodes like “data”.



 Try this declaration, at instance (global) level scope:

 default xml namespace = http://www.w3.org/2000/svg;;



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Daniel Freiman
 *Sent:* Thursday, November 19, 2009 12:42 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error





 I think I tried that already but I'll double check in the morning.

 Based on the XML and the code, isn't the default namespace already defined
 and shouldn't e4x be already using it?

 - Daniel Freiman

 On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt tr...@nts3rd.com wrote:



 What happens if you declare the default namespace, then do:



 data.pa...@d



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Daniel Freiman
 *Sent:* Wednesday, November 18, 2009 8:37 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error





 I've stated the symptom.  As you can see in the given XML, there is a child
 named path. So I should be getting value for that code instead of a null
 error.  I don't know why it's not picking it up.  My best guess is that it
 is because of namespaces, but I can't see a differences between the XML
 objects that this code works for, and the one it doesn't work for.  The
 [0] should be optional (at least relative to getting a null value or
 not).  I'm not sure how else to state my goal other than how the expression
 is already written.  I want the d attribute of the path child and I want
 it to work for all of the cases I've supplied or find the reason why it's
 not working so I can fix the last case.  Right now it is only working for 3
 out of 4.

 - Daniel Freiman

 On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt tr...@nts3rd.com wrote:



 Didn’t you state the problem yourself?  With an expression:

 data.path[...@d[0]

 If there is no path[0], then you would expect the error.



 Why are you using the [0] syntax?  Is it because of the namespaces?  What
 is the actual goal of your expression?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Daniel Freiman
 *Sent:* Wednesday, November 18, 2009 3:53 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [SPAM] Re: [flexcoders] XML e4x error





 I've tried that previously.  There wasn't any difference, which should be
 expected given the request path.

 - Daniel Freiman

 On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear invertedsp...@yahoo.com
 wrote:




 The only thing I can see in the one that is giving you a problem is
 different
 from the others is there is a text / tag. The one above it has a
 text/text pair. This could be being read as a null text instead of a 0
 length string. Try changing that and let us know.

 ~Mike



 Daniel Freiman wrote:
 
  I'm running the following line of code on XML objects and getting
  inconsistent results:
 
  data.path[...@d[0]
 
  In 3 cases, I get a valid answer. In the last case, data.path[0] == null
  and thus errors.
  Can anyone see any difference?
  The valid XML are:
 
  g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image
  id=Object07B xmlns=http://www.w3.org/2000/svg; xmlns:pdf=
  http://ns.adobe.com/pdf/2006; xmlns:xlink=http://www.w3.org/1999/xlink;
  xmlns:improv=http://ns.colorquick.com/improv/mars;
  image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png
  y=150 improv:rotation=-90/
  path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5
  160
  12.5 150 stroke-width=0 improv:classname=border/
  /g
  g transform=matrix(1 0 0 1 150 112.5) improv:classname=image
  

RE: [flexcoders] [SPAM] Re: Passing an object to a rendererProvider

2009-11-19 Thread InvertedSpear

Bumping to see if anyone can help me. I understand the concept of sending an
object instead of a string, or sending the additional string. If Flex could
read my mind I would be there. I just can't figure out how to execute that
concept.

Thanks to those that have provided me with help already, and thanks in
advance to those who will.
~Mike
-- 
View this message in context: 
http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26421387.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] [SPAM] Re: Passing an object to a rendererProvider

2009-11-19 Thread InvertedSpear

Bumping to see if anyone can help me. I unserstand the concept of sending an
object instead of a string, or sending the additional string. If Flex could
read my mind I would be there. I just can't figure out how to execute that
concept.

Thanks to those that have provided me with help already, and thanks in
advance to those who will.
~Mike
-- 
View this message in context: 
http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26421386.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: id css selectors

2009-11-19 Thread Joel Stransky
I'm using 3.4
That article I linked to was last edited april 4th 2009. I'm new to flex so
I just assumed that was an accurate spec.

On Thu, Nov 19, 2009 at 9:36 AM, valdhor valdhorli...@embarqmail.comwrote:



 What version of the SDK are you using?

 From what I can ascertain, ID selectors are new as of FB4.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Joel
 Stransky stranskydes...@... wrote:
 
  How is it that this page claims id selectors are valid yet Flex Builder
  balks when I try to use them?
  http://opensource.adobe.com/wiki/display/flexsdk/CSS+Advanced+Selectors
 
  According to the article, I should be able to do this.
  in HelloFlex.mxml
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Canvas id=theCanvas /
  /mx:Application
 
  in HelloFlex.css
  #theCanvas{}
 
  What gives?
 
  --
  --Joel Stransky
  stranskydesign.com
 

  




-- 
--Joel Stransky
stranskydesign.com


[flexcoders] Installed Flash Player Is Not a Debugger

2009-11-19 Thread Joel Stransky
Everytime I debug in Flex Builder I get this alert box.

/Library/Internet Plug-Ins/Flash Player.plugin

Flex Builder cannot locate the required debugger version of Flash Player.
You might need to install the debugger version of Flash Player 9 or
reinstall Flex Builder.

Do you want to try to debug with the current version?

But I have FP10 debugger installed. I'm using OSX Snow Leopard.
How do I fix this?

-- 
--Joel Stransky
stranskydesign.com


[flexcoders] Re: Installed Flash Player Is Not a Debugger

2009-11-19 Thread Joel Stransky
Weird, just reinstalled FP10 debugger and it went away.

On Thu, Nov 19, 2009 at 12:40 PM, Joel Stransky j...@stranskydesign.comwrote:

 Everytime I debug in Flex Builder I get this alert box.

 /Library/Internet Plug-Ins/Flash Player.plugin

 Flex Builder cannot locate the required debugger version of Flash Player.
 You might need to install the debugger version of Flash Player 9 or
 reinstall Flex Builder.

 Do you want to try to debug with the current version?

 But I have FP10 debugger installed. I'm using OSX Snow Leopard.
 How do I fix this?

 --
 --Joel Stransky
 stranskydesign.com




-- 
--Joel Stransky
stranskydesign.com


[flexcoders] Re: Any issues with Windows 7(64bit) and Flex Builder

2009-11-19 Thread seanmcmonahan
Had an issue when using copylocale.exe with JRE not being installed.  Never had 
this problem on Vista x64 but it was easily fixed by installing Java.  Aside 
from that everything seems fine to me.

--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 
  I've had no issues. ;)
 
 Greg Hess wrote:
   
 
  Hi All,
 
  I would like to replace my dev workstation with a farrari, slow
  compiles are killing me. I have been shopping around and would like to
  buy a new quad core, 8G ram and Windows 7(64bit) but want to make sure
  I wont have any issues with my dev tools before making the plunge.
 
  Has any one had any issues moving to Windows 7(64bit), it is not
  listed as a supported OS in the Flex builder system requirements?
 
  I am running Eclipse with the Flex builder plugin.
 
  Any help much appreciated,
 
  Greg
 
  
 
 -- 
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: http://tinyurl.com/684b5h
 http://www.twitter.com/reboog711  | Phone: 203-379-0773
 --
 Easy to use Interface Components for Flex Developers
 http://www.flextras.com?c=104
 --
 http://www.theflexshow.com
 http://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust





Re: [flexcoders] Installed Flash Player Is Not a Debugger

2009-11-19 Thread Pete
I get that on Windows too, same scenario FB3 and debugging flash player 
v10, I usually have to restart FB to make it go away.  Happens 
intermittently after a long (all day) programming session, memory leak 
maybe?


Pete


Joel Stransky wrote:
 


Everytime I debug in Flex Builder I get this alert box.

/Library/Internet Plug-Ins/Flash Player.plugin

Flex Builder cannot locate the required debugger version of Flash 
Player. You might need to install the debugger version of Flash Player 
9 or reinstall Flex Builder.


Do you want to try to debug with the current version?

But I have FP10 debugger installed. I'm using OSX Snow Leopard.
How do I fix this?

--
--Joel Stransky
stranskydesign.com http://stranskydesign.com






[flexcoders] Re: TabNavigator changes page (html) title

2009-11-19 Thread ynotob
Thanks, I'll give that a try, appreciate the detailed response.

Do you know if it is fixed in more recent SDK releases?  

I've been meaning to upgrade the SDK for a while but have delayed because I'm 
not sure how painful / painless the process is.

--- In flexcoders@yahoogroups.com, Flex Boy ca...@... wrote:

 Yea I know, it's a bug in the historymangager(sdk 3.2), you have to set the 
 pagetitle manual after pressing the tab..
 
 work around:
 
 private var browserManager:IBrowserManager;
 
 private function initApp():void
 {
 browserManager = BrowserManager.getInstance();
 browserManager.setTitle('your page title');
 browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
 uRLChange);
 }
 
 private function uRLChange(event:BrowserChangeEvent):void
 {
browserManager.setTitle(browserManager.title);
 }
 
 
 --- In flexcoders@yahoogroups.com, ynotob tony@ wrote:
 
  I've added a TabNavigator to a flex application.
  
  The application is launched from html that is generated by a java server 
  page (main.jsp).  The generated html includes a html page title.  
  
  Up until I added the TabNavigator to the application, the generated html 
  page title would display as expected when the flex application is run in 
  the browser.
  
  Now that I've added a TabNavigator, the html page title shows as expected 
  until the flex application shows the TabNavigator.  Then the page title 
  changes to that of the jsp (main.jsp) along with the full url to main.jsp.
  
  Any idea of how to stop the TabNavigator from changing my page title?
  
  Tony
 





[flexcoders] Re: Installed Flash Player Is Not a Debugger

2009-11-19 Thread turbo_vb
You could try re-instsalling the debug player plugin: 
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_1\
0_plugin_debug.dmg
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_\
10_plugin_debug.dmg-TH
--- In flexcoders@yahoogroups.com, Joel Stransky stranskydes...@...
wrote:

 Everytime I debug in Flex Builder I get this alert box.

 /Library/Internet Plug-Ins/Flash Player.plugin

 Flex Builder cannot locate the required debugger version of Flash
Player.
 You might need to install the debugger version of Flash Player 9 or
 reinstall Flex Builder.

 Do you want to try to debug with the current version?

 But I have FP10 debugger installed. I'm using OSX Snow Leopard.
 How do I fix this?

 --
 --Joel Stransky
 stranskydesign.com




[flexcoders] Re: id css selectors

2009-11-19 Thread valdhor
You need to read the section titled Summary and Background.

In that section it states Cascading Style Sheets (CSS) are used in Flex to 
apply styles to visual components on the application display list. To-date 
we've supported simple type selectors and universal class selectors. Customers 
have requested more advanced CSS selectors and in Gumbo we plan to provide two 
new selector types - id selectors and descendant selectors - as well as fix 
class selectors so that they can be a condition of type selectors.

Now that you know ID selectors will be added in Gumbo you can do a Google 
search on Flex Gumbo and find out that Gumbo is the code name for the next 
version of Flex (ie. Flex 4/Flash Builder 4). Gumbo was defined in July 2008 
and the first Beta was available in June 2009.

If you wish to use ID selectors you can download the Flex 4 SDK and target 
Flash Player 10.

--- In flexcoders@yahoogroups.com, Joel Stransky stranskydes...@... wrote:

 I'm using 3.4
 That article I linked to was last edited april 4th 2009. I'm new to flex so
 I just assumed that was an accurate spec.
 
 On Thu, Nov 19, 2009 at 9:36 AM, valdhor valdhorli...@...wrote:
 
 
 
  What version of the SDK are you using?
 
  From what I can ascertain, ID selectors are new as of FB4.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Joel
  Stransky stranskydesign@ wrote:
  
   How is it that this page claims id selectors are valid yet Flex Builder
   balks when I try to use them?
   http://opensource.adobe.com/wiki/display/flexsdk/CSS+Advanced+Selectors
  
   According to the article, I should be able to do this.
   in HelloFlex.mxml
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Canvas id=theCanvas /
   /mx:Application
  
   in HelloFlex.css
   #theCanvas{}
  
   What gives?
  
   --
   --Joel Stransky
   stranskydesign.com
  
 
   
 
 
 
 
 -- 
 --Joel Stransky
 stranskydesign.com





[SPAM] Re: [flexcoders] Passing an object to a rendererProvider

2009-11-19 Thread droponrcll


--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 Tracy,
 
  I understood from the original e-mail that he was using a component as 
 an itemRenderer.  If his 'item object' is being used an itemRenderer he 
 would have to create numerous mods to the list based classes to pass in 
 properties other than data or listData. 

That's what styleFunction on ADG is for.  And why the Data Visualization 
Components take things that would be properties on other components (like 
dataProvider) as styles.



[flexcoders] Re: Copy or enumerate a CSSStyleDeclaration? (Flex 3.4)

2009-11-19 Thread graham.t...@rocketmail.com

How did you resolve this without access to the protected 
CSSStyleDeclaration.overrides property?


--- In flexcoders@yahoogroups.com, droponrcll amyblankens...@... wrote:

 
 
 --- In flexcoders@yahoogroups.com, droponrcll amyblankenship@ wrote:
 
  I have a custom class that extends Canvas.  I'd like this class to have the 
  default styles used by Canvas, plus my own default styles.  So I want to 
  get the Canvas CSSStyleDeclaration and copy its properties to a new 
  CSSStyleDeclaration used by my own component (then add my own stuff).
  
  I can't see a way to walk through the CSSStyleDeclaration and copy its 
  properties or to separate out the instance so I don't affect all Canvases 
  in the project.
 
 Never mind.  Found it in the code to CSSStyleDeclaration.





[flexcoders] Re: Wonky alignment in mx:htmlText property (Flex 3)

2009-11-19 Thread Amy


--- In flexcoders@yahoogroups.com, droponrcll amyblankens...@... wrote:

 I think the MXML is more readable for a TextArea if you use the mx:htmlText 
 property, but I found that I got a giant left indent on the first line and 
 unexpected line breaks in the TextArea (with a giant indent again) when I 
 used it, whether I included any markup in the property or not.  If I use the 
 inline htmlText attribute, everything works fine.
 
 Why is there a difference, and has anyone found a workaround?  I tried 
 setting XML.ignoreWhitespace, XML.prettyIndent, etc., but nothing helped.

Thanks, everyone, for the flood of responses on this one ;-).

I figured out that if I took out the CDATA stuff that gets dumped in there by 
Flex Builder, the wonky alignment doesn't happen.  You have to escape special 
characters to have them read as markup, but I can live with that.

I ask again: does anyone know why this happens?

Thanks;

Amy



[flexcoders] Re: Subclassed DataGridColumn does not render in FB3 design view mode

2009-11-19 Thread Amy


--- In flexcoders@yahoogroups.com, fourctv four...@... wrote:

 Amy,
 
 it is already in a swc library.
 
 what do you mean by 'program for the design time view'?
 all my DGC subclass does is add a couple extra properties. no changes or 
 overrides of any sort.
 
 tia
 julio

http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/9/Ah-design-view
http://tv.adobe.com/watch/adc-presents/create-live-previews-for-custom-components-in-flex/

HTH;

Amy



[flexcoders] ASDoc MXML

2009-11-19 Thread Amy
When you give a component defined in MXML an ID, you essentially make it a 
public property of your component, so I want to document all of these 
properties.  Unfortunatley, I'm not sure how to inline ASDOC comments on them.

Has anyone done this before?

TIA;

Amy



[flexcoders] Re: Copy or enumerate a CSSStyleDeclaration? (Flex 3.4)

2009-11-19 Thread Amy


--- In flexcoders@yahoogroups.com, graham.t...@... tony.gra...@... wrote:

 
 How did you resolve this without access to the protected 
 CSSStyleDeclaration.overrides property?

IIRC, if you look at the code to CSSStyleDeclaration, you can see how to use 
the factory property to create an object that has the properties that are set 
up by the aggregate of the style declarations that refer to your component in 
some way.

Note that the defaultFactory you see in the help examples is NOT what you want 
to look at.  defaultFactory is the css properties that get attached to an 
instance defined in MXML in the faux attributes that point to style properties.

BUT...I think I ultimately concluded that the inheritance I was trying to force 
basically just happens automagically, because the code I worked out isn't in 
the project anymore :)

HTH;

Amy



[flexcoders] flex 3 builder project setting with server on another box

2009-11-19 Thread flexdev
I have a livecyle DS (or BlazeDS) server which is different from my workstation 
where I am writing flex codes using flex builder 3. When creating a new flex 3 
project, I need to specify Root folder/Root URL/Context root in Configure J2EE 
SErver screnn. It seems this screen is always assuming the server is runing on 
the same box as the workstation I am writing flex code. Is it the case? Or is 
possible  to develop flex apps where the server is located on another box?



[flexcoders] Re: ASDoc MXML

2009-11-19 Thread turbo_vb
Three dashes for the comment:
!--- The class level comment for the component. This tag
supports all ASDoc tags, and does not require a CDATA block. --
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;-TH--- In
flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 When you give a component defined in MXML an ID, you essentially make
it a public property of your component, so I want to document all of
these properties.  Unfortunatley, I'm not sure how to inline ASDOC
comments on them.

 Has anyone done this before?

 TIA;

 Amy




Re: [flexcoders] Re: id css selectors

2009-11-19 Thread Joel Stransky
Thank you for the clarification.

On Thu, Nov 19, 2009 at 2:00 PM, valdhor valdhorli...@embarqmail.comwrote:



 You need to read the section titled Summary and Background.

 In that section it states Cascading Style Sheets (CSS) are used in Flex to
 apply styles to visual components on the application display list. To-date
 we've supported simple type selectors and universal class selectors.
 Customers have requested more advanced CSS selectors and in Gumbo we plan to
 provide two new selector types - id selectors and descendant selectors - as
 well as fix class selectors so that they can be a condition of type
 selectors.

 Now that you know ID selectors will be added in Gumbo you can do a Google
 search on Flex Gumbo and find out that Gumbo is the code name for the next
 version of Flex (ie. Flex 4/Flash Builder 4). Gumbo was defined in July 2008
 and the first Beta was available in June 2009.

 If you wish to use ID selectors you can download the Flex 4 SDK and target
 Flash Player 10.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Joel
 Stransky stranskydes...@... wrote:
 
  I'm using 3.4
  That article I linked to was last edited april 4th 2009. I'm new to flex
 so
  I just assumed that was an accurate spec.
 
  On Thu, Nov 19, 2009 at 9:36 AM, valdhor valdhorli...@...wrote:

 
  
  
   What version of the SDK are you using?
  
   From what I can ascertain, ID selectors are new as of FB4.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Joel

   Stransky stranskydesign@ wrote:
   
How is it that this page claims id selectors are valid yet Flex
 Builder
balks when I try to use them?
   
 http://opensource.adobe.com/wiki/display/flexsdk/CSS+Advanced+Selectors
   
According to the article, I should be able to do this.
in HelloFlex.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Canvas id=theCanvas /
/mx:Application
   
in HelloFlex.css
#theCanvas{}
   
What gives?
   
--
--Joel Stransky
stranskydesign.com
   
  
  
  
 
 
 
  --
  --Joel Stransky
  stranskydesign.com
 

  




-- 
--Joel Stransky
stranskydesign.com


[flexcoders] combining multiple styles

2009-11-19 Thread Joel Stransky
In a Flex .css document, is there any shorthand for using the same value on
multiple styles?
For instance:

.leftTab{
  selectedUpSkin, selectedOverSkin, selectedDownSkin:
Embed(source=myImage.png);
}

-- 
--Joel Stransky
stranskydesign.com


[flexcoders] How to tell when column visiblity change is done?

2009-11-19 Thread tntomek
I have a datagrid with a lot of columns. Sometimes I may hide/show 20 of those 
at a time, this takes up a few seconds and I'd like to give the user some 
feedback when its ready. Is there any way to get visibilityChanged event or 
something along these lines? 

If there is no solution like this and I need to poll the datagrid to check real 
visibility not the dumb visible property of a column where would I look and 
what would I check?



[flexcoders] Re: ASDoc MXML

2009-11-19 Thread Amy


--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 Three dashes for the comment:
 !--- The class level comment for the component. This tag
 supports all ASDoc tags, and does not require a CDATA block. --
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;-TH--- In
 flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
 
  When you give a component defined in MXML an ID, you essentially make
 it a public property of your component, so I want to document all of
 these properties.  Unfortunatley, I'm not sure how to inline ASDOC
 comments on them.
 
  Has anyone done this before?

Thank you!

Where did you find this?

-Amy



[flexcoders] Re: ASDoc MXML

2009-11-19 Thread turbo_vb
Google: Flex ASDocs MXML

-TH

--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 
 
 --- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
 
  Three dashes for the comment:
  !--- The class level comment for the component. This tag
  supports all ASDoc tags, and does not require a CDATA block. --
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;-TH--- In
  flexcoders@yahoogroups.com, Amy amyblankenship@ wrote:
  
   When you give a component defined in MXML an ID, you essentially make
  it a public property of your component, so I want to document all of
  these properties.  Unfortunatley, I'm not sure how to inline ASDOC
  comments on them.
  
   Has anyone done this before?
 
 Thank you!
 
 Where did you find this?
 
 -Amy





[flexcoders] Re: How to tell when column visiblity change is done?

2009-11-19 Thread turbo_vb
You could extent DataGridColumn and add two methods.  One to set the visible 
property to false and dispatch a hide event, and the other to set the visible 
property to true and dispatch a show event.

-TH

--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote:

 I have a datagrid with a lot of columns. Sometimes I may hide/show 20 of 
 those at a time, this takes up a few seconds and I'd like to give the user 
 some feedback when its ready. Is there any way to get visibilityChanged 
 event or something along these lines? 
 
 If there is no solution like this and I need to poll the datagrid to check 
 real visibility not the dumb visible property of a column where would I 
 look and what would I check?





[flexcoders] Best Pattern for a Complex Application Options/Settings Box

2009-11-19 Thread steveb805
On the verge of creating a non-Trivial Dialog screen/box for my app where a 
User creates categories, chooses settings (warn when deleting), Default 
behaviour, etc...

It'll have 3 tabs.  I'll be pulling the settings from a MySql Options table.

Is it common practice, even for Complex dialog's, to:

  - just use the usual TitleWindow with createPopup, which is commonly used for 
more trivial input your name stuff ?

  - *not* pull the SQL data from the Options table, until a user actually 
launches open the Dialog Box.  ( It's possible to, on App init(), to load the 
data into an array, so that the dialog opens quicker, but a user may use the 
Settings module once every 5 uses of the App )

Steve

  





[flexcoders] Flex SDK Open Source

2009-11-19 Thread cuttenv
Hey guys,
Can anyone browse the source for the flex sdk on adobe's site?
http://opensource.adobe.com:81/svn/opensource/flex/sdk/

I followed the link from the confluence site:
http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code



[flexcoders] Re: Flex SDK Open Source

2009-11-19 Thread steveb805
No, I get a Oops! This link appears to be broken. message (chrome)

--- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote:

 Hey guys,
 Can anyone browse the source for the flex sdk on adobe's site?
 http://opensource.adobe.com:81/svn/opensource/flex/sdk/
 
 I followed the link from the confluence site:
 http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code





[flexcoders] Re: Flex SDK Open Source

2009-11-19 Thread cuttenv
yah it's been like this for a couple days. I guess I'll try using svn later 
tonight

--- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote:

 No, I get a Oops! This link appears to be broken. message (chrome)
 
 --- In flexcoders@yahoogroups.com, cuttenv cuttenv@ wrote:
 
  Hey guys,
  Can anyone browse the source for the flex sdk on adobe's site?
  http://opensource.adobe.com:81/svn/opensource/flex/sdk/
  
  I followed the link from the confluence site:
  http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code
 





Re: [flexcoders] Re: Flex SDK Open Source

2009-11-19 Thread Matt Chotin
When we upgraded to Subversion 1.6 I think the nice web viewer broke.  We're 
looking at getting that rebuilt for the newer Subversion but it's going to take 
our IT folks a while since they're swamped with other things.  Might be worth 
getting an SVN client that can browse the repository.

You can still view on port 80 though: 
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/

Matt

On Nov 19, 2009, at 5:25 PM, cuttenv wrote:

 yah it's been like this for a couple days. I guess I'll try using svn later 
 tonight
 
 --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote:
 
  No, I get a Oops! This link appears to be broken. message (chrome)
  
  --- In flexcoders@yahoogroups.com, cuttenv cuttenv@ wrote:
  
   Hey guys,
   Can anyone browse the source for the flex sdk on adobe's site?
   http://opensource.adobe.com:81/svn/opensource/flex/sdk/
   
   I followed the link from the confluence site:
   http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code
  
 
 
 





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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
flexcoders-dig...@yahoogroups.com 
flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



[flexcoders] Re: Installed Flash Player Is Not a Debugger

2009-11-19 Thread cuttenv
If it happens again I recommend first downloading the flash player uninstaller. 
Then uninstall flash player and reinstall the most recent version. This way you 
have a fresh install of the flash player. 

--- In flexcoders@yahoogroups.com, Joel Stransky stranskydes...@... wrote:

 Everytime I debug in Flex Builder I get this alert box.
 
 /Library/Internet Plug-Ins/Flash Player.plugin
 
 Flex Builder cannot locate the required debugger version of Flash Player.
 You might need to install the debugger version of Flash Player 9 or
 reinstall Flex Builder.
 
 Do you want to try to debug with the current version?
 
 But I have FP10 debugger installed. I'm using OSX Snow Leopard.
 How do I fix this?
 
 -- 
 --Joel Stransky
 stranskydesign.com





[flexcoders] Validation Error !!!!

2009-11-19 Thread criptopus
I have a custom mxml component that is added using a popUpManager in the 
component which is a TitleWindow sits a Form and when I try to add a Validator 
to the form i get this compile error.

Component declarations are not allowed here. (Note: visual children must 
implement mx.core.IUIComponent)

Experimental/src/comps  Register.mxml   line 12 1258681868656   84

Anybody got any clue whats going on?



[flexcoders] Re: How to tell when column visiblity change is done?

2009-11-19 Thread tntomek


--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 You could extent DataGridColumn and add two methods.  One to set the visible 
 property to false and dispatch a hide event, and the other to set the visible 
 property to true and dispatch a show event.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, tntomek tntomek@ wrote:
 
  I have a datagrid with a lot of columns. Sometimes I may hide/show 20 of 
  those at a time, this takes up a few seconds and I'd like to give the user 
  some feedback when its ready. Is there any way to get visibilityChanged 
  event or something along these lines? 
  
  If there is no solution like this and I need to poll the datagrid to check 
  real visibility not the dumb visible property of a column where would I 
  look and what would I check?
 



The issue is that the visible property is immediately set, its just a dumb 
bool, I want to know when the grid has actually done the show/hide.




RE: [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-19 Thread Tracy Spratt
If you have a case that works and one that doesn't, start changing the one
that works into the one that does not, one piece at a time, until it breaks.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Daniel Freiman
Sent: Thursday, November 19, 2009 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x
error

 

  

Ok, that fixes the problem, but it doesn't explain why the problem was
happening in the first place.  Or it doesn't explain why the first three
examples ever worked.  Nowhere in my application did I ever define a default
namespace.  In all 4 cases when I trace data.namespace().uri I get
http://www.w3. http://www.w3.org/2000/svg org/2000/svg regardless of
whether I do the trace before or after setting the default namespace.

Is this a bug?  I'm running the exact same line of code each time.  The only
thing I can think of is that the source of the XML is different.  The first
3 are created through deserialization from the server.  The 4th is just the
normal XML constructor. I do see why this would matter.

- Daniel Freiman

On Thu, Nov 19, 2009 at 12:55 AM, Tracy Spratt tr...@nts3rd.
mailto:tr...@nts3rd.com com wrote:

  

This declaration, xmlns=http://www.w3. http://www.w3.org/2000/svg
org/2000/svg sets the default namespace that is appended to every node
name that is not qualified by some other namespace.  Unless you declare it
in AS, you will not be able to access nodes like data.

 

Try this declaration, at instance (global) level scope:

default xml namespace = http://www.w3. http://www.w3.org/2000/svg
org/2000/svg; 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Daniel Freiman
Sent: Thursday, November 19, 2009 12:42 AM
To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

 

  

I think I tried that already but I'll double check in the morning.

Based on the XML and the code, isn't the default namespace already defined
and shouldn't e4x be already using it?

- Daniel Freiman

On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt tr...@nts3rd.
mailto:tr...@nts3rd.com com wrote:

  

What happens if you declare the default namespace, then do:

 

data.pa...@d

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Daniel Freiman
Sent: Wednesday, November 18, 2009 8:37 PM
To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

 

  

I've stated the symptom.  As you can see in the given XML, there is a child
named path. So I should be getting value for that code instead of a null
error.  I don't know why it's not picking it up.  My best guess is that it
is because of namespaces, but I can't see a differences between the XML
objects that this code works for, and the one it doesn't work for.  The
[0] should be optional (at least relative to getting a null value or not).
I'm not sure how else to state my goal other than how the expression is
already written.  I want the d attribute of the path child and I want it
to work for all of the cases I've supplied or find the reason why it's not
working so I can fix the last case.  Right now it is only working for 3 out
of 4.

- Daniel Freiman

On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt tr...@nts3rd.
mailto:tr...@nts3rd.com com wrote:

  

Didn't you state the problem yourself?  With an expression:

data.path[...@d[0]

If there is no path[0], then you would expect the error.

 

Why are you using the [0] syntax?  Is it because of the namespaces?  What is
the actual goal of your expression?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com] On
Behalf Of Daniel Freiman
Sent: Wednesday, November 18, 2009 3:53 PM
To: flexcod...@yahoogro mailto:flexcoders@yahoogroups.com ups.com
Subject: [SPAM] Re: [flexcoders] XML e4x error

 

  

I've tried that previously.  There wasn't any difference, which should be
expected given the request path.

- Daniel Freiman

On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear invertedspear@
mailto:invertedsp...@yahoo.com yahoo.com wrote:

  


The only thing I can see in the one that is giving you a problem is
different
from the others is there is a text / tag. The one above it has a
text/text pair. This could be being read as a null text instead of a 0
length string. Try changing that and let us know.

RE: [SPAM] [flexcoders] Re: how to insert checkbox value into database

2009-11-19 Thread Tracy Spratt
Sorry I don't know CF and it has been 20 years since I did any Access.  But
I suspect a data type problem.  Exactly what is a yes/no field looking
for?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, November 19, 2009 10:03 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Re: how to insert checkbox value into database

 

  

here is were it fails in my cfc i have the following

cfargument name=pool type=boolean required=no/

INSERT INTO homes(pool)
VALUES(#arguments.pool#)

the column in the table is pool and the id of the check box in the flex ui
is also pool. in flex i have the following

mx:RemoteObject id=listManager destination=ColdFusion
source=App.src.cfcs.Maintenance showBusyCursor=true
mx:method name=listProperty result=handleStringResult(event)
fault=mx.controls.Alert.show(event.fault.faultString)/
/mx:RemoteObject

private function insertHandler():void{
listManager.listProperty(pool.selected); 
}

when i try to insert it gives error: cant execute query. any thoughts on
what i can do to insert the value of the check box into the database. by the
way the datatype of pool in database table is yes/no. am using access.
thanks





[SPAM] [flexcoders] Re: how to insert checkbox value into database

2009-11-19 Thread stinasius
yes/no is looking for a boolean value. when the checkbox in the flex ui is 
checked the value recorded in database is yes but remember yes/no in access is 
a checkbox in the database column so if in the flex ui the checkbox is checked 
then the checkbox is also checked in the access table and if its not checked in 
the flex ui then the same in access table.



RE: [flexcoders] Re: how to enable stack traceback?

2009-11-19 Thread Alex Harui
I'm running both 9 and 10 on Windows.  When you run without the debugger could 
you be launching a different player?  Try displaying Capabilites.version and 
isDebugger.  Could be a Mac thing.  I don't have a Mac.

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 mitchgrrt
Sent: Thursday, November 19, 2009 4:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to enable stack traceback?



Yes I did try a simple case. I put some code that causes a null pointer 
exception into a screen's onCreationComplete handler. I see the traceback 
inside the debugger but nothing when running the program without the debugger.

There seems to be a lot of confusion about this issue, and also just about the 
terminology to talk about it. I wonder if it's really just a Mac vs. Windows 
issue? In other kinds of software development it's common to see differences 
across platforms, but it's much less common with Flex.

What version of the Flash player are you running? I was thinking maybe it was 
something that worked with version 9 and got broken with version 10.

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

 If you have a debugger player you should be seeing the exception dialog 
 whether you are in the debugger or not. I still do on Windows. I don't have a 
 Mac to try it. Did you try a simple test case?

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



RE: [flexcoders] Re: Constraining the DragManager

2009-11-19 Thread Alex Harui
The DragProxy listens for the mouse in capture phase so it beats out any target 
phase listener no matter what the priority.  I would think you would want to be 
last though, and shove the dragIndicator after the DragProxy logic tries to 
move it where you don't want it.

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 cuttenv
Sent: Thursday, November 19, 2009 12:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Constraining the DragManager



Hey Alex,
That doesn't work. Grabbing the cursor from the system manager and then setting 
it's x value to a constant does indeed keep the cursor on a vertical line but 
the problem is then the drag proxy image is following your old mouse position 
(looks somewhat ghost like :).

I then tried accessing the drag proxy directly by grabbing it from the system 
manager and setting the x, to no avail. The problem is that the drag proxy's 
mouse move event fires before the one I added even when I set the priority to 
1. I think it has to do something with DragProxy having an [Excluded] meta 
tag. There were even some comments in that class mentioning that the developer 
was having some troubles.

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

 No, I would go to systemManager.cursorChildren. There should be one child and 
 moving it or its child (which should be the actual cursor) should be what you 
 want to do.

 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 cuttenv
 Sent: Tuesday, November 17, 2009 4:15 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Constraining the DragManager



 How would you go about getting the drag cursor? by accessing the 
 cursormanager?

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  No APIs for doing that with DragManager. Maybe there is some way to find 
  the dragcursor and move it to where you want it.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of cuttenv
  Sent: Monday, November 16, 2009 8:04 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Constraining the DragManager
 
 
 
  Is it even possible to constrain the DragManager in flex to vertical 
  movement only?? I have tried just about everything I can think of to no 
  avail. I guess I could use the startDrag() and stopDrag() methods. It just 
  seems like there should be a way. Any ideas?