Re: [flexcoders] Using an Alert when handling another event?

2009-02-23 Thread Laurent Cozic
, this, alertListener, null, Alert.NO); event.preventDefault(); // Prevent default here } private function alertListener( eventObj: CloseEvent) :void { if (eventObj.detail= =Alert.NO) { closeTab(); // Really close the tab here } } -- Laurent Cozic Flash, Flex and Web

Re: [flexcoders] Drawing on skinned component

2009-02-20 Thread Laurent Cozic
to it, and if it's already there, it's going to be pushed on top of all the other sprites. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, civilu007 civilu.gro...@gmail.com wrote: From: civilu007 civilu.gro...@gmail.com Subject: [flexcoders

Re: [flexcoders] Pointers like in C

2009-02-20 Thread Laurent Cozic
No, there's no pointers. All the objects are passed to functions by reference, except for the basic types (Number, String, etc.) which are passed by value. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, christophe_jacquelin

Re: [flexcoders] Re: Flex server language

2009-02-20 Thread Laurent Cozic
but you're kind of expected to make more efforts to use it - i.e. read the doc, search Google. Once you are used to it though, it's just as good as the paid equivalents. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 2/20/09, Jeffry Houser j

Re: [flexcoders] Reading an UTF-8 document

2009-02-19 Thread Laurent Cozic
/ -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Wed, 2/18/09, Andrew roly...@gmail.com wrote: From: Andrew roly...@gmail.com Subject: [flexcoders] Reading an UTF-8 document To: flexcoders@yahoogroups.com Date: Wednesday, February 18, 2009, 10:19 PM

Re: [flexcoders] Re: Drawing graphics on an image

2009-02-19 Thread Laurent Cozic
the drawing on yourSprite.graphics here                                 addChild(yourSprite);             }                                ]]     /mx:Script     /mx:Image Also, if you need to clear the image, just set Image.source to null. -- Laurent Cozic Flash, Flex and Web Application

Re: [flexcoders] Read XML files

