Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Muzak
I tested the code before, without the validateNow on the the text instance, so 
that wasn't bothering me.

When you call validateNow() on the application I guess you get the same result 
as with callLater() because validateNow() takes 'a 
frame' to execute, thus the code after that (the debug text) is 
delayed/executed later. Hope that makes sense..

I understand what you mean by things being different in Flex, but I think 
that's not really relevant here.
The thing is that text properties do not have the 'correct' value immediatly 
when added to the display list through actionscript.

regards,
Muzak

- Original Message - 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 6:54 AM
Subject: Re: [flexcoders] UIComponent.width is always 0


 Nope, it doesn't. It returns 0.
 If you use callLater, all values are returned correctly.

 Hi, I didn't test the example and what I wrote is correct theory. ... now I
 have.

 Really I have made some very complicated stuff with components and have
 never had to use 'callLater()'.

 The problem is he is calling validateNow() on the text.

 change

 textViaAS.validateNow(); // really just for kicks, it doesn't

 to

 validateNow(); // really just for kicks, it doesn't

 and you will see the trace

 nulltextViaMXML.width = 255
 textViaMXML.measuredWidth = 255
 textViaMXML.textWidth = 97
 textViaAS.width = 306
 textViaAS.measuredWidth = 306
 textViaAS.textWidth = 97

 This is becasue you are now calling validateNow() on the Application
 component.

 Anyway, what he is doing is going against the grain. I don't think he fully
 understands what 'width' is. In this case measuredWidth IS the width since
 you didn't explictly call width.

 The ONLY reason width is even set in the 'callLater()' pass is becasue the
 Application set the width in it's setActualSize() call ON the Text component
 by USING the Text component's measuredWidth property. ;-)

 :) This takes a little mind bending to understand. width property doens not
 always mean something. It depends on the contenxt metrics of the component's
 state.

 Peace, Mike

 PS Everything is working the way it is supposed to, again, width is not
 'god' anymore. measuredWidth is.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] Retrieving embed variables ...

2006-09-02 Thread Abdul Qabiz



use _mx.core.Application.application.parameters.myVar You can pass vars to Flex2 app in two ways:-1) Query string2) Flash VarsSince Flex 2 apps are mostly pre-compiled and deployed as SWF, unless you have Flex2
server running. FlashVars is the most common way to pass name-value pairs through html wrapper..-abdulOn 9/2/06, Kyle 
[EMAIL PROTECTED] wrote:












  



Does anyone know how to retrieve variables from the embed tag from
within your flex app? With flash you can simply use _root.myVar and
access the variable if it is passed in through the embed, this doesn't
seem to work in flex.. 

Thanks!

-Kyle


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] mxmlc -increment not working.

2006-09-02 Thread Abdul Qabiz



Delete the cache file and recompile with -increment... Not sure what is exact reason, but guessing cache file is outdated ?-abdulOn 9/2/06, 
Lance Linder [EMAIL PROTECTED] wrote:













  













I am getting the following message from
the MXMLC compiler when calling it from NAnt using the –increment parameter.



"[exec] Failed to match the compile
target with myApp_411843.cache. The cache file will not be reused."



I don' t see any reason why this
wouldn't work if I run multiple compiles back to back using the –increment
parameter and I don't even change any code.



I do see _x.cache files showing up but
as you can see the compiler refuses to use them.



Any ideas?








  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] NumericStepper, Custom Format

2006-09-02 Thread Abdul Qabiz



I don't think that is supportedi n NumericStepper. But it would be easy to do, since you code with you now..Look at following functions of mx.controls.NumericStepper class,- checkValidValue (..)- setValue (..)
- takeValueFromTextField (..)You can subclass NumericStepper, override these functions and also add some getters/setters to have custom formatFunction..Basically, you would format (using format function) before showing in NumericStepper. Similarly you would format back the user's input, from Numeric stepper's textfield, to number before any operation (increment, decrement, min/max, range check etc done by Numeric stepper code).
-abdulOn 9/2/06, lostinrecursion [EMAIL PROTECTED] wrote:













  



Forgive me, but I did not see a mention of this in the docs. How can I
apply a Custom Formatter to a NumericStepper component? For example,
displaying currency values instead of integers.

Thanks.
-Kenny


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Finding the root clip + getting the URL

2006-09-02 Thread flex-guitar





Hello 
Daniel,
I 
think you are looking for either parentApplication or parentDocument. These will 
get you access to the parent's scope. mx.core.Application.application will always get you to the top level 
application. 

The help docs can explain usage better than I can. 


Also callLater() might be useful to look into, if you 
run into problems like creationComplete vs. applicationComplete 
again.

HTH,
Derek

-Original Message-From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of 
Daniel WabyickSent: Friday, September 01, 2006 12:20 
PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
Finding the root clip + getting the URL

  
  Thanks John,That definitely works, although I was curious how to do 
  this using non-Flex API calls. I figured out that part of my problem is 
  that at creationComplete(), the Application is not added to the 
  display-list, and thus you can't find out the root or stage. So, I changed 
  the example to applicationComplete, and at that point the stage, 
  root, and loaderInfo objects are defined and you can access 
  them.My next question - how do you find the base URL in a data class 
  with no reference to a DisplayObject? It seems like you need to get access 
  to the global display list, but I am unsure how to do that.Working 
  code to access the url and stage.?xml version="1.0" 
  encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
  layout="absolute" applicationComplete="{ showURL(); 
  }"mx:Script![CDATA[import 
  mx.controls.Alert;private function showURL() : 
  void{Alert.show( "url: " + this.loaderInfo.url + " stage: " + 
  this.stage );}]]/mx:Script 
  /mx:ApplicationJohn Grden wrote: 
  application.url is what you're looking for  Look at 
  mx.core.Application properties  hth,  
  JPG  On 8/31/06, *Daniel Wabyick* [EMAIL PROTECTED]com  
  mailto:[EMAIL PROTECTED]com 
  wrote: I am trying to find the URL in which an application is 
  running. Reading the documentation, I get the impression that 
  I can use the "root" property off on any DisplayObject, and then get 
  the loaderInfo from there. Unfortunately, the root 
  property seems to be null. I must be doing something wrong. Can 
  someone help? ?xml version="1.0" 
  encoding="utf-8"? mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml" 
  layout="absolute" creationComplete="{ showRoot(); }" 
  mx:Script ![CDATA[ import 
  mx.controls.Alert; private function showRoot() : void 
  { Alert.show( "root: " + this.root ); } ]] 
  /mx:Script 
  /mx:Application --  [ 
  JPG ] __ NOD32 1.1735 (20060901) 
  Information __This message was checked by NOD32 antivirus 
  system.http://www.eset.com
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] Flex 2, is here the right place?

2006-09-02 Thread maka3d
Hi flexers!

Is here the right place to ask and discuss Flex 2 and AS 3, or you
people suggest other place?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] Flex 2, is here the right place?

2006-09-02 Thread Paul Andrews
- Original Message - 
From: maka3d [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 1:07 PM
Subject: [flexcoders] Flex 2, is here the right place?


 Hi flexers!
 
 Is here the right place to ask and discuss Flex 2 and AS 3, or you
 people suggest other place?

You won't find much else here.. it is *the* place.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle



Hi,I don't know where this is going but,Really there is no issue here. He wanted width, he got width instantly with measuredWidth., end subject.BTWvalidateNow() instantly validates, no frame pass or anything.
layoutManager.validateClient(this);This just seems to be a theoretical misunderstanding and somehow I think Flash is to blame. :)The question truly becomes, why do you want to know the width 2 lines after you call addChild() when you didn't set it! The measuredWIdth property of the Text component IS the width until you explictly set the width property of the Text component.
This is why in component development, you call composite.getExplicitOrMeasuredWidth(). That method then wraps the decision to either get width or explicitWidth(if have been set by you) OR measured with if those are not set.
Peace, MikePS reread my last two posts, I say the same thing.On 9/2/06, Muzak [EMAIL PROTECTED]
 wrote:












  



I tested the code before, without the validateNow on the the text instance, so that wasn't bothering me.

When you call validateNow() on the application I guess you get the same result as with callLater() because validateNow() takes 'a 
frame' to execute, thus the code after that (the debug text) is delayed/executed later. Hope that makes sense..

I understand what you mean by things being different in Flex, but I think that's not really relevant here.
The thing is that text properties do not have the 'correct' value immediatly when added to the display list through actionscript.

regards,
Muzak

- Original Message - 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 6:54 AM
Subject: Re: [flexcoders] UIComponent.width is always 0

 Nope, it doesn't. It returns 0.
 If you use callLater, all values are returned correctly.

 Hi, I didn't test the example and what I wrote is correct theory. ... now I
 have.

 Really I have made some very complicated stuff with components and have
 never had to use 'callLater()'.

 The problem is he is calling validateNow() on the text.

 change

 textViaAS.validateNow(); // really just for kicks, it doesn't

 to

 validateNow(); // really just for kicks, it doesn't

 and you will see the trace

 nulltextViaMXML.width = 255
 textViaMXML.measuredWidth = 255
 textViaMXML.textWidth = 97
 textViaAS.width = 306
 textViaAS.measuredWidth = 306
 textViaAS.textWidth = 97

 This is becasue you are now calling validateNow() on the Application
 component.

 Anyway, what he is doing is going against the grain. I don't think he fully
 understands what 'width' is. In this case measuredWidth IS the width since
 you didn't explictly call width.

 The ONLY reason width is even set in the 'callLater()' pass is becasue the
 Application set the width in it's setActualSize() call ON the Text component
 by USING the Text component's measuredWidth property. ;-)

 :) This takes a little mind bending to understand. width property doens not
 always mean something. It depends on the contenxt metrics of the component's
 state.

 Peace, Mike

 PS Everything is working the way it is supposed to, again, width is not
 'god' anymore. measuredWidth is.




  













-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] deploying Flex App to the server

2006-09-02 Thread janeminkovich
Hello,

I just wrote my Flex web site, compiled it and it runs quite fine on my 
local machine where I have the development environment.  
Now I am ready to deploy it to the server ( IP provider - 
www.divide0.net).  

I need to know what do I have to install on the IP server in order to 
be able to run my .swf file.

zhenya





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Re: Get result on database insert...

2006-09-02 Thread dinger0007
My 2 cents would be to do the insert and return the ID from the cfc.
This code I borrowed from http://mkruger.cfwebtools.com/ sweet site
with lots of info.

cfquery name=putUser datasource=#dsn#
  SET NOCOUNT ON
 INSERT INTO USERS (username, email)
 VALUES   
(cfqueryparam cfsqltype=CF_SQL_CHAR value=#usersname#,
 cfqueryparam cfsqltype=CF_SQL_CHAR value=#email# )
  SELECT @@Identity AS newId  
  SET NOCOUNT OFF   
   /cfquery

--- In flexcoders@yahoogroups.com, Ken Bromberger [EMAIL PROTECTED] wrote:

 Hi All,
 
  
 
 I have a webservice that returns the new ID for the database as
 a result of a record insert. Is there a way to capture this when the
 webservice inserts the record? I have been looking at the Handling
 result and fault events on live docs but don't quite see how I bind the
 result. Any tips??
 
  
 
 Thanks! - Ken







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] lockedcolumncount

2006-09-02 Thread Nate Hardt
I think locked column count refers to the number of columns to hold  
in place while the rest scroll. I think if you set a width explicitly  
the column will stay that size. What are you trying to do?

On Aug 31, 2006, at 12:47 PM, geiger947 wrote:

 has anyone been able to get the lockedcolumncount to work on a
 datagrid. I have it set, but the columns always resize to fit in the
 width of the grid. Is there some trick to this ?

 There used to be an example on the labs site, but it is gone now.





 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders% 
 40yahoogroups.com
 Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle



If I could just say one more thing here, maybe it would clear up some confussion.In Flash v2, Flex 1.5 you had _width._width was a property of the player that you could not override. Now in AS3, _width has changed to width and the meaning is still the same for DisplayObjects.
width is not the same for the flex framework. Now you can override width and that is what Adobe did, they overrode it and added wrapper proxies to it. They have implemented their own _width property but, that only stores the explicit width set by a client.
width in the flex frameowrk no longer means the actual player width of the DisplayObject now UIComponent. A UIComponent now delegates it's metrics to width, explicitWidth and measuredWidth.This override and new rules are needed to create flexable layouts in the flex framework. Now, width just means 'the client set me to this and don't use me measuredWidth calculated in measure()'
This is a huge problem a lot of developers are dealing with when migrating from as2,Fash, Flex 1.5 to as3 flex framework(UIComponent).So here again, width does not mean width as it pertains to a Sprite. Instead of the Flash player delegating a DisplayObject's dimensions, the flex framework overrides that responsibility.
This is also why anything that has to be added in a container(which all Flex apps are a part of ala Application is the root instance in a Flex2 app) has to implement IFlexDisplayObject.The theory here is that IFlexDisplayObject then adds the needed measuredWidth, explicitWidth for a capable component to have itself perform the needed calculations for proper display in a Container, not Sprite.
I have written a lot about this and a huge book is coming on my web site talking about all this.Peace, MikeOn 9/2/06, Michael Schmalle
 [EMAIL PROTECTED] wrote:
Hi,I don't know where this is going but,Really there is no issue here. He wanted width, he got width instantly with measuredWidth., end subject.BTWvalidateNow() instantly validates, no frame pass or anything.
layoutManager.validateClient(this);This just seems to be a theoretical misunderstanding and somehow I think Flash is to blame. :)The question truly becomes, why do you want to know the width 2 lines after you call addChild() when you didn't set it! The measuredWIdth property of the Text component IS the width until you explictly set the width property of the Text component.
This is why in component development, you call composite.getExplicitOrMeasuredWidth(). That method then wraps the decision to either get width or explicitWidth(if have been set by you) OR measured with if those are not set.
Peace, MikePS reread my last two posts, I say the same thing.On 9/2/06, Muzak 
[EMAIL PROTECTED]
 wrote:












  



I tested the code before, without the validateNow on the the text instance, so that wasn't bothering me.

When you call validateNow() on the application I guess you get the same result as with callLater() because validateNow() takes 'a 
frame' to execute, thus the code after that (the debug text) is delayed/executed later. Hope that makes sense..

I understand what you mean by things being different in Flex, but I think that's not really relevant here.
The thing is that text properties do not have the 'correct' value immediatly when added to the display list through actionscript.

regards,
Muzak

- Original Message - 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 6:54 AM
Subject: Re: [flexcoders] UIComponent.width is always 0

 Nope, it doesn't. It returns 0.
 If you use callLater, all values are returned correctly.

 Hi, I didn't test the example and what I wrote is correct theory. ... now I
 have.

 Really I have made some very complicated stuff with components and have
 never had to use 'callLater()'.

 The problem is he is calling validateNow() on the text.

 change

 textViaAS.validateNow(); // really just for kicks, it doesn't

 to

 validateNow(); // really just for kicks, it doesn't

 and you will see the trace

 nulltextViaMXML.width = 255
 textViaMXML.measuredWidth = 255
 textViaMXML.textWidth = 97
 textViaAS.width = 306
 textViaAS.measuredWidth = 306
 textViaAS.textWidth = 97

 This is becasue you are now calling validateNow() on the Application
 component.

 Anyway, what he is doing is going against the grain. I don't think he fully
 understands what 'width' is. In this case measuredWidth IS the width since
 you didn't explictly call width.

 The ONLY reason width is even set in the 'callLater()' pass is becasue the
 Application set the width in it's setActualSize() call ON the Text component
 by USING the Text component's measuredWidth property. ;-)

 :) This takes a little mind bending to understand. width property doens not
 always mean something. It depends on the contenxt metrics of the component's
 state.

 Peace, Mike

 PS Everything is working the way it is supposed to, again, width is not
 'god' anymore. measuredWidth is.


Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle



Haha, just adding fuel to the fire but,To make things even more crazy;-) When you set percentWidth to anything above 0, the witdth property of a UIComponent then becomes NaN. I think this proves the theory of what I am saying.
Peace, MikeOn 9/2/06, Michael Schmalle [EMAIL PROTECTED] wrote:
If I could just say one more thing here, maybe it would clear up some confussion.In Flash v2, Flex 1.5 you had _width._width was a property of the player that you could not override. Now in AS3, _width has changed to width and the meaning is still the same for DisplayObjects.
width is not the same for the flex framework. Now you can override width and that is what Adobe did, they overrode it and added wrapper proxies to it. They have implemented their own _width property but, that only stores the explicit width set by a client.
width in the flex frameowrk no longer means the actual player width of the DisplayObject now UIComponent. A UIComponent now delegates it's metrics to width, explicitWidth and measuredWidth.This override and new rules are needed to create flexable layouts in the flex framework. Now, width just means 'the client set me to this and don't use me measuredWidth calculated in measure()'
This is a huge problem a lot of developers are dealing with when migrating from as2,Fash, Flex 1.5 to as3 flex framework(UIComponent).So here again, width does not mean width as it pertains to a Sprite. Instead of the Flash player delegating a DisplayObject's dimensions, the flex framework overrides that responsibility.
This is also why anything that has to be added in a container(which all Flex apps are a part of ala Application is the root instance in a Flex2 app) has to implement IFlexDisplayObject.The theory here is that IFlexDisplayObject then adds the needed measuredWidth, explicitWidth for a capable component to have itself perform the needed calculations for proper display in a Container, not Sprite.
I have written a lot about this and a huge book is coming on my web site talking about all this.Peace, MikeOn 9/2/06, 
Michael Schmalle
 [EMAIL PROTECTED] wrote:

Hi,I don't know where this is going but,Really there is no issue here. He wanted width, he got width instantly with measuredWidth., end subject.BTWvalidateNow() instantly validates, no frame pass or anything.
layoutManager.validateClient(this);This just seems to be a theoretical misunderstanding and somehow I think Flash is to blame. :)The question truly becomes, why do you want to know the width 2 lines after you call addChild() when you didn't set it! The measuredWIdth property of the Text component IS the width until you explictly set the width property of the Text component.
This is why in component development, you call composite.getExplicitOrMeasuredWidth(). That method then wraps the decision to either get width or explicitWidth(if have been set by you) OR measured with if those are not set.
Peace, MikePS reread my last two posts, I say the same thing.On 9/2/06, Muzak 

[EMAIL PROTECTED]
 wrote:












  



I tested the code before, without the validateNow on the the text instance, so that wasn't bothering me.

When you call validateNow() on the application I guess you get the same result as with callLater() because validateNow() takes 'a 
frame' to execute, thus the code after that (the debug text) is delayed/executed later. Hope that makes sense..

I understand what you mean by things being different in Flex, but I think that's not really relevant here.
The thing is that text properties do not have the 'correct' value immediatly when added to the display list through actionscript.

regards,
Muzak

- Original Message - 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 6:54 AM
Subject: Re: [flexcoders] UIComponent.width is always 0

 Nope, it doesn't. It returns 0.
 If you use callLater, all values are returned correctly.

 Hi, I didn't test the example and what I wrote is correct theory. ... now I
 have.

 Really I have made some very complicated stuff with components and have
 never had to use 'callLater()'.

 The problem is he is calling validateNow() on the text.

 change

 textViaAS.validateNow(); // really just for kicks, it doesn't

 to

 validateNow(); // really just for kicks, it doesn't

 and you will see the trace

 nulltextViaMXML.width = 255
 textViaMXML.measuredWidth = 255
 textViaMXML.textWidth = 97
 textViaAS.width = 306
 textViaAS.measuredWidth = 306
 textViaAS.textWidth = 97

 This is becasue you are now calling validateNow() on the Application
 component.

 Anyway, what he is doing is going against the grain. I don't think he fully
 understands what 'width' is. In this case measuredWidth IS the width since
 you didn't explictly call width.

 The ONLY reason width is even set in the 'callLater()' pass is becasue the
 Application set the width in it's setActualSize() call ON the Text component
 by USING the Text component's measuredWidth 

Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Muzak

- Original Message - 
From: Michael Schmalle [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, September 02, 2006 2:35 PM
Subject: Re: [flexcoders] UIComponent.width is always 0


 Hi,

 I don't know where this is going but,

 Really there is no issue here. He wanted width, he got width instantly with
 measuredWidth., end subject.

 BTW

 validateNow() instantly validates, no frame pass or anything.


Sorry, that's not correct.. try using a timer..

regards,
Muzak 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Quick Validator Question

2006-09-02 Thread lostinrecursion
Hi all,

I was on lynda.com learning about Validators in Flex. Quick question.
Do I have to create a single validator for each field I want to
validate or can one validator apply to multiple fields? It seems to me
it would get hairy when your dealing with a lot of form fields.

For example, the same StringValidator I use for a phone number would
likely apply to a fax number. But, I notice the source property only
accepts a single value.

Any guidance would be appreciated. Thanks!

-Kenny





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] [ann] WebORB for PHP (with AMF3 support)

2006-09-02 Thread Impudent1
Mark Piller wrote:
 Hi,
 
 We just released WebORB for PHP. The product is free and open-source
 and functions as a remoting gateway for Flex and Flash Remoting
 clients. Flex clients can use the RemoteObject API (or
 mx:RemoteObject) to connect to the deployed PHP classes. Check out the
 product page at:
 
 http://www.themidnightcoders.com/weborb/php
 
 Cheers,
 Mark

Thanks for the headsup :)

I just wanted to pass along that people really should update their php 
first. I kept getting send failed error messages and could not figure it 
out. Then I updated from php 5.0.5 to the 5.1.6 version and it worked 
just fine.

Impudent1
LeapFrog Productions


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] Is there a new Promo for Flex 2 Total Training

2006-09-02 Thread Manuel Saint-Victor



Good afternoon Flexcoders. I know this is OT but I'm one day late to buy my Total Training. The promo just ran out. Since with these type of sale things there's often another one when one runs out, I wanted to check if anyone was aware of another promo. I'm gonna order mine today either way- but just wanted to check the community for any leads. 
Thanks,Mani-- Manuel Saint-Victor, MDJackson Healthcare SystemDepartment of Psychiatry

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



[flexcoders] removeItemAt(0); only 5 items in my datagrid (please, please, please help)

2006-09-02 Thread tonyx_788
hi all,
since i'm really new in Flex don't know how to do this
what i want is to call removeitem after a 6 item  is added in my
datagrid so it will always have 5  items
and check if there's that item already and remove it and add a new one
at the last row

somebody in this group gave me this code it works fine but after 10
items added in my datagrid it starts to slowdown flash,
cause it just add items doesn't matter if the item was already in
datagrid

import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;
import mx.controls.TextInput
import mx.controls.Alert
import mx.rpc.events.ResultEvent;
import flash.events.MouseEvent;
[Bindable]
private var _xlcdatagrid:XMLListCollection;
[Bindable]
private var _xlcdatagrid2:XMLListCollection = new XMLListCollection;

private function onResult(oEvent:ResultEvent):void
{
_xlcdatagrid = new XMLListCollection(oEvent.result.name)
datagrid.dataProvider = _xlcdatagrid;
}
private function selectItem():void
{
_xlcdatagrid2.addItem(datagrid.selectedItem);
}
**removeitem
public function removeItem():void
 {
 _xlcdatagrid2.removeItemAt(0);
 }


***

thank u all!






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




[flexcoders] Adobe at IBC

2006-09-02 Thread Weyert de Boer
Does anyone know which Adobe people will go to IBC?

Yours,
Weyert


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] deploying Flex App to the server

2006-09-02 Thread Hasan Otuome






Hey zhenya,

You can upload the contents of your bin directory to your server and
you should be good to go. HTH...

P E A C E

Hasan
hasan.otuome.com
www.marxmedia.net
thesourcecode.org
Adobe Certified Professional (Flash MX2004 Developer) 

janeminkovich wrote:

  
  
  
  
  Hello,
  
I just wrote my Flex web site, compiled it and it runs quite fine on my
  
local machine where I have the development environment. 
Now I am ready to deploy it to the server ( IP provider - 
www.divide0. net). 
  
I need to know what do I have to install on the IP server in order to 
be able to run my .swf file.
  
zhenya
  
  
  
  
  

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___




[flexcoders] Re: Flex 2, is here the right place?

2006-09-02 Thread dinger0007
You are definatly at the right place.

I would consider the people here the most knowedgable on the net. If
you have a question just search for the answer first then if you don't
find it post your question. 

Welcome!


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

 Hi flexers!
 
 Is here the right place to ask and discuss Flex 2 and AS 3, or you
 people suggest other place?







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





[flexcoders] connection refused with the http service

2006-09-02 Thread zd_khaled
Hi,

I m trying to use the http service to connect to a MySQL server but I
got this error 'HTTPservice Fault:connection refused:connect'
I use the following code:

srv.clearUsernamePassword(root,root);
srv.send(); 

srv is the id of the HTTP service

I tried to connect to the db over the MySQL command line and its work
without any problem.

can you help me please
thanks in advance 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] Is there a new Promo for Flex 2 Total Training

2006-09-02 Thread greg h



Mani,

I assume you are talking about the 20% discount for James Talbot's Total Training DVD for Adobe Flex 2 Rich Internet Applications?

If so, that was 20% off the price of $149 (+shipping), or a $30 discount. 

Following are two other options that are still available, 1 better ($50 off w/ NO shipping), and the other only $20 off.

– $50 off w/ NO Shipping. IF you have academic credentials, the price at AcademicSuperstore.com is $99 w/ free shipping! Note: as the store's
name implies, you will be required to provide verification of your
"academic eligibility".
– $20 off. When ordering direct at TotalTraining.com, you can get a $20
off discount code (good for any order) by providing your email and one
other at: www.totaltraining.com/store/friendforward/forward.asp?f2fpage=/prod/web/flex2_ria.asp

hth,

g

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



Re: [flexcoders] Is there a new Promo for Flex 2 Total Training

2006-09-02 Thread Manuel Saint-Victor



Thanks Greg. I tried it- their server is generating an error message right now but I can wait.ManiOn 9/2/06, greg h 
[EMAIL PROTECTED] wrote:












  



Mani,

I assume you are talking about the 20% discount for James Talbot's Total Training DVD for 
Adobe Flex 2 Rich Internet Applications?

If so, that was 20% off the price of $149 (+shipping), or a $30 discount. 

Following are two other options that are still available, 1 better ($50 off w/ NO shipping), and the other only $20 off.

– $50 off w/ NO Shipping. IF you have academic credentials, the price at AcademicSuperstore.com is $99 w/ free shipping! Note: as the store's
name implies, you will be required to provide verification of your
academic eligibility.
– $20 off. When ordering direct at TotalTraining.com, you can get a $20
off discount code (good for any order) by providing your email and one
other at: www.totaltraining.com/store/friendforward/forward.asp?f2fpage=/prod/web/flex2_ria.asp

hth,

g

  













-- Manuel Saint-Victor, MDJackson Healthcare SystemDepartment of Psychiatry

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___



RE: [flexcoders] Adobe at IBC

2006-09-02 Thread David Mendels
Hi,

I can't say off the top of my head, but we do have a booth there and
there will be folks both from Adobe Europe and from HQ.

I expect our main representation will be from teams associated with our
video products: Flash Media Server, Video Production Suite, and of
course, Flash authoring as well.  I don't expect there will be anyone
there from the Flex team.

Regards,
David
Adobe

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Weyert de Boer
Sent: Saturday, September 02, 2006 3:51 PM
To: Flashcoders mailing list; flexcoders@yahoogroups.com
Subject: [flexcoders]  Adobe at IBC

Does anyone know which Adobe people will go to IBC?

Yours,
Weyert


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] Re: How to parse web services response doc containing namespace

2006-09-02 Thread James Ward
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just ran into this problem too.  And unfortunately this post was quite
a while ago and I can't seem to find an answer...  But I did find a
workaround.  It's not pretty and it seems there should be a better way.
 But until the better way is found, try something like this:

mx:DataGridColumn dataField=age
  mx:itemRenderer
   mx:Component
 mx:Label text={(data as XML).samples::age}
   mx:Script
 ![CDATA[
   private namespace samples = http://census.samples;;
   use namespace samples;
 ]]
   /mx:Script
 /mx:Label
   /mx:Component
  /mx:itemRenderer
/mx:DataGridColumn

- -James


kevntrace wrote:
 Thanks Derek.  I did read in the docs about declaring a namespace 
 variable - indeed if you look at the code I posted, you will see I 
 did exactly that with a variable named csw.  I also tried 
 referencing the namespace in different ways - using the variable, 
 using wildcards etc.  I still got nothing to work.
 
 Could you take another look at my code and try to put in context how 
 I would declare and use that namespace variable?  Like I said, I am 
 a complete newbie to Flex, and this really is my first ever project 
 and I've had no training.  So I'm not sure the namespace variable 
 I've used is in scope when I'm trying to parse the result document, 
 I'm not sure on how to mix MXML and ActionScript (so just giving me 
 an extract of ActionScript code without showing me how to include it 
 in my MXML doesn't really help too much).  I do appreciate all the 
 responses from everyone though.
 
 
 Excerpt where I declare the namespace var;
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 private namespace csw 
 = http://kevin.company.com/services/webservices/adobe/blogSvc/blogPo
 rt;
 use namespace csw;
 ]]
 /mx:Script
 
 Excerpt where I try to parse out using the namespace (none of these 
 work);
 mx:columns
 mx:DataGridColumn headerText=Top Posts 
 dataField=*::getMostPopularPostsResponse.*::ColumnList.*::row.*::ite
 m/
 mx:DataGridColumn headerText=Clicks 
 dataField=getMostPopularPostsResponse.ColumnList.row.item 
 width=75/
 mx:DataGridColumn headerText=Blah 
 dataField=csw::getMostPopularPostsResponse.csw::ColumnList.csw::row.
 csw::item width=75/
 /mx:columns
 
 
 
 --- In flexcoders@yahoogroups.com, Derek Adams [EMAIL PROTECTED] 
 wrote:
 I have been successful in doing that by declaring the namespace as 
 a 
 local variable in ActionScript, then using it in the e4x query. 
 For 
 instance:

 private var aps:Namespace = new Namespace
 (http://cadtel.com/APWebService;);

 model.currentOrderPaths = 
 results.aps::Order.aps::RelatedPaths.aps::Paths.aps::NetworkPath;

 Hope that helps,
 Derek

 
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE+iVesZ9+wiQzdmARAp2iAJoCskU6Zls3Q04H/YTt/ZvLJ+i6vgCgj0I3
a4nTJOoX/rDlAI5nHY50uz4=
=H9Lx
-END PGP SIGNATURE-


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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