[flexcoders] Re: Mapping/Image in Flex

2011-11-08 Thread valdhor
Take a look at the callout component - 
http://www.adobe.com/devnet/flex/samples/fig_callout.html

--- In flexcoders@yahoogroups.com, Venkat M venkat_yum@... wrote:

 Thank you.
 
 What if it is not a map?. Say for example I have a car image, when I hover 
 over the tires, I should get the info about tires similarly all the 
 parts. then how do I do with mapping?
 
 Any help would be greatly appreciated. Thanks!
  
 Cheers,
 Venkat. 
  
  
 
 
 
 
 From: sony antony pow_like_me143@...
 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Sent: Friday, November 4, 2011 11:30 PM
 Subject: Re: [flexcoders] Mapping/Image in Flex
 
 
   
 Try ammap examples
 
 
 
 
 From: Venkat M venkat_yum@...
 To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 Sent: Saturday, 5 November 2011 2:13 AM
 Subject: [flexcoders] Mapping/Image in Flex
 
 
   
 Hi Group,
  
 I have a
 basic question in flex regarding the mapping of an image.
  
 Ex: I have
 a world map, depending on the click on the map, the corresponding information
 of the county has to be populated in the adjacent information box. I know this
 could be done quite easily in html with [map †coordinates], but I doubt 
 how to
 do it in flex. 
  
 Any ideas.
 Please help. Thanks.
  
 Cheers,
 Venkat. 
  
  
 
 
  
 
 





[flexcoders] Re: opening another Window in Flex for commenting on data entered in TextArea compon

2011-11-08 Thread valdhor
The way I would do it is to include an extra text area underneath (Or beside) 
each of the current text areas for the reviewer to add comments. These text 
areas would only be visible if a reviewer logged in. Depending on some flags 
that are populated in the database, you could make one or the other 
editable/visible at a time (eg. If a reviewer has already added comments, make 
the comments text area visible but not editable)

--- In flexcoders@yahoogroups.com, mike_j95 mike_j95@... wrote:

 I have a TitleWindow which has some TextArea components where end users(using 
 the application) will enter data to answer some questions. A reviewer needs 
 to comment on the entered answers. The reviewer comments would be stored in a 
 MySQL database using ColdFusion as the middle tier. Later, the end users 
 would make changes to their answers based on reviewer comments.
  
 I was thinking of doing it as MS-Word does it for reviewing by having a 
 Add/View button next to each TextArea. On clicking the button, a window would 
 open where the reviewer could enter his comments for the TextArea. But, the 
 issue is when the new window is opened, the answer in TextArea component will 
 not be seen. In MS-Word, a reviewer can view/highlight the data that he wants 
 to comment on, then enter his comments on the comment box.
  
 1. How can I implement this so that reviewing answers/data is as 
 intuitive/easy as in a MS-Word document for the reviewer and end-users when 
 they need to make changes based on review comments?
  
 2. I am thinking of adding a Add/View comment button next to each TextArea. 
 On clicking it, I open a new window, create a panel with two textareas where 
 first textarea has user's original answer(which would be readonly for the 
 reviewer) copied from the parentWindow's TextArea, second textarea would have 
 reviewer comments(which would be readonly for end user of the application). 
 The reviewer would make comments in second textarea based on the answer(in 
 first textarea) and click a button to save his comments(which would be stored 
 in a MySQL database). The end user would click the Add/View comment button, 
 revise his answer(in first textarea) based on reviewer comments(inn second 
 textarea), click a button which would then update his original answer in the 
 parentWindow with the revised answer.
  
 3. If approach described in 2 is advisable, should I open a new Window using 
 PopupManager or is there some other option(like the one at Multiple Windows 
 in Adobe AIR) which might be more suited?
  
 I am using compiler Flex 4.5 with Flex 3 compatibility mode. I am a beginner 
 to intermediate in Flex
  
 Any suggestions would be appreciated.
 
 P.S. I am talking about the view end user receives when he uses MS-Word to 
 review a document(not how MS-Word implements it). If you have MS-Word 
 installed, you can open it, create a new document in it, type text in it, 
 highlight the text you want to comment about, then choose Review option from 
 the Menu, then select option New comment and you would see a box where you 
 can enter comments. I want to create something like that so a reviewer/end 
 user is more comfortable in using it.





[flexcoders] Re: code out of sync with flash builder