2009-02-19 Thread Laurent Cozic
, xmlLoaded); function xmlLoaded(event) {    var xmlString = event.currentTarget.data;    // and parse the XML here } -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Thu, 2/19/09, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: From

Re: [flexcoders] Country List

2009-02-18 Thread Laurent Cozic
Here: http://www.google.com/search?q=country+list -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Wed, 2/18/09, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: From: christophe_jacquelin christophe_jacque...@yahoo.fr Subject: [flexcoders

Re: [flexcoders] Send a confirmation Email

2009-02-18 Thread Laurent Cozic
in PHP: http://email.about.com/cs/phpemailtips/qt/et031202.htm Then in Flex, just use URLLoader to call the PHP script. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Wed, 2/18/09, Simon Bailey si...@newtriks.com wrote: From: Simon Bailey si

Re: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Laurent Cozic
be document.location.href - not sure which one is right. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Wed, 2/18/09, kuntamayu kuntam...@yahoo.com wrote: From: kuntamayu kuntam...@yahoo.com Subject: [flexcoders] Re: is it possible to track visitors / the page

Re: [flexcoders] Time stamping a user Logout

2009-02-18 Thread Laurent Cozic
You could make the app ping the server every 5 minutes. Then if the server doesn't receive the ping, assume that the user closed the browser and log him out. Another simpler solution would be to put a timeout on the session. -- Laurent Cozic Flash, Flex and Web Application development http

Re: [flexcoders] How to copy each property of object A to B ?

2008-08-22 Thread Laurent Cozic
Have a look at mx.utils.ObjectUtil.copy() -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 8/22/08, piotrchruscielewski [EMAIL PROTECTED] wrote: From: piotrchruscielewski [EMAIL PROTECTED] Subject: [flexcoders] How to copy each property of object

Re: [flexcoders] Flex is time consuming

2008-08-18 Thread Laurent Cozic
Open the Task Manager while your are making changes and check if one of the processes is taking too much CPU. Now and then, I have one of the svchost.exe processes taking 99% CPU each time I press a key in Flex. Once I kill the process everything goes back to normal. -- Laurent Cozic Flash

Re: [flexcoders] Resize from left to right

2008-08-14 Thread Laurent Cozic
; button.width = newWidth; button.height = newHeight; -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Thu, 8/14/08, Rico Leuthold [EMAIL PROTECTED] wrote: From: Rico Leuthold [EMAIL PROTECTED] Subject: [flexcoders] Resize from left to right To: flexcoders

Re: [flexcoders] Mouseevents and nested components

2008-08-14 Thread Laurent Cozic
Hi, you need to stop the event propagation so that it doesn't reach the canvas. You do that in your button event handler: private function traceButton( evt:MouseEvent) :void {    evt.stopPropagation();    trace(trace button + evt.target + / + evt.currentTarget) ; } -- Laurent Cozic Flash

RE: [flexcoders] Displaying custom items in ComboBox

2008-08-14 Thread Laurent Cozic
to check that lineHolder is not null before creating it. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Thu, 8/14/08, Regert, Michael [EMAIL PROTECTED] wrote: From: Regert, Michael [EMAIL PROTECTED] Subject: RE: [flexcoders] Displaying custom items

Re: [flexcoders] Re: Loop through all visual components

2008-08-13 Thread Laurent Cozic
Not sure but I think you need to make your login variable (whather that is) bindable, so that, when it changes, the showName label is notified: [Bindable] private var login:String; // just guessing the declaration. The important part is the [Bindable] tag -- Laurent Cozic Flash, Flex

Re: [flexcoders] Loop through all visual components

2008-08-12 Thread Laurent Cozic
);     if (c is Container) {   checkAllButtons(c);     } else {   if (c is Button) {     // Do your changes here   }     }    } Then start the process by passing the application as a parameter: checkAllButtons(Application.application); -- Laurent Cozic Flash, Flex and Web

Re: [flexcoders] Class file in flex

2008-08-12 Thread Laurent Cozic
it might compile, it won't make any sense once you convert the AS file. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Tue, 8/12/08, litesh_b321 [EMAIL PROTECTED] wrote: From: litesh_b321 [EMAIL PROTECTED] Subject: [flexcoders] Class file in flex

Re: [flexcoders] Re: Is It Just Me?

2008-08-12 Thread Laurent Cozic
necessarily match the way it is stored internally. I think it's true of any framework including .NET and Java. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Tue, 8/12/08, Dale Cook [EMAIL PROTECTED] wrote: From: Dale Cook [EMAIL PROTECTED] Subject

Re: [flexcoders] SSL Https communication between swf and data service / life cycle is failed

2008-08-11 Thread Laurent Cozic
Check the outgoing HTTP calls using Live HTTP headers for Firefox. You probably have a redirection from https to http at some point. I remember having had a similar issue and it had to be fixed server side (can't remember the fix though). -- Laurent Cozic Flash, Flex and Web Application

Re: [flexcoders] How to pass value to ComboBox selectedItem?

2008-08-11 Thread Laurent Cozic
You need to go through the dataProvider to change the value of the selected item. For example: comboBox.dataProvider.setItemAt(newItem, comboBox.selectedIndex); -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Mon, 8/11/08, Joshua Jackson [EMAIL

Re: [flexcoders] Checking swfs for malicious code!

2008-08-07 Thread Laurent Cozic
I don't think you need to worry about security for loaded contents. The Flash player does that very well already and there's probably no way a Flash file could do anything malicious. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Thu, 8/7/08

Re: [flexcoders] Returning value inside a nested functions event?

2008-08-06 Thread Laurent Cozic
are trying to do. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Berkay Unal [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, August 6, 2008 3:25:53 PM Subject: [flexcoders] Returning value inside a nested functions

[flexcoders] Turning off SWF messages

2008-08-05 Thread Laurent Cozic
, how? -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com

Re: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Laurent Cozic
Try savingMessage.validateNow() - it should force an update of the text area. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Paul Steven [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 5, 2008 9:33

Re: [flexcoders] Re: modifying a function at runtime

2008-08-05 Thread Laurent Cozic
(test.yourFunction()); // abcd test.yourFunction = function() { return 1234 } trace(test.yourFunction()); // 1234 -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: arieljake [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent

Re: [flexcoders] TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
, textArea_textInput); protected function textArea_textInput(event:TextEvent) { if (textArea.textHeight textArea.height - textArea.getStyle(fontSize)) { event.preventDefault(); } } -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message

Re: [flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
I haven't checked but I guess that the TextEvent.text property is empty if you are deleting text. If that's the case, then don't cancel the event. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: tchredeemed [EMAIL

Re: [flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
. You might also want to save and restore the caret position as well (see selectionStartIndex and selectionEndIndex) -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: tchredeemed [EMAIL PROTECTED] To: flexcoders@yahoogroups.com

Re: [flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Laurent Cozic
Add the mx_internal declarations at the top of your class: import mx.core.mx_internal; use namespace mx_internal; -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: flexawesome [EMAIL PROTECTED] To: flexcoders

Re: [flexcoders] SWFObject URL

2008-08-05 Thread Laurent Cozic
This would only return the SWF file URL, not the URL of the page within which it is embedded. To do that, you'll have to use javascript and the ExternalInterface class: ExternalInterface.call(document.location); -- Laurent Cozic Flash, Flex and Web Application development http

Re: [flexcoders] Fading out text

2008-08-01 Thread Laurent Cozic
Hi, You need to use an embedded font in order for the fade effect to work. Simply create a new style for your text, then tick the Embed this font check box in the style properties. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message

Re: [flexcoders] Re: Fading out text

2008-08-01 Thread Laurent Cozic
there's not much we can do about it. If I'm not mistaken, this limitation will be gone in Flash 10 though. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: cesarerocchi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Laurent Cozic
approach. In this case, a better way would be to directly create an instance of your embedded object and add it to the display list. I think the syntax would be: var image:BitmapAsset = new _moveGroupImage() as BitmapAsset ; this.addChild(image); -- Laurent Cozic Flash, Flex and Web

Re: [flexcoders] Re: problem adding images to UIComponents using AS3

2008-08-01 Thread Laurent Cozic
a Flex object. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Jason [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, August 1, 2008 6:49:50 PM Subject: [flexcoders] Re: problem adding images to UIComponents using

Re: [flexcoders] Re: Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-07-31 Thread Laurent Cozic
Did you try putting your assets directory inside src? I think that should work fine. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: jamalwally [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31

Re: [flexcoders] Chart: pass info about series1 to series2 lineSegmentRenderer callback?

2008-07-31 Thread Laurent Cozic
Normally, the way to pass parameters to the item renderer is through its data property. So just make sure that your data provider contains whatever information you need to set the item renderer position. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com

Re: [flexcoders] NaN and Infinity showing in output - How to modify?

2008-07-31 Thread Laurent Cozic
How about: sNaN(mynumber) ? 0 : -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Blair Cox [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 31, 2008 5:19:46 PM Subject: Re: [flexcoders] NaN

[flexcoders] Re: How do you identify a component created in a repeater????

2008-07-29 Thread Laurent Cozic
Within which context? If you need to know which component has triggered an event, you can use event.currentTarget, as in: yourRepeatedComponent click=clickHandler(event) / Then in a script block: function clickHandler(event) { var yourComponenet = event.currentTarget; // From then you can