Re: [flexcoders] gloablToLocal , localToGlobal

2006-10-18 Thread learner




yeah
I understand that they return point , a new point which contains modified x,y


Hence we do like :

SomeNewPoint :Point = globalToLocal(oldPoint);

In my problem, my combination of globalToLocal and 
localToGlobal was getting wrong.
what i did is:


desiredPoint = Vboxid.globalToLocal (TemplateArea.localToGlobal (oldPoint))


and it worked. Thanks ! 


Regards,

Ps



On 10/17/06, Gordon Smith [EMAIL PROTECTED] wrote:







Are you aware that globalToLocal() and localToGlobal() don't modify the point you pass in? They return the modified point.

 

- Gordon





From: [EMAIL PROTECTED]
ups.com [mailto:flexcoders@
yahoogroups.com] On Behalf Of learnerSent: Monday, October 16, 2006 1:56 AM
To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] gloablToLocal , localToGlobal







Hello all,



Ihave a application where i have one canvas -- TemplateArea , a Vbox -- Vboxid in TemplateArea and ImageComponent inside that Vboxid


on mouseDownEvent i am drawing the rectangle on Canvas TemplateArea, What i need to do if i have to track the co-ordinates with respect to Vboxid. 


Itried with gloablToLocal and localToGlobal..but not working



Can any one please suggest me what exactllyI need to do?



Regards

Ps.




 

__._,_.___





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

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] gloablToLocal , localToGlobal

2006-10-18 Thread Daniel Freiman



My first guess would be that oldPoint isn't correct. If you're getting the local value from the event.localX make sure that event.localX and event.target is what you expect it to be. If that doesn't work, you can also use 
event.StageX and simply do:desiredpoint = vboxid.globalToLocal(new point(event.stageX,event.stageY));- DanOn 10/18/06, learner 
[EMAIL PROTECTED] wrote:




yeah

I understand that they return point , a new point which contains modified x,y




Hence we do like :



SomeNewPoint :Point = globalToLocal(oldPoint);



In my problem, my combination of globalToLocal and 
localToGlobal was getting wrong.

what i did is:




desiredPoint = Vboxid.globalToLocal (TemplateArea.localToGlobal (oldPoint))




and it worked. Thanks ! 




Regards,


Ps





On 10/17/06, Gordon Smith [EMAIL PROTECTED]
 wrote:







Are you aware that globalToLocal() and localToGlobal() don't modify the point you pass in? They return the modified point.

 

- Gordon





From: [EMAIL PROTECTED]

ups.com [mailto:flexcoders@
yahoogroups.com] On Behalf Of learner
Sent: Monday, October 16, 2006 1:56 AM
To: [EMAIL PROTECTED]ups.comSubject: [flexcoders] gloablToLocal , localToGlobal







Hello all,



Ihave a application where i have one canvas -- TemplateArea , a Vbox -- Vboxid in TemplateArea and ImageComponent inside that Vboxid


on mouseDownEvent i am drawing the rectangle on Canvas TemplateArea, What i need to do if i have to track the co-ordinates with respect to Vboxid. 



Itried with gloablToLocal and localToGlobal..but not working



Can any one please suggest me what exactllyI need to do?



Regards

Ps.




 






__._,_.___





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

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] gloablToLocal , localToGlobal

2006-10-16 Thread Gordon Smith












Are you aware that globalToLocal() and
localToGlobal() don't modify the point you pass in? They return the modified point.

 

- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of learner
Sent: Monday, October 16, 2006
1:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
gloablToLocal , localToGlobal













Hello all,











Ihave a application where i have one canvas --
TemplateArea , a Vbox -- Vboxid in TemplateArea and
ImageComponent inside that Vboxid





on mouseDownEvent i am drawing the rectangle on Canvas TemplateArea,
What i need to do if i have to track the co-ordinates with respect to
Vboxid. 





Itried with gloablToLocal and localToGlobal..but not working











Can any one please suggest me what exactllyI need to do?











Regards





Ps.




















__._,_.___





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

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___