2011-11-08 Thread valdhor
Do you have the debug even if there are errors (Or whatever it is called) 
turned on?

I have only seen this when there are errors in the code so a compile can't 
complete. In this case Flex will let you debug but use the previous compiled 
version.

--- In flexcoders@yahoogroups.com, Wouter Schreuders wschreuders@... wrote:

 Has anyone at least run into this problem before? I've had it on three
 different machines.
 
 On 3 November 2011 10:29, Wouter Schreuders wschreuders@... wrote:
 
  Hi All
 
  I'm continually running into this problem. When I debug my code flash
  builder intermittently show's me the previous build. It's super frustrating
  because you make a complex logic change to your code and then it doesn't
  work and you never know if it's that the code is wrong or flash builder
  just screwed up and is showing you the previous version.
 
  Anyone else run into this and know of some concrete steps I can take to
  prevent it from happening? A friend of mine runs FDT and says he's also
  encountered it so I'm guessing it's an eclipse problem.
 
  Any help would be appreciated
 
  thanks
 
  Wouter
 
 
 





[flexcoders] Replacing double slash with a single slash

2011-11-08 Thread Nick Middleweek
Hi,

I'm trying to replace a double slash with a single slash and am having a
little trouble, has anyone done this before?

Here's what I've got thus far...

var doubleSlash : RegExp = /(\\)(\\)/g;
var slash : RegExp = /(\\)/;

winMessage = winMessage.replace( doubleSlash, slash );


Cheers,
Nick


[flexcoders] Transparent PNG problems

2011-11-08 Thread David Pariente
Hi all,

I'm new to flex 4.5 and im trying to show transparent 24b PNG files. 
I had no problem with this in Flex3.

in 4.5 a slim light grey line appears surrounding the transparent contour of 
the image, making it usless for it's purpose.

i just did a normal s:Image source=image.png/

tryed with BitmapImage too with same result. embedding didnt change anything.

and the image was exported from photoshop 5.1

any ideas? i could not find much on the net.

thank you!


--
David Pariente
RIA consultor
--

[flexcoders] Re: Replacing double slash with a single slash

2011-11-08 Thread valdhor
As I understand it the backslash character is special in both the regex and the 
replacement string, so it has to be double escaped in both places. That means, 
for every single backslash you want to match or insert, you have to put *four* 
backslashes in the regex or replacement string.

--- In flexcoders@yahoogroups.com, Nick Middleweek nick@... wrote:

 Hi,
 
 I'm trying to replace a double slash with a single slash and am having a
 little trouble, has anyone done this before?
 
 Here's what I've got thus far...
 
 var doubleSlash : RegExp = /(\\)(\\)/g;
 var slash : RegExp = /(\\)/;
 
 winMessage = winMessage.replace( doubleSlash, slash );
 
 
 Cheers,
 Nick





Re: [flexcoders] Errors during build - ASDoc Configuration

2011-11-08 Thread John Fletcher
Cool. If it really happens exactly every other time, then that is good
information to work with. Does it matter if you just restarted the IDE?
Does it matter if you did a clean or just saved a file with build
automatically on, etc? When you restart your machine? Then you need to
determine whether it's the first build or the second build that is
suffering - if it's the first then something might be happening out of
order and is only there by the time the second build comes. If it's the
second then the first might be leaving junk around like hanging on to
resources or something.

Though I suppose if you're using Flash Builder it shouldn't really be your
responsibility to spend hours debugging it.

Regards,
John
2011/11/7 Merrill, Jason jason.merr...@bankofamerica.com

 **


 Both my co-worker and I get this message on every other build in debug
 mode.  It’s strange, it doesn’t happen every time, just every OTHER time we
 run in Debug mode.   

 ** **

 Errors occurred during the build.

   Errors running builder 'Integrated External Tool Builder' on project
 'KPL-R v4'.

 The file does not exist for the external tool named ASDoc
 Configuration [Builder].

   The file does not exist for the external tool named ASDoc Configuration
 [Builder].

 ** **

 Any ideas on how to fix this?  Re-installing is not easy because our
 licenses are managed via enterprise Tivoli pushes and it’s a lot of red
 tape to make it happen.  

 ** **

 Thanks,

 ** **

 Jason

 ** **
 --
 This message w/attachments (message) is intended solely for the use of the
 intended recipient(s) and may contain information that is privileged,
 confidential or proprietary. If you are not an intended recipient, please
 notify the sender, and then please delete and destroy all copies and
 attachments, and be advised that any review or dissemination of, or the
 taking of any action in reliance on, the information contained in or
 attached to this message is prohibited.
 Unless specifically indicated, this message is not an offer to sell or a
 solicitation of any investment products or other financial product or
 service, an official confirmation of any transaction, or an official
 statement of Sender. Subject to applicable law, Sender may intercept,
 monitor, review and retain e-communications (EC) traveling through its
 networks/systems and may produce any such EC to regulators, law
 enforcement, in litigation and as required by law.
 The laws of the country of each sender/recipient may impact the handling
 of EC, and EC may be archived, supervised and produced in countries other
 than the country in which you are located. This message cannot be
 guaranteed to be secure or free of errors or viruses.

 References to Sender are references to any subsidiary of Bank of America
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured *
 Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not
 a Condition to Any Banking Service or Activity * Are Not Insured by Any
 Federal Government Agency. Attachments that are part of this EC may have
 additional important disclosures and disclaimers, which you should read.
 This message is subject to terms available at the following link:
 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender
 you consent to the foregoing.

  



[flexcoders] Way to determine if an active debugging session is in progress

2011-11-08 Thread dorkie dork from dorktown
I need to find out if there is an active debugging session going on. Is it
possible? I would like to have it setup to throw an error for the developer
who is actively debugging but if it is at runtime I want to show a pop up
message. I'm guessing there is possible since debugging goes through a
socket connection (I know little about sockets)?

This is not asking if the swf is a debug swf. This is not asking if the
Flash Player is a content debugger build.


[flexcoders] Calling flex from JavaScript wrapper

2011-11-08 Thread Venkat M
Hi Team,
 
I have a question
about calling a flex method from JS.
The
scenario is, if the user closes the window without logging off,  I detect the 
window close from JS and call the appropriate logoff mechanism which is mapped 
originally for log out button.

JS code
 
SCRIPT LANGUAGE=JavaScript
 
window.onbeforeunload = clean_up;
 
function clean_up()
{
var flex = document.${application} || window.${application};
flex.myFlexFunction();
}
 
And in the
Flex application I code – 
 
import flash.external.ExternalInterface;
ExternalInterface.addCallback(myFlexFunction,cleanUp);
 
public function cleanUp():void{
//do the dirty work

.
 
This codes
are taken from http://board.flashkit.com/board/showthread.php?t=748226 

But I find
no action being detected. My html wrapper for the application has no visual
elements. The whole functioning of the application is entirely in flex. The
HTML is just a wrapper for it.
 
Its not
working for me. Any views?
 
Cheers,
Venkat. 

Re: [flexcoders] Transparent PNG problems

2011-11-08 Thread David Pariente
sorry guys, just noticed this is a problem caused by photoshop...
ty

--
David Pariente
RIA consultor
--

El 08/11/2011, a les 19:34, David Pariente xxmapach...@yahoo.es va escriure:
 Hi all,
 
 I'm new to flex 4.5 and im trying to show transparent 24b PNG files. 
 I had no problem with this in Flex3.
 
 in 4.5 a slim light grey line appears surrounding the transparent contour of 
 the image, making it usless for it's purpose.
 
 i just did a normal s:Image source=image.png/
 
 tryed with BitmapImage too with same result. embedding didnt change anything.
 
 and the image was exported from photoshop 5.1
 
 any ideas? i could not find much on the net.
 
 thank you!
 
 --
 David Pariente
 RIA consultor
 --
 
 


[flexcoders] Re: code out of sync with flash builder

2011-11-08 Thread Hans Goeckel
I've had a similar problem.  Flash Builder shows me the current source when 
debugging, but when you try to step through it, it is obviously running a 
previous version of the source.  What fixed it for me is to switch to another 
project in the workspace, compile it, then return to the main project, and 
recompile the modules that were screwing up.  Hope that fixes it for you too.

Interestingly this problem seems to only occur on my new Windows 7 system with 
the latest Java.  My older XP system would crash when running out of Java heap 
space, but would never go out of sync. 

Re: [flexcoders] Re: code out of sync with flash builder

2011-11-08 Thread Wouter Schreuders
Yeah... I'm aware of that setting. under
windowpreferencesrun/debuglaunchingContinue launch if project contains
errors.

I've set that to prompt but it's not the cause of the problem.

I see there's another setting Luanch operation mine is set to launch the
selected resource or active editor. If not launchable: launch the
associated project
instead of launch the previously launched application

What is yours set to?

On 8 November 2011 16:28, valdhor valdhorli...@embarqmail.com wrote:

 **


 Do you have the debug even if there are errors (Or whatever it is called)
 turned on?

 I have only seen this when there are errors in the code so a compile can't
 complete. In this case Flex will let you debug but use the previous
 compiled version.


 --- In flexcoders@yahoogroups.com, Wouter Schreuders wschreuders@...
 wrote:
 
  Has anyone at least run into this problem before? I've had it on three
  different machines.
 
  On 3 November 2011 10:29, Wouter Schreuders wschreuders@... wrote:
 
   Hi All
  
   I'm continually running into this problem. When I debug my code flash
   builder intermittently show's me the previous build. It's super
 frustrating
   because you make a complex logic change to your code and then it
 doesn't
   work and you never know if it's that the code is wrong or flash builder
   just screwed up and is showing you the previous version.
  
   Anyone else run into this and know of some concrete steps I can take to
   prevent it from happening? A friend of mine runs FDT and says he's also
   encountered it so I'm guessing it's an eclipse problem.
  
   Any help would be appreciated
  
   thanks
  
   Wouter
  
  
  
 

  



Re: [flexcoders] Re: opening another Window in Flex for commenting on data entered in TextArea compon

2011-11-08 Thread Mike J
Thanks for the suggestion. But, the TitleWindow is already full and does not 
have space for more textareas. What can I do in this situation?




From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 8, 2011 9:25 AM
Subject: [flexcoders] Re: opening another Window in Flex for commenting on data 
entered in TextArea compon


  
The way I would do it is to include an extra text area underneath (Or beside) 
each of the current text areas for the reviewer to add comments. These text 
areas would only be visible if a reviewer logged in. Depending on some flags 
that are populated in the database, you could make one or the other 
editable/visible at a time (eg. If a reviewer has already added comments, make 
the comments text area visible but not editable)

--- In flexcoders@yahoogroups.com, mike_j95 mike_j95@... wrote:

 I have a TitleWindow which has some TextArea components where end users(using 
 the application) will enter data to answer some questions. A reviewer needs 
 to comment on the entered answers. The reviewer comments would be stored in a 
 MySQL database using ColdFusion as the middle tier. Later, the end users 
 would make changes to their answers based on reviewer comments.
 
 I was thinking of doing it as MS-Word does it for reviewing by having a 
 Add/View button next to each TextArea. On clicking the button, a window would 
 open where the reviewer could enter his comments for the TextArea. But, the 
 issue is when the new window is opened, the answer in TextArea component will 
 not be seen. In MS-Word, a reviewer can view/highlight the data that he wants 
 to comment on, then enter his comments on the comment box.
 
 1. How can I implement this so that reviewing answers/data is as 
 intuitive/easy as in a MS-Word document for the reviewer and end-users when 
 they need to make changes based on review comments?
 
 2. I am thinking of adding a Add/View comment button next to each TextArea. 
 On clicking it, I open a new window, create a panel with two textareas where 
 first textarea has user's original answer(which would be readonly for the 
 reviewer) copied from the parentWindow's TextArea, second textarea would have 
 reviewer comments(which would be readonly for end user of the application). 
 The reviewer would make comments in second textarea based on the answer(in 
 first textarea) and click a button to save his comments(which would be stored 
 in a MySQL database). The end user would click the Add/View comment button, 
 revise his answer(in first textarea) based on reviewer comments(inn second 
 textarea), click a button which would then update his original answer in the 
 parentWindow with the revised answer.
 
 3. If approach described in 2 is advisable, should I open a new Window using 
 PopupManager or is there some other option(like the one at Multiple Windows 
 in Adobe AIR) which might be more suited?
 
 I am using compiler Flex 4.5 with Flex 3 compatibility mode. I am a beginner 
 to intermediate in Flex
 
 Any suggestions would be appreciated.
 
 P.S. I am talking about the view end user receives when he uses MS-Word to 
 review a document(not how MS-Word implements it). If you have MS-Word 
 installed, you can open it, create a new document in it, type text in it, 
 highlight the text you want to comment about, then choose Review option from 
 the Menu, then select option New comment and you would see a box where you 
 can enter comments. I want to create something like that so a reviewer/end 
 user is more comfortable in using it.