RE: [flexcoders] Problems with dynamically generating radio button in a radiobutton group
Hi, i resolved the problem by creating my group with : document[radioGroup+myField.id+editable] = new RadioButtonGroup(); Thanks a lot for your help Matt. Antoine --- Matt Chotin [EMAIL PROTECTED] a écrit : - Try this? Don't do createchild for the myGroup, just do myVbox[radioGroup+myField.id+editable] = new RadioButtonGroup(); Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barrau Antoine Sent: Tuesday, February 14, 2006 6:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problems with dynamically generating radio button in a radiobutton group Hi, i try to generate dynamic forms using a xml file. i have a problem with generating dynamic radio button. when i create a radioButtonGroup and several radio button having the groupName property set to the name of the previously radioButtonGroup, i can't manage to get the change or click event of the radioButtonGroup to be triggered. Here is a piece of my code, where i create the radio button group. Anyone see anything wrong here? var myGroup = myVbox.createChild(mx.controls.RadioButtonGroup,radioGroup+myField.id+editable); myGroup.addEventListener(click,mx.utils.Delegate.create(this,function():Void{ Dumper.trace(click event triggered); })); myGroup.addEventListener(change,mx.utils.Delegate.create(this,function():Void{ Dumper.trace(change event triggered ); })); var radioButtonArray = new Array(); if (myField.option.length!=undefined) { radioButtonArray = myField.option; } else { radioButtonArray.push(myField.option); } for (var radioCounter=0;radioCounterradioButtonArray.length;radioCounter++) { var myRadioButton = radioButtonArray[radioCounter]; var selected:Boolean = false; if (radioCounter==0) selected=true; var myButton = myVbox.createChild(mx.controls.RadioButton,radioButton+myRadioButton.value,{label:myRadioButton.label,styleName:label,value:myRadioButton.value,selected:selected,groupName:radioGroup+myField.id+editable}); } Thanks a lot, Antoine ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice - 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. - ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com -- 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] Date range calculation in ActionScript - need help
Hi everyone. I need to display to dates in my application. One is a current date, which is easily achieved by new Date(). Another date has to be let's say 24 hours earlier. In Java I would approach this task converting current date to millis and then subtructing from it millis that represent 24 hours and create a new date. In ActionScript Date.getMilliseconds() function seems to return milliseconds of the current time. So, my question is - is that possible to calculate 24 hour earlier date from the current date in ActionScript??? Thanks a lot! -- 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] so hard
Hi, Anyone knows why is so hard to find examples per type of technology in Flex. For example, I'd like to call EJBs from Flex, but I didnt find any example about it. On samples application that is provided by macromedia, on explorer app, remoteobject example is very simple. Anyone knows some place where I can find examples for flex/ejb thx so much, cax -- Think outside the box. -- 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] Height of Hslider
Hi, Does anyone know how to set the height of HSlider? The Height property doesn't work at all. cheers David -- 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] Date range calculation in ActionScript - need help
Var tempDate:Date = new Date(); Var tempNumber:Number = tempDate.getTime(); Var twentyFourHoursAgo:Number = tempNumber - 8640;//-millisecond/24Hours Var newDate:Date = new Date(); newDate.setTime(twentyFourHoursAgo); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of KOT_MATPOC Sent: Wednesday, February 15, 2006 2:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Date range calculation in ActionScript - need help Hi everyone. I need to display to dates in my application. One is a current date, which is easily achieved by new Date(). Another date has to be let's say 24 hours earlier. In Java I would approach this task converting current date to millis and then subtructing from it millis that represent 24 hours and create a new date. In ActionScript Date.getMilliseconds() function seems to return milliseconds of the current time. So, my question is - is that possible to calculate 24 hour earlier date from the current date in ActionScript??? Thanks a lot! -- 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/
[flexcoders] Datagrid text colors (v1.5)
In a datagrid, I want to display the text in a cell using two different colors - in the style of syntax formatting. Is there any way to do this in version 1.5 (or 2)? - Tom -- 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] sortCompareFunction
How does sortcompare function workd for a data grid. I want to sort a date column for a datagrid in Flex 1.5 Thanks, Deepak -- 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] sortCompareFunction
Hi Deepak, http://weblogs.macromedia.com/mesh/archives/2005/04/sorting_date_fi.cfm http://weblogs.macromedia.com/pent/archives/2004/12/sorting_by_date.cfm Best, Alex Alex Uhlmann Technical Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepu_verma Sent: 15 February 2006 12:44 To: flexcoders@yahoogroups.com Subject: [flexcoders] sortCompareFunction How does sortcompare function workd for a data grid. I want to sort a date column for a datagrid in Flex 1.5 Thanks, Deepak -- 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] Datagrid text colors (v1.5)
Hi Tom, You could create a cellRenderer of a DataGridColumn, place i.e. a Label component in there and set it's style i.e. via: yourLabelID.setStyle(color, 0xff); Best, Alex Alex Uhlmann Technical Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Fitzpatrick Sent: 15 February 2006 12:01 To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid text colors (v1.5) In a datagrid, I want to display the text in a cell using two different colors - in the style of syntax formatting. Is there any way to do this in version 1.5 (or 2)? - Tom -- 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] so hard
i would also look for flash examples on how to do it since you can use the code in flex...On 2/15/06, Carlos Alexandre Queiroz [EMAIL PROTECTED] wrote:Hi, Anyone knows why is so hard to find examples per type of technology in Flex. For example, I'd like to call EJBs from Flex, but I didnt find anyexample about it.On samples application that is provided by macromedia, on explorerapp, remoteobject example is very simple. Anyone knows some place where I can find examples for flex/ejbthx so much,cax--Think outside the box.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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/* 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/ -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: so hard
Calling an EJB would be exactly like calling any mx:RemoteObject/. The only difference would be that you will want to create a Delegate class on the server that does the initial JNDI lookup of the Home interface, the create() to get the RemoteInterface etc. Think of it as a little helper that then simply returns a reference to the RemoteInterface. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Carlos Alexandre Queiroz [EMAIL PROTECTED] wrote: Hi, Anyone knows why is so hard to find examples per type of technology in Flex. For example, I'd like to call EJBs from Flex, but I didnt find any example about it. On samples application that is provided by macromedia, on explorer app, remoteobject example is very simple. Anyone knows some place where I can find examples for flex/ejb thx so much, cax -- Think outside the box. -- 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] Datagrid text colors (v1.5)
Yes, all renderers need to define a setValue method, where you have the data for that cell. In there, you can perform your logic for if this val, use this color, else use etc etc. Its as simple as: mx:Label mx:Script Function setValue(I forgot the parameters){ //logic } /mx:Script /mx:Label From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Uhlmann Sent: Wednesday, February 15, 2006 8:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid text colors (v1.5) Hi Tom, You could create a cellRenderer of a DataGridColumn, place i.e. a Label component in there and set it's style i.e. via: yourLabelID.setStyle(color, 0xff); Best, Alex Alex Uhlmann Technical Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Fitzpatrick Sent: 15 February 2006 12:01 To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid text colors (v1.5) In a datagrid, I want to display the text in a cell using two different colors - in the style of syntax formatting. Is there any way to do this in version 1.5 (or 2)? - Tom -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Custom tooltips
You didn't mention which version of Flex. I am not sure about how to do this in Flex 1.x, but in 2.0 you take the ToolTip's programmatic skin ToolTipBorder and make a custom skin class. Making a bubble-like popup would take some Flash graphics API wizardry, but I am sure it can be done. I would start by checking out the updateDisplayList() method of the mx.skins.halo.ToolTipBorder.as file. hth, matt horn flex docs From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Graham, JasonSent: Tuesday, February 14, 2006 5:08 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Custom tooltips Is there an example anywhere to implement custom tooltips, I want to do something almost like having a cartoonish chat bubble popup, thats pointing to the object that is showing the tooltip. Is this a custom tooltip or just another component implemented that gets fired when the mouseOver occurs? -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Custom tooltips
Yea, it would be for Flex 1.5. I will take a look at the ToolTipBorder stuff in the halo skin and see what I can dig up. Thanks From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Horn Sent: Wednesday, February 15, 2006 9:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Custom tooltips You didn't mention which version of Flex. I am not sure about how to do this in Flex 1.x, but in 2.0 you take the ToolTip's programmatic skin ToolTipBorder and make a custom skin class. Making a bubble-like popup would take some Flash graphics API wizardry, but I am sure it can be done. I would start by checking out the updateDisplayList() method of the mx.skins.halo.ToolTipBorder.as file. hth, matt horn flex docs From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Graham, Jason Sent: Tuesday, February 14, 2006 5:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom tooltips Is there an example anywhere to implement custom tooltips, I want to do something almost like having a cartoonish chat bubble popup, thats pointing to the object that is showing the tooltip. Is this a custom tooltip or just another component implemented that gets fired when the mouseOver occurs? -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Charts and DataTips
Using hitData, is there a way to find out which line youre on? I can find out the index, but wondering short of going through each lineif theres a way to find out which line a datapoint is from. I have 5 line series and cant figure out a way to customize the tooltip based on what line Im on. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Mouse Event Filtering
Sorry, I dont know if this works in the Flex 2 beta, but I should have specified that were working with Flex 1.5 at Yahoo. Unfortunately, EventDispatcher states: function addEventListener(eventType:String, eventListener):Void { // Note: In the future, we may add a third parameter, // useCapture:Boolean, to be compliant with the // DOM Level 3 Events spec, // http://www.w3.org/TR/DOM-Level-3-Events/events.html. . . . This would have been very convenient if it were implemented. Nevertheless, Button and other components do seem able to capture the event. Is this a question for one of the Flash lists (any recommendation to which list I should post this question)? Thanks, Matt if you or anyone else has any other ideas, Id really love to hear them -Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Tuesday, February 14, 2006 9:45 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Mouse Event Filtering you want to add your mouse event listener with useCapture set to true and then call stopPropagation on the event in your handler (I think). I believe that will prevent it from moving further down the hierarchy. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tony Pujals Sent: Tuesday, February 14, 2006 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mouse Event Filtering There are two variations to my question, but they should share a common solution: 1) I want to create a glass pane - ie, a transparent layer that can capture/consume mouse events without allowing the event to bubble to a component below it. I've tried to achieve this effect with a transparent Canvas, but the component below it (eg, a TextArea), also catches the event. 2) I have a floating toolbar that extends Canvas. I don't want to use the PopUpManager because of issues with the FocusManager and TextArea that causes text to be selected incorrectly when focus is returned after focus was transferred to a toolbar button. If the toolbar is floating above the TextArea component, the cursor changes to an ibeam. If I click down on the toolbar to drag it, the toolbar drags, but the TextArea also gets the events, causing text to become selected. I want the toolbar to consume the mouse events occurring on it without any further event bubbling. Since the toolbar has a mouseMove handler that allows me to drag it, I can drag even by pressing mouse down on a toolbar button. I guess the toolbar as parent is receiving and handling the mousedown, even though the mouse down event is also propagating to its child button component as well (I actually do not want this behavior either, but I suppose I can solve this easily enough with hitTest). But what is really interesting is that the event stops there if it's caught by the button -- the TextArea below the toolbar doesn't get the event in this case. So something about a Button or its superclasses makes it special, but the difference isn't apparent to me in the AS source provided with Flex. Any insight is appreciated. Thanks! -Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] getting a compile error running the 'custom event' flex 2 example
Hi I just copied and pasted the 'Events/ Using a Custom Event Class' example from the following link http://weblogs.macromedia.com/flex_samples/flex_explorer/explorer.html into flex builder2 but i get the compile error Type annotation is not a compile-time constant: LogonEvent in my test flex app. its the following line public function logonHandler(event:LogonEvent):void i suppose it doesnt know what a LogonEvent is. what am i missing ? i only copied and pasted the whole demo. -- 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] Object.registerClass and createChild with custom components - man ifest.xml ??
Hi, I am using Flex 1.5 and I am creating custom components dynamically from its classnames like this: // got a class name var windowName:String = TitleWindowData; //create a instance of this title window var oInitObj:Object = new Object(); oInitObj.title = Title Window Data; oInitObj.width = 600; oInitObj.height = 200; var titleWindowInstance:Object = TitleWindow(PopUpManager.createPopUp(this, mx.utils.ClassUtil.findClass(windowName), false, oInitObj, false)); titleWindowInstance.centerPopUp(this); I know I have to register a class like this before I create an instance like: Object.registerClass(TitleWindowTest, TitleWindowData); Now I look for a way to safe this step. Is there a way? I was wondering, if it would be helpful to create a SWC and mymanifest.xml of TitleWindowData.mxml with the compc.exe and set it in the flex-config.xml like this: .. namespace uri=http://www.top21.de/2005/mxml/brochureConf; manifest/WEB-INF/flex/brochureConf-manifest.xml/manifest /namespace .. But I still have to call Object.registerClass before I can create an instance, although the file should be known to the flex application already. Did I miss something? Is there no way to get rid of the Object.registerClass() call for every component I want to create dynamically out of classnames ??? Cheers, Christoph -- 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 compiler problem on Build/Browse
Ah, hopefully it will be a little better in 2.0. Unfortunately compiler errors are really hard to get right because its often impossible to determine the intent of the user when the error is encountered. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek Sent: Wednesday, February 15, 2006 6:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex compiler problem on Build/Browse It got solved yesterday, when checking some recently changed files. As restarting Flex/JBoss/computer didn't worked,I didsome debugging, andit happened to be an undeclared variable (named aux) that Flex was interpreting as a class, and therefore looking for it in the user_classes directory. Just added the preceding var to it and done. Although it was something really stupid, I guess a more describing error message could have helped a lot. =) Thanks! ---Pablo Gustavo Apanasionek De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] En nombre de Matt Chotin Enviado el: Miércoles, 15 de Febrero de 2006 01:59 Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Flex compiler problem on Build/Browse That seems very odd, what happens when you restart JBoss? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek Sent: Tuesday, February 14, 2006 4:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex compiler problem on Build/Browse Hi everyone! Has any of you ever bumped into this while building/browsing a MXML file? I'm using JBoss 4.0.2 and Flex 1.5. It was running perfectly a few hours ago, and nothing changed in my configuration (at least, that I could notice). 2 Errors found. Error C:\Archivos de programa\Java\jboss-4.0.2\server\default\deploy\earacs-flex.war\WEB-INF\flex\user_classes\aux.mxml Error reading MXML document: check that the file exists and permissions are set correctly. Error C:\Archivos de programa\Java\jboss-4.0.2\server\default\deploy\earacs-flex.war\FlightTypes.mxml:446 Don't know how to parse element http://www.macromedia.com/2003/mxml:WebService. It is not a known type or a property of mx.core.Application. In the first case, the file aux.mxml doesn't even exist. Is this file generated by the compiler? What permissions should the flex-dir have? Thanks in advance! ---Pablo Apanasionek -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] restrict text size in datagrid cell??
Title: restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] restrict text size in datagrid cell??
Title: restrict text size in datagrid cell?? http://www.richinternet.de/blog/index.cfm?mode=search Best, Alex Alex UhlmannTechnical Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parekh, Shweta - BLS CTRSent: 15 February 2006 16:33To: flexcoders@yahoogroups.comSubject: [flexcoders] restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Response not resolvable with Flex 2.0 and ASP.NET 2.0 Web Service
Hello, I've searched the archive and found a lot of information about getting a .NET dataset into Flex. I've put together a test app, but am not getting past the following error. From reading posts, I get the impression that this approach works in Flex 1.5 but not Flex 2.0. In the test app, my other web service methods (HelloWorld and SendTest) work just fine. If I change the GetAuthors method so that it returns a string full of the dataset XML, I can see that the XML looks good in Flex. Could someone point me to a working example or tutorial explaining how to display a .NET dataset in a Flex datagrid? Thanks much, -Tony === Error Message === Element http://my.test.edu/:GetAuthorsResponse not resolvable at mx.rpc.soap::WSDLParser/http://www.macromedia.com/2005/flex/mx/intern al::parseMessage() at mx.rpc.soap::WSDLOperation/parseMessages() at mx.rpc.soap::Operation/http://www.macromedia.com/2005/flex/mx/interna l::invokePendingCall() at mx.rpc.soap::Operation/send() at mx.rpc.soap.mxml::Operation/send() at ASPTest1/___Button3_click() === Flex 2.0 === ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute creationComplete=helloThere.HelloWorld.send() mx:WebService id=helloThere wsdl=http://localhost/FlexTest1/WebService1.asmx?wsdl; useProxy=false mx:operation name=HelloWorld/ mx:operation name=SendText mx:request xmlns= strText {ToASP.text} /strText /mx:request /mx:operation mx:operation name=GetAuthors /mx:operation /mx:WebService mx:Button x=20 y=30 click=helloThere.HelloWorld.send () label=Click Me/ mx:Label x=20 y=60 text={helloThere.HelloWorld.result}/ mx:TextInput id=ToASP x=20 y=90 / mx:Button x=20 y=120 click=helloThere.SendText.send() label=Send Text to ASP/ mx:Label x=20 y=150 text=Back from ASP: {helloThere.SendText.result}/ mx:Button x=20 y=180 click=helloThere.GetAuthors.send () label=Fill the Grid/ mx:DataGrid x=20 y=210 id=dgAuthors width=400 dataProvider={helloThere.GetAuthors.result.diffgram.NewDataSet.Autho rs} mx:columns mx:DataGridColumn headerText=First Name columnName=FName / mx:DataGridColumn headerText=Last Name columnName=LName / mx:DataGridColumn headerText=Notes columnName=Notes / /mx:columns /mx:DataGrid /mx:Application == === ASP.NET 2.0 === [WebMethod] public DataSet GetAuthors() { SqlConnection myConnection = new SqlConnection (server=localhost; uid=FlexGuy; pwd=mypassword; database=myTest); SqlDataAdapter myCommand1 = new SqlDataAdapter(select FName, LName, Notes from Authors, myConnection); DataSet ds = new DataSet(); myCommand1.Fill(ds, Authors); return ds; } == -- 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] Object.registerClass and createChild with custom components - manifest.xml ??
Hi, you need at least one reference to the class to get it linked it during compilation - if the class isn't there at compile time you cannot instantiate it later as there is no dynamic class loading. To get the class linked in, it's enough to reference it somewhere, i.e. private static function link():Void { TitleWindowData; } Object.registerClass is not really necesarry - the fact it works when you use Object.registerClass is just the fact that you explicitly mention a class there (TitleWindowData that is), but it should work with the above solution as well. If you really need dynamic class loading then you'll have to compile a SWF which contains the class and then load this SWF during runtime. However, this is quite an adventure in Flex 1.5 to get it working. Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Diefenthal Sent: Wednesday, February 15, 2006 5:07 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Object.registerClass and createChild with custom components - manifest.xml ?? Hi, I am using Flex 1.5 and I am creating custom components dynamically from its classnames like this: // got a class name var windowName:String = TitleWindowData; //create a instance of this title window var oInitObj:Object = new Object(); oInitObj.title = Title Window Data; oInitObj.width = 600; oInitObj.height = 200; var titleWindowInstance:Object = TitleWindow(PopUpManager.createPopUp(this, mx.utils.ClassUtil.findClass(windowName), false, oInitObj, false)); titleWindowInstance.centerPopUp(this); I know I have to register a class like this before I create an instance like: Object.registerClass(TitleWindowTest, TitleWindowData); Now I look for a way to safe this step. Is there a way? I was wondering, if it would be helpful to create a SWC and mymanifest.xml of TitleWindowData.mxml with the compc.exe and set it in the flex-config.xml like this: .. namespace uri=http://www.top21.de/2005/mxml/brochureConf; manifest/WEB-INF/flex/brochureConf-manifest.xml/manifest /namespace .. But I still have to call Object.registerClass before I can create an instance, although the file should be known to the flex application already. Did I miss something? Is there no way to get rid of the Object.registerClass() call for every component I want to create dynamically out of classnames ??? Cheers, Christoph -- 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] restrict text size in datagrid cell??
Title: restrict text size in datagrid cell?? Try this one instead :) http://www.richinternet.de/blog/index.cfm?entry=1A9BC4E5-E330-9F94-F90F54F91CB45C16 Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex UhlmannSent: Wednesday, February 15, 2006 5:46 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] restrict text size in datagrid cell?? http://www.richinternet.de/blog/index.cfm?mode=search Best, Alex Alex UhlmannTechnical Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parekh, Shweta - BLS CTRSent: 15 February 2006 16:33To: flexcoders@yahoogroups.comSubject: [flexcoders] restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: setUsernamePassword and J2EE login (bounce)
Thanks for the responses. Sorry for my ignorance, but are you suggesting that the JSP simulate a login (invoking the loginContext/loginModule)? Or are you suggesting that the JSP set the UserPrincipal in the HTTP request (although I don't see a setter in the request interface API, which makes me wonder how JAAS injects the UserPrincipal into the request, but I can probably find that somewhere). To answer Matt's questions, no, I'm not sure JAAS successfully stores the principal, yes, the login module is being called, but I'll look at it more closely. Thanks again, Jim - Jim Schneider EyeCodeRight, LLC 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, February 15, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) We have, as Carson mentioned, definately seen issues where the j_session_id is not properly propogated through the proxy. I would want to see, as Matt alludes to, do the credentials get propogated when we take the proxy out of the picture. I would create a simple JSP page which itself returns the UserPrincipal. Call that JSP from within your Flex app and read the value. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You sure that JAAS successfully stores the Principal back in the user request? If you did something similar via JSP would everything come through correctly? I haven't played with JBoss but WebSphere for example failed to store the authenticated principal in the request even when I went through JAAS to login my user in. You traced to see that your login module is called? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Tuesday, February 14, 2006 2:12 PM To: flexcoders@yahoogroups.com Subject: FW: [flexcoders] setUsernamePassword and J2EE login (bounce) No one has any thoughts/ideas on this? - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Saturday, February 04, 2006 12:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login I finally got back to looking at this. I Instrumented my code to look at flashgateway.Gateway.getHttpRequest().getRemotePrincipal() and getRemoteUser(). RemoteUser is empty and remote principal is null. I see the userid/password credentials in the amf trace from the client (setting UsernamePassword on the service), but nothing in the service. I'm using remote objects. Remote object is a spring bean. I've implemented a JAAS login module that appears to be functioning correctly (loginContext succeeds). Using JBoss 4.0.x. Any thoughts? Thanks, Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Saturday, January 21, 2006 10:22 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login If you use standard J2EE auth to the container, you can get the remote user provided you are not using the proxy. There is currently an issue with the proxy not forwarding the cookie in most ( all that we've seen ) circumstances. We have received a fix from Adobe on this that we are in the process of testing. This being said, if you don't use the proxy, you'll be able to acccess the user without issue from within your service implementations. Here's the kicker. The AS2 VM doesn't not handle HTTP status code 500. It stops parsing the HTTP response when it sees a 500 which means that you will never be able to get at any data that occurs due to a SOAP Fault. Per the web services spec, the container is required to return an HTTP 500 status code when returning a fault. Effectively, you can't handle SOAP faults when you don't use the proxy and you get that meaningless error message that looks like it simply couldn't connect to the service. This issue is handled by the proxy. It changes that HTTP status code to 200 so that the flash player can parse the request. This is a kludge if you ask me but that's where we are today. As a note, this is being addressed in FP8.5 but the fix will very likely not ( according to Adobe ) be fixed in earlier versions due to backward compatibility. Carson Carson Hager Cynergy Systems, Inc.
RE: [flexcoders] restrict text size in datagrid cell??
Title: restrict text size in datagrid cell?? Duh, that's what I meant. Thanks Dirk. ( ; Best, Alex Alex UhlmannTechnical Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: 15 February 2006 16:48To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] restrict text size in datagrid cell?? Try this one instead :) http://www.richinternet.de/blog/index.cfm?entry=1A9BC4E5-E330-9F94-F90F54F91CB45C16 Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex UhlmannSent: Wednesday, February 15, 2006 5:46 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] restrict text size in datagrid cell?? http://www.richinternet.de/blog/index.cfm?mode=search Best, Alex Alex UhlmannTechnical Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parekh, Shweta - BLS CTRSent: 15 February 2006 16:33To: flexcoders@yahoogroups.comSubject: [flexcoders] restrict text size in datagrid cell?? Hi, How can I specify the maxChars on cells in a datagrid if I want to restrict the size of text entered in a cell to a certain limit. For text input etc. Flex has maxChars which takes care of it. How do I do it in a datagrid? Thanks, Shweta -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: setUsernamePassword and J2EE login (bounce)
He's actually not suggesting either. He's suggesting creating a test JSP that returns the user principal objec to verify that the JSP is within an authenticated session. %=request.getUserPrincipal().getName()% It looks like you're going through a proxy which is using another session. As I mentioned earlier, there are issues with the proxy and forwarding credentials from an existing session. Our context was the use of web services but this could very well be what you're seeing as well. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 8:49 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Thanks for the responses. Sorry for my ignorance, but are you suggesting that the JSP simulate a login (invoking the loginContext/loginModule)? Or are you suggesting that the JSP set the UserPrincipal in the HTTP request (although I don't see a setter in the request interface API, which makes me wonder how JAAS injects the UserPrincipal into the request, but I can probably find that somewhere). To answer Matt's questions, no, I'm not sure JAAS successfully stores the principal, yes, the login module is being called, but I'll look at it more closely. Thanks again, Jim - Jim Schneider EyeCodeRight, LLC 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, February 15, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) We have, as Carson mentioned, definately seen issues where the j_session_id is not properly propogated through the proxy. I would want to see, as Matt alludes to, do the credentials get propogated when we take the proxy out of the picture. I would create a simple JSP page which itself returns the UserPrincipal. Call that JSP from within your Flex app and read the value. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You sure that JAAS successfully stores the Principal back in the user request? If you did something similar via JSP would everything come through correctly? I haven't played with JBoss but WebSphere for example failed to store the authenticated principal in the request even when I went through JAAS to login my user in. You traced to see that your login module is called? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Tuesday, February 14, 2006 2:12 PM To: flexcoders@yahoogroups.com Subject: FW: [flexcoders] setUsernamePassword and J2EE login (bounce) No one has any thoughts/ideas on this? - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Saturday, February 04, 2006 12:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login I finally got back to looking at this. I Instrumented my code to look at flashgateway.Gateway.getHttpRequest().getRemotePrincipal() and getRemoteUser(). RemoteUser is empty and remote principal is null. I see the userid/password credentials in the amf trace from the client (setting UsernamePassword on the service), but nothing in the service. I'm using remote objects. Remote object is a spring bean. I've implemented a JAAS login module that appears to be functioning correctly (loginContext succeeds). Using JBoss 4.0.x. Any thoughts? Thanks, Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Saturday, January 21, 2006 10:22 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login If you use standard J2EE auth to the container, you can get the remote user provided you are not using the proxy. There is currently an issue with the proxy not forwarding the cookie in most ( all that we've seen ) circumstances. We have received a fix from Adobe on this that we are in the process of testing. This being said, if you don't use the proxy, you'll be able to acccess the user without issue from within your service implementations. Here's the kicker. The AS2 VM doesn't
RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce)
Right, basically attempt to remove Flex from the equation for the moment, get your JAAS module to fire using credentials you pass in using the JSP. Then after you've authenticated use the JSP to see if that newly created authenticated Principal is stored in the request. If it isn't there then the problem is bigger than RemoteObject. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 9:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) He's actually not suggesting either. He's suggesting creating a test JSP that returns the user principal objec to verify that the JSP is within an authenticated session. %=request.getUserPrincipal().getName()% It looks like you're going through a proxy which is using another session. As I mentioned earlier, there are issues with the proxy and forwarding credentials from an existing session. Our context was the use of web services but this could very well be what you're seeing as well. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 8:49 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Thanks for the responses. Sorry for my ignorance, but are you suggesting that the JSP simulate a login (invoking the loginContext/loginModule)? Or are you suggesting that the JSP set the UserPrincipal in the HTTP request (although I don't see a setter in the request interface API, which makes me wonder how JAAS injects the UserPrincipal into the request, but I can probably find that somewhere). To answer Matt's questions, no, I'm not sure JAAS successfully stores the principal, yes, the login module is being called, but I'll look at it more closely. Thanks again, Jim - Jim Schneider EyeCodeRight, LLC 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, February 15, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) We have, as Carson mentioned, definately seen issues where the j_session_id is not properly propogated through the proxy. I would want to see, as Matt alludes to, do the credentials get propogated when we take the proxy out of the picture. I would create a simple JSP page which itself returns the UserPrincipal. Call that JSP from within your Flex app and read the value. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You sure that JAAS successfully stores the Principal back in the user request? If you did something similar via JSP would everything come through correctly? I haven't played with JBoss but WebSphere for example failed to store the authenticated principal in the request even when I went through JAAS to login my user in. You traced to see that your login module is called? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Tuesday, February 14, 2006 2:12 PM To: flexcoders@yahoogroups.com Subject: FW: [flexcoders] setUsernamePassword and J2EE login (bounce) No one has any thoughts/ideas on this? - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Saturday, February 04, 2006 12:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login I finally got back to looking at this. I Instrumented my code to look at flashgateway.Gateway.getHttpRequest().getRemotePrincipal() and getRemoteUser(). RemoteUser is empty and remote principal is null. I see the userid/password credentials in the amf trace from the client (setting UsernamePassword on the service), but nothing in the service. I'm using remote objects. Remote object is a spring bean. I've implemented a JAAS login module that appears to be functioning correctly (loginContext succeeds). Using JBoss 4.0.x. Any thoughts? Thanks, Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Saturday, January 21, 2006 10:22 PM
RE: [flexcoders] Charts and DataTips
HitData.element points at the element (i.e.,in your case, the LineSeries) that generated the hit. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Wednesday, February 15, 2006 7:50 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Charts and DataTips Using hitData, is there a way to find out which line youre on? I can find out the index, but wondering short of going through each lineif theres a way to find out which line a datapoint is from. I have 5 line series and cant figure out a way to customize the tooltip based on what line Im on. _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Dynamically generating tabs:: using the createTab() Method
Hello, Does anyone have an example of Dynamically generating tabs and its content in a Tab Navigator say by clicking a button for example. Thanks in advance for all your help, -Augie Marcello III -- 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: setUsernamePassword and J2EE login (bounce)
Is this a valid test for this? I've verified that the login.jsp fires the JAAS login module and I do get the principal object back. In both jsps (login.jsp and verify.jsp), the user/principal information is null. (BTW, I've tried using the JBoss-supplied DatabaseServerLoginModule and my own to check for differences. None) Can we conclude from this that the JBoss JAAS module is not setting the principal information? Logintest.mxml { mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel width=100% height=100% title=Login Test mx:VBox height=100% width=100% mx:Button label=Login click=getUrl('login.jsp', 'LoginTest')/ mx:Button label=Verify click=getUrl('verify.jsp', 'LoginTest')/ /mx:VBox /mx:Panel /mx:Application } Login.jsp (snippet) { % Subject subject = new Subject(); UsernamePasswordHandler handler = new UsernamePasswordHandler(username, password.toCharArray()); LoginContext loginContext = new LoginContext(employee, subject, handler); loginContext.login(); String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); } % Login Remote User: %= user %br Login Principal: %= principal % } Verify.jsp { % String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); % Verify Remote User: %= user %br Verify Principal: %= principal % } - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Wednesday, February 15, 2006 11:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Right, basically attempt to remove Flex from the equation for the moment, get your JAAS module to fire using credentials you pass in using the JSP. Then after you've authenticated use the JSP to see if that newly created authenticated Principal is stored in the request. If it isn't there then the problem is bigger than RemoteObject. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 9:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) He's actually not suggesting either. He's suggesting creating a test JSP that returns the user principal objec to verify that the JSP is within an authenticated session. %=request.getUserPrincipal().getName()% It looks like you're going through a proxy which is using another session. As I mentioned earlier, there are issues with the proxy and forwarding credentials from an existing session. Our context was the use of web services but this could very well be what you're seeing as well. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 8:49 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Thanks for the responses. Sorry for my ignorance, but are you suggesting that the JSP simulate a login (invoking the loginContext/loginModule)? Or are you suggesting that the JSP set the UserPrincipal in the HTTP request (although I don't see a setter in the request interface API, which makes me wonder how JAAS injects the UserPrincipal into the request, but I can probably find that somewhere). To answer Matt's questions, no, I'm not sure JAAS successfully stores the principal, yes, the login module is being called, but I'll look at it more closely. Thanks again, Jim - Jim Schneider EyeCodeRight, LLC 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Wolf Sent: Wednesday, February 15, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) We have, as Carson mentioned, definately seen issues where the j_session_id is not properly propogated through the proxy. I would want to see, as Matt alludes to, do the credentials get propogated when we take the proxy out of the picture. I would create a simple JSP page which itself returns the UserPrincipal. Call that JSP from within your Flex app and read the value. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In
RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce)
Actually, this doesn't look correct at all. You're trying to go about this manually and that is not how J2EE security works. For this to work, you have to integrate with the container which means configuring your servlet container to delegate all J2EE authentication/authorization to your JAAS module. After that, you then have to secure resources within your web application however that's done in your container. For things like Tomcat, this is done directly in web.xml. Your situation here will likely be different. If you are using form auth, you then point your flex form to post to j_security_check passing in j_username and j_password. If you are using basic auth, you will simply be prompted by the browser for userid/password. Regardless of which you choose, the order of operations in the J2EE world is the following. 1. User requests a secure resource 2. Server responds with either the page you have configured for credentials (Form auth) or with a request to the client(browser) to garner then login information (Basic auth). 3. User enters credentials. 4. If successful, you now have an authenticated session that the server is intimately familiar with. To answer the next question, you cannot force these credentials into J2EE authentication session manually. You have to go through the server's provided interfaces. Unfortunately, J2EE security is much too broad a subject to get into in this medium. I've atttempted to give you a brief outline of the process here so that you can pursue it within the context of your container and its capabilities. Given the frequency of the questions surrounding this topic, we have submitted this topic as a candidate for an upcoming DevNet article. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 10:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Is this a valid test for this? I've verified that the login.jsp fires the JAAS login module and I do get the principal object back. In both jsps (login.jsp and verify.jsp), the user/principal information is null. (BTW, I've tried using the JBoss-supplied DatabaseServerLoginModule and my own to check for differences. None) Can we conclude from this that the JBoss JAAS module is not setting the principal information? Logintest.mxml { mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel width=100% height=100% title=Login Test mx:VBox height=100% width=100% mx:Button label=Login click=getUrl('login.jsp', 'LoginTest')/ mx:Button label=Verify click=getUrl('verify.jsp', 'LoginTest')/ /mx:VBox /mx:Panel /mx:Application } Login.jsp (snippet) { % Subject subject = new Subject(); UsernamePasswordHandler handler = new UsernamePasswordHandler(username, password.toCharArray()); LoginContext loginContext = new LoginContext(employee, subject, handler); loginContext.login(); String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); } % Login Remote User: %= user %br Login Principal: %= principal % } Verify.jsp { % String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); % Verify Remote User: %= user %br Verify Principal: %= principal % } - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Wednesday, February 15, 2006 11:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Right, basically attempt to remove Flex from the equation for the moment, get your JAAS module to fire using credentials you pass in using the JSP. Then after you've authenticated use the JSP to see if that newly created authenticated Principal is stored in the request. If it isn't there then the problem is bigger than RemoteObject. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 9:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) He's actually not suggesting either. He's suggesting creating a test JSP that returns the user principal objec to verify that the JSP is within an authenticated session. %=request.getUserPrincipal().getName()% It looks like you're going through a proxy which is
Re: FW: [flexcoders] setUsernamePassword and J2EE login (bounce)
I'm not a super jedi J2EE master nor have I stayed at a holiday inn express, but I will say we useflashgateway.Gateway.getHttpRequest().isUserInRole()andflashgateway.Gateway.getHttpRequest().getUserPrincipal().getName() without issue and we do have a custom JAAS module too. We are using JRun. We are using setUserNamePassword() in Flex on the service and Remote Objects (please don't yell at me Dave W :) ). All works fine on our Intranet. Works on our extranet too which is just access via regular intERnet via a proxy server. Note that we do not use flashgateway.Gateway.getHttpRequest().getRemotePrincipal()DK On 2/14/06, Jim Schneider [EMAIL PROTECTED] wrote: No one has any thoughts/ideas on this? - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Schneider Sent: Saturday, February 04, 2006 12:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login I finally got back to looking at this. I Instrumented my code to look at flashgateway.Gateway.getHttpRequest().getRemotePrincipal() and getRemoteUser(). RemoteUser is empty and remote principal is null. I see the userid/password credentials in the amf trace from the client (setting UsernamePassword on the service), but nothing in the service. I'm using remote objects. Remote object is a spring bean. I've implemented a JAAS login module that appears to be functioning correctly (loginContext succeeds). Using JBoss 4.0.x. Any thoughts? Thanks, Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager Sent: Saturday, January 21, 2006 10:22 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login If you use standard J2EE auth to the container, you can get the remote user provided you are not using the proxy. There is currently an issue with the proxy not forwarding the cookie in most ( all that we've seen ) circumstances. We have received a fix from Adobe on this that we are in the process of testing. This being said, if you don't use the proxy, you'll be able to acccess the user without issue from within your service implementations. Here's the kicker. The AS2 VM doesn't not handle HTTP status code 500. It stops parsing the HTTP response when it sees a 500 which means that you will never be able to get at any data that occurs due to a SOAP Fault. Per the web services spec, the container is required to return an HTTP 500 status code when returning a fault. Effectively, you can't handle SOAP faults when you don't use the proxy and you get that meaningless error message that looks like it simply couldn't connect to the service. This issue is handled by the proxy. It changes that HTTP status code to 200 so that the flash player can parse the request. This is a kludge if you ask me but that's where we are today. As a note, this is being addressed in FP8.5 but the fix will very likely not ( according to Adobe ) be fixed in earlier versions due to backward compatibility. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Saturday, January 21, 2006 7:37 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] setUsernamePassword and J2EE login I think you should be able to get it from the flashgateway.Gateway.getHttpRequest().getRemotePrincipal() or getRemoteUser(). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Schneider Sent: Wednesday, January 18, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] setUsernamePassword and J2EE login After calling setUsernamePassword on a service, is this information "available" to the backend services (remote object or web service)? Or perhaps after a J2EE/JAAS login? If so, how/where? We have a requirement to do a lot of logging of who's doing what in the system and was wondering whether there are any alternatives to passing a username/id with most/all APIs. Thanks for any help. Jim -- 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 Web site design development Computer software development Software design and development Macromedia flex
[flexcoders] Re: Mouse Event Filtering
Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Well, the Flash asdocs really don't make this clear, but I initially had a suspicion that overriding a handler instead of registering a listener might be the answer. I didn't pursue that direction right away because the method signatures don't return a Boolean or some other value to indicate that an event was handled and no further processing is wanted. In any case, I was able to achieve the glass pane effect that I wanted this morning with the following code: options = { width: 100%, height: 100%}; Canvas(createChild(Canvas, _glassPane, options)); _glassPane.setStyle(backgroundColor, #FF00FF); _glassPane.alpha = 0; _glassPane.visible = false; MovieClip(_glassPane).onPress = function() {} All of the above was required: without a backgroundColor being set, events weren't captured at all; The alpha, of course, was to make the glass pane actually invisible (there maybe other properties beside backgroundColor that also work for causing events to get caught, but I haven't experimented). The visible property -- once a backgroundColor property is set -- is what enables and disables the event capturing. However, for the toolbar that I also wanted to capture events so the text component below doesn't receive them, this is not yet a complete solution because it also prevents the child components (the toolbar buttons) from getting any events either. I've written some code to iterate the child components, but I don't know what to pass to them -- it seems intrinsically wrong that the toolbar needs to become an event manager from its onPress handler: // doesn't work -- onPress doesn't have event parameter anyway... MovieClip(this).onPress = mx.utils.Delegate.create(this, function (event) { var comp : UIObject = null; for (var i : Number = 0; i childDescriptors.length; i++) { comp = getChildAt(i); if (hitTest(comp)) { comp.handleEvent(event); } } }); (Incidentally, if there is some other more appropriate way for iterating child components, I'd appreciate hearing about it). So Flash/Flex gurus ... what am I missing here...? Thanks! Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: Tony Pujals Sent: Wednesday, February 15, 2006 7:43 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Mouse Event Filtering Sorry, I don't know if this works in the Flex 2 beta, but I should have specified that we're working with Flex 1.5 at Yahoo. Unfortunately, EventDispatcher states: function addEventListener(eventType:String, eventListener):Void { // Note: In the future, we may add a third parameter, // useCapture:Boolean, to be compliant with the // DOM Level 3 Events spec, // http://www.w3.org/TR/DOM-Level- 3-Events/events.html. . . . This would have been very convenient if it were implemented. Nevertheless, Button and other components do seem able to capture the event. Is this a question for one of the Flash lists (any recommendation to which list I should post this question)? Thanks, Matt - if you or anyone else has any other ideas, I'd really love to hear them -Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, February 14, 2006 9:45 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Mouse Event Filtering you want to add your mouse event listener with useCapture set to true and then call stopPropagation on the event in your handler (I think). I believe that will prevent it from moving further down the hierarchy. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony Pujals Sent: Tuesday, February 14, 2006 5:27 PM To: flexcoders@yahoogroups.com Subject:
Re: [flexcoders] Email System POP3/SMTP on Flex
Is AMFPHP is useful for thati think now FES-2 gives flexibility to work with remote object any idea On 2/15/06, Rob Rusher [EMAIL PROTECTED] wrote: Flex requires a back-end to connect to a mail server, so there will have to be a "Flex and something". In this case it happens to be ColdFusion. So to answer your question, No. There is not a Flex or Flash _ONLY _ version of an email system. They all require additional technology to communicate with the mail server. Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher blog:http://www.robrusher.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of AhmedSent: Monday, February 13, 2006 8:36 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Email System POP3/SMTP on Flex Hello .. The Flex Email system published on the net is designed using Flex 2.0 and Cold fusion, and requires Cold Fusion Adapter. It there a Email System for POP3 and SMTP using Flex or Flash only without Cold Fusion ? Regards, Eng. Ahmed. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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. -- jignesh dodiya -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: setUsernamePassword and J2EE login (bounce)
Thanks for the info. First, let me clarify that this is not how we intend to do login/auth. I was merely trying to get the LoginModule to fire without going through any server-side/flex/proxy. Does this process only work if we try to access a restricted resource? That is, if the first screen in my Flex app is the login page, can I post the form to one of my own services (remote object), manually do the handler/loginContext process as described in login.jsp below? Or does it need to be posted to this j_security_check? If this login module/context succeeds (login/commit), does it matter whether this was called through my own code or from this mysterious j_security_check? (BTW, what is j_security_check? A jsp, url to servlet handled by container, I can do the search on this myself, but if you want to answer, I'd certainly read it :-)) Is there some standard way of handling an app that requires the user to login prior to doing anything? For example, I see the app being launched from a link/button on our web site. I want the login page to display. Do we have this link/button point to some fake (or real) protected resource to kick off the auth process? As always, thanks for the education. Jim - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Actually, this doesn't look correct at all. You're trying to go about this manually and that is not how J2EE security works. For this to work, you have to integrate with the container which means configuring your servlet container to delegate all J2EE authentication/authorization to your JAAS module. After that, you then have to secure resources within your web application however that's done in your container. For things like Tomcat, this is done directly in web.xml. Your situation here will likely be different. If you are using form auth, you then point your flex form to post to j_security_check passing in j_username and j_password. If you are using basic auth, you will simply be prompted by the browser for userid/password. Regardless of which you choose, the order of operations in the J2EE world is the following. 1. User requests a secure resource 2. Server responds with either the page you have configured for credentials (Form auth) or with a request to the client(browser) to garner then login information (Basic auth). 3. User enters credentials. 4. If successful, you now have an authenticated session that the server is intimately familiar with. To answer the next question, you cannot force these credentials into J2EE authentication session manually. You have to go through the server's provided interfaces. Unfortunately, J2EE security is much too broad a subject to get into in this medium. I've atttempted to give you a brief outline of the process here so that you can pursue it within the context of your container and its capabilities. Given the frequency of the questions surrounding this topic, we have submitted this topic as a candidate for an upcoming DevNet article. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 10:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Is this a valid test for this? I've verified that the login.jsp fires the JAAS login module and I do get the principal object back. In both jsps (login.jsp and verify.jsp), the user/principal information is null. (BTW, I've tried using the JBoss-supplied DatabaseServerLoginModule and my own to check for differences. None) Can we conclude from this that the JBoss JAAS module is not setting the principal information? Logintest.mxml { mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel width=100% height=100% title=Login Test mx:VBox height=100% width=100% mx:Button label=Login click=getUrl('login.jsp', 'LoginTest')/ mx:Button label=Verify click=getUrl('verify.jsp', 'LoginTest')/ /mx:VBox /mx:Panel /mx:Application } Login.jsp (snippet) { % Subject subject = new Subject(); UsernamePasswordHandler handler = new UsernamePasswordHandler(username, password.toCharArray()); LoginContext loginContext = new LoginContext(employee, subject, handler); loginContext.login(); String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); } %
Re: [flexcoders] Re: setUsernamePassword and J2EE login (bounce)
I would also suggest looking in your flex install directory for examples on this. Look in resources\security. DK On 2/15/06, Carson Hager [EMAIL PROTECTED] wrote: Actually, this doesn't look correct at all. You're trying to go about this manually and that is not how J2EE security works. For this to work, you have to integrate with the container which means configuring your servlet container to delegate all J2EE authentication/authorization to your JAAS module. After that, you then have to secure resources within your web application however that's done in your container. For things like Tomcat, this is done directly in web.xml. Your situation here will likely be different. If you are using form auth, you then point your flex form to post to j_security_check passing in j_username and j_password. If you are using basic auth, you will simply be prompted by the browser for userid/password. Regardless of which you choose, the order of operations in the J2EE world is the following. 1. User requests a secure resource 2. Server responds with either the page you have configured for credentials (Form auth) or with a request to the client(browser) to garner then login information (Basic auth). 3. User enters credentials. 4. If successful, you now have an authenticated session that the server is intimately familiar with. To answer the next question, you cannot force these credentials into J2EE authentication session manually. You have to go through the server's provided interfaces. Unfortunately, J2EE security is much too broad a subject to get into in this medium. I've atttempted to give you a brief outline of the process here so that you can pursue it within the context of your container and its capabilities. Given the frequency of the questions surrounding this topic, we have submitted this topic as a candidate for an upcoming DevNet article. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 10:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Is this a valid test for this? I've verified that the login.jsp fires the JAAS login module and I do get the principal object back. In both jsps (login.jsp and verify.jsp), the user/principal information is null. (BTW, I've tried using the JBoss-supplied DatabaseServerLoginModule and my own to check for differences. None) Can we conclude from this that the JBoss JAAS module is not setting the principal information? Logintest.mxml { mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel width=100% height=100% title=Login Test mx:VBox height=100% width=100% mx:Button label=Login click=getUrl('login.jsp', 'LoginTest')/ mx:Button label=Verify click=getUrl('verify.jsp', 'LoginTest')/ /mx:VBox /mx:Panel /mx:Application } Login.jsp (snippet) { % Subject subject = new Subject(); UsernamePasswordHandler handler = new UsernamePasswordHandler(username, password.toCharArray()); LoginContext loginContext = new LoginContext(employee, subject, handler); loginContext.login(); String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); } % Login Remote User: %= user %br Login Principal: %= principal % } Verify.jsp { % String user = request.getRemoteUser(); String principal = null; if (request.getUserPrincipal() != null) principal = request.getUserPrincipal().getName(); % Verify Remote User: %= user %br Verify Principal: %= principal % } - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Wednesday, February 15, 2006 11:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Right, basically attempt to remove Flex from the equation for the moment, get your JAAS module to fire using credentials you pass in using the JSP. Then after you've authenticated use the JSP to see if that newly created authenticated Principal is stored in the request. If it isn't there then the problem is bigger than RemoteObject. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 9:05 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) He's
RE: [flexcoders] Re: Mouse Event Filtering
Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Well, the Flash asdocs really don't make this clear, but I initially had a suspicion that overriding a handler instead of registering a listener might be the answer. I didn't pursue that direction right away because the method signatures don't return a Boolean or some other value to indicate that an event was handled and no further processing is wanted. In any case, I was able to achieve the glass pane effect that I wanted this morning with the following code: options = { width: 100%, height: 100%}; Canvas(createChild(Canvas, _glassPane, options)); _glassPane.setStyle(backgroundColor, #FF00FF); _glassPane.alpha = 0; _glassPane.visible = false; MovieClip(_glassPane).onPress = function() {} All of the above was required: without a backgroundColor being set, events weren't captured at all; The alpha, of course, was to make the glass pane actually invisible (there maybe other properties beside backgroundColor that also work for causing events to get caught, but I haven't experimented). The visible property -- once a backgroundColor property is set -- is what enables and disables the event capturing. However, for the toolbar that I also wanted to capture events so the text component below doesn't receive them, this is not yet a complete solution because it also prevents the child components (the toolbar buttons) from getting any events either. I've written some code to iterate the child components, but I don't know what to pass to them -- it seems intrinsically wrong that the toolbar needs to become an event manager from its onPress handler: // doesn't work -- onPress doesn't have event parameter anyway... MovieClip(this).onPress = mx.utils.Delegate.create(this, function (event) { var comp : UIObject = null; for (var i : Number = 0; i childDescriptors.length; i++) { comp = getChildAt(i); if (hitTest(comp)) { comp.handleEvent(event); } } }); (Incidentally, if there is some other more appropriate way for iterating child components, I'd appreciate hearing about it). So Flash/Flex gurus ... what am I missing here...? Thanks! Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: Tony Pujals Sent: Wednesday, February 15, 2006 7:43 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Mouse Event Filtering Sorry, I don't know if this works in the Flex 2 beta, but I should have specified that we're working with Flex 1.5 at Yahoo. Unfortunately, EventDispatcher states: function addEventListener(eventType:String, eventListener):Void { // Note: In the future, we may add a third parameter, // useCapture:Boolean, to be compliant with the // DOM Level 3 Events spec, // http://www.w3.org/TR/DOM-Level- 3-Events/events.html. . . . This would have been very convenient if it were implemented. Nevertheless, Button and other components do seem able to capture the event. Is this a question for one of the Flash lists (any recommendation to which list I should post this
Re: [flexcoders] Flex Builder to ship with JDT? Eclipse plugins compatibility with Flex Builder 2?
install the plugin version (don't copy it over as its not that simple). the stand alone editor is extremely crippled (even ant is not there!)On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: I'm this days trying the new Flex Builder 2 and I notice two things that I would ask to this list:1.- JDT plugin is not included in the bundle. The final release will ship without this functionality? Why is to remove such useful functionality?. Flex is not only a product for develop rich client RIAs. Most of the times enterprise will use Java to code server side part of RIAs. (and more if you take account that FES is a J2EE web application). If not many people will have to open another IDE to code the server side part of their applications. 2.- I was trying to throw a plugin compatible with Eclipse 3.1.x in the plugins folder of my Flex builder 2 installation and nothing appears when I open Flex Builder 2. Is this normal?. One of the great things of eclipse is the posibility to incorporate other plugins available for the platform. For example the plugin I was trying to install (JOPE) allows me to have access to my JOnAS application server and is very useful to maintain my workflow in only one IDE. -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Mouse Event Filtering
I should have pointed out I was talking specifically about the custom floating toolbar you mentioned in point 2 of your original post. It seems to me your toolbar is handling events from other components when it shouldn't. Try putting the event.target test into your toolbar code; no need to put it into any other components. Doug --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Well, the Flash asdocs really don't make this clear, but I initially had a suspicion that overriding a handler instead of registering a listener might be the answer. I didn't pursue that direction right away because the method signatures don't return a Boolean or some other value to indicate that an event was handled and no further processing is wanted. In any case, I was able to achieve the glass pane effect that I wanted this morning with the following code: options = { width: 100%, height: 100%}; Canvas(createChild(Canvas, _glassPane, options)); _glassPane.setStyle(backgroundColor, #FF00FF); _glassPane.alpha = 0; _glassPane.visible = false; MovieClip(_glassPane).onPress = function() {} All of the above was required: without a backgroundColor being set, events weren't captured at all; The alpha, of course, was to make the glass pane actually invisible (there maybe other properties beside backgroundColor that also work for causing events to get caught, but I haven't experimented). The visible property -- once a backgroundColor property is set -- is what enables and disables the event capturing. However, for the toolbar that I also wanted to capture events so the text component below doesn't receive them, this is not yet a complete solution because it also prevents the child components (the toolbar buttons) from getting any events either. I've written some code to iterate the child components, but I don't know what to pass to them -- it seems intrinsically wrong that the toolbar needs to become an event manager from its onPress handler: // doesn't work -- onPress doesn't have event parameter anyway... MovieClip(this).onPress = mx.utils.Delegate.create(this, function (event) { var comp : UIObject = null; for (var i : Number = 0; i childDescriptors.length; i++) { comp = getChildAt(i); if (hitTest(comp)) { comp.handleEvent(event); } } }); (Incidentally, if there is some other more appropriate way for iterating child components, I'd appreciate hearing about it). So Flash/Flex gurus ... what am I missing here...? Thanks! Tony tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: Tony Pujals Sent: Wednesday, February 15, 2006 7:43 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Mouse Event Filtering Sorry, I don't know if this works in the Flex 2 beta, but I should have specified that we're working with Flex 1.5 at Yahoo. Unfortunately, EventDispatcher states: function addEventListener(eventType:String, eventListener):Void { // Note: In the future, we may add a third parameter, // useCapture:Boolean, to be
[flexcoders] HitArea Property
Is anyone else having the problem that when you change the hit area of any sprite, to another sprite that your browser crashes immediately? Is this an issue currently, or are others successful with it. Example class extending from Sprite: //Create artificial hit area var dims:Rectangle = getBounds(this); hitArea = new Sprite(); hitArea.graphics.drawRect(dims.x,dims.y,dims.width,dims.height); hitArea.mouseEnabled = false; -Trey -- 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] Handling NetStream Runtime Errors..?
Hi, I have created a NetStream object that publishes video/audio via a NetConnection to Flash Media Server (Flex beta 1). I have setup a netStatus listener but find that some errors are reported as run-time errors and are not delivered to my netStatus handler. For example: Error #2044: Unhandled NetStatusEvent: level=error, code=NetStream.Publish.BadName at flex2FMS_1/flex2FMS_1::netStatus() Is there something I can do to receive this event in an event handler? Is there something I can do to stop the run-time error popup from appearing? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- 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] Any way to get color value from color picker while coding in flex-2.....
As we have facility to choose color hex.dec. no from color picker while authoring flash code. same way is there any way to get the color hex. no from the color picker while coding in flex authoring, i search but didn't foundcan understand it may not be facilitate .but if it is posible, its good feature...atleast for u when u r doing some selected color stuff with RIAits just handy tool. anybody have idea thanx -- 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] HttpService caching
Is there anyway to forcibly tell the httpservice to not cache? For some users its caching.could it be the server caching the file? Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] HttpService caching
You need to specify no cache headers in the page that returns the XML. What page technology are you using? If you're using JSP, the following will do it. response.setHeader("Cache-Control", "max-age=0, must-revalidate"); Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Wednesday, February 15, 2006 1:56 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] HttpService caching Is there anyway to forcibly tell the httpservice to not cache? For some users its caching.could it be the server caching the file? Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] HttpService caching
Using ColdFusion to construct an xml file with cfxml. How would I do this? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 2:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] HttpService caching You need to specify no cache headers in the page that returns the XML. What page technology are you using? If you're using JSP, the following will do it. response.setHeader(Cache-Control, max-age=0, must-revalidate); Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda Sent: Wednesday, February 15, 2006 1:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HttpService caching Is there anyway to forcibly tell the httpservice to not cache? For some users its caching.could it be the server caching the file? Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] HttpService caching
I'm not a CFer by any stretch but I'm sure there is a way to add a header. I found a reference to the following. CFHEADER NAME="Cache-Control"VALUE="max-age=0, must-revalidate" I have no idea if that syntax is valid with what you're using. It appears to bea pretty old post. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Wednesday, February 15, 2006 2:00 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HttpService caching Using ColdFusion to construct an xml file with cfxml. How would I do this? _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carson HagerSent: Wednesday, February 15, 2006 2:58 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HttpService caching You need to specify no cache headers in the page that returns the XML. What page technology are you using? If you're using JSP, the following will do it. response.setHeader("Cache-Control", "max-age=0, must-revalidate"); Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan MirandaSent: Wednesday, February 15, 2006 1:56 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] HttpService caching Is there anyway to forcibly tell the httpservice to not cache? For some users its caching.could it be the server caching the file? Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Email System POP3/SMTP on Flex
With Flex 2.0 it is possible to connect directly from client to mail servers, both IMAP or POP3. I have actually built some prototypes to prove it out but have not taken it further. I imagine that you will start to see some mail API's popup from different developers. Kevin From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jignesh DodiyaSent: Wednesday, February 15, 2006 2:22 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Email System POP3/SMTP on Flex Is AMFPHP is useful for thati think now FES-2 gives flexibility to work with remote object any idea On 2/15/06, Rob Rusher [EMAIL PROTECTED] wrote: Flex requires a back-end to connect to a mail server, so there will have to be a "Flex and something". In this case it happens to be ColdFusion. So to answer your question, No. There is not a Flex or Flash _ONLY _ version of an email system. They all require additional technology to communicate with the mail server. Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher blog:http://www.robrusher.com From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of AhmedSent: Monday, February 13, 2006 8:36 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Email System POP3/SMTP on Flex Hello .. The Flex Email system published on the net is designed using "Flex 2.0" and "Cold fusion", and requires "Cold Fusion Adapter". It there a "Email System for POP3 and SMTP" using "Flex" or "Flash" only without "Cold Fusion" ? Regards, Eng. Ahmed. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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. -- jignesh dodiya -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: Mouse Event Filtering
Hey Doug - thanks for the input. This is a link to a screenshot that may help clear up the issue: http://www.geocities.com/tonypujals/eventcapture.jpg What the screenshot shows is that I dragged the toolbar over the TextArea component. Then, I dragged the toolbar just a little bit again ... which resulted in the highlighted text that you see displayed. In other words, the toolbar isn't handling events from other components when it shouldn't - the opposite is happening: other components are receiving events I don't want them to. When I mouse down and drag the toolbar, I want it to move without events propagating to components below it. I want the toolbar events to be consumed when they act upon the toolbar. Also, what the picture doesn't show since Windows doesn't capture it in screenshots is that the mouse cursor over the toolbar is an i-beam cursor - which is what it should be when over text, but not over the toolbar. It is only an i-beam when it is not specifically over one of the toolbar buttons, just the toolbar gradient background Canvas. Rather than using mouse handlers for the toolbar, I tried overriding the onMouseXXX methods of MovieClip in the hope perhaps that this would prevent some superclass behavior which forwards the mouse events to further processing, but it didn't help Argh... tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering I should have pointed out I was talking specifically about the custom floating toolbar you mentioned in point 2 of your original post. It seems to me your toolbar is handling events from other components when it shouldn't. Try putting the event.target test into your toolbar code; no need to put it into any other components. Doug --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Well, the Flash asdocs really don't make this clear, but I initially had a suspicion that overriding a handler instead of registering a listener might be the answer. I didn't pursue that direction right away because the method signatures don't return a Boolean or some other value to indicate that an event was handled and no further processing is wanted. In any case, I was able to achieve the glass pane effect that I wanted this morning with the following code: options = { width: 100%, height: 100%}; Canvas(createChild(Canvas, _glassPane, options)); _glassPane.setStyle(backgroundColor, #FF00FF); _glassPane.alpha = 0; _glassPane.visible = false; MovieClip(_glassPane).onPress = function() {} All of the above was required: without a backgroundColor being set, events weren't captured at all; The alpha, of course, was to make the glass pane actually invisible (there maybe other properties beside backgroundColor that also work for causing events to get caught, but I haven't experimented). The visible property -- once a backgroundColor property is set -- is what enables and disables the event capturing. However, for the toolbar that I also wanted to capture events so the
Re: [flexcoders] Flex Builder to ship with JDT? Eclipse plugins compatibility with Flex Builder 2?
Hi Johannes,Could you elaborate? What plugin version are you referring?Thanks for the support!2006/2/15, Johannes Nel [EMAIL PROTECTED] : install the plugin version (don't copy it over as its not that simple). the stand alone editor is extremely crippled (even ant is not there!) On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: I'm this days trying the new Flex Builder 2 and I notice two things that I would ask to this list:1.- JDT plugin is not included in the bundle. The final release will ship without this functionality? Why is to remove such useful functionality?. Flex is not only a product for develop rich client RIAs. Most of the times enterprise will use Java to code server side part of RIAs. (and more if you take account that FES is a J2EE web application). If not many people will have to open another IDE to code the server side part of their applications. 2.- I was trying to throw a plugin compatible with Eclipse 3.1.x in the plugins folder of my Flex builder 2 installation and nothing appears when I open Flex Builder 2. Is this normal?. One of the great things of eclipse is the posibility to incorporate other plugins available for the platform. For example the plugin I was trying to install (JOPE) allows me to have access to my JOnAS application server and is very useful to maintain my workflow in only one IDE. -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex Builder to ship with JDT? Eclipse plugins compatibility with Flex Builder 2?
the installer for beta 1 gives you the choice between framework only, stand alone editor or plugin version. when you install the plugin version you get asked to point to your eclipse directory. not much more to say about it...well the zorn plugin now plays nice with all my other plugins so thats a good thing :)On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi Johannes,Could you elaborate? What plugin version are you referring?Thanks for the support!2006/2/15, Johannes Nel [EMAIL PROTECTED] : install the plugin version (don't copy it over as its not that simple). the stand alone editor is extremely crippled (even ant is not there!) On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: I'm this days trying the new Flex Builder 2 and I notice two things that I would ask to this list:1.- JDT plugin is not included in the bundle. The final release will ship without this functionality? Why is to remove such useful functionality?. Flex is not only a product for develop rich client RIAs. Most of the times enterprise will use Java to code server side part of RIAs. (and more if you take account that FES is a J2EE web application). If not many people will have to open another IDE to code the server side part of their applications. 2.- I was trying to throw a plugin compatible with Eclipse 3.1.x in the plugins folder of my Flex builder 2 installation and nothing appears when I open Flex Builder 2. Is this normal?. One of the great things of eclipse is the posibility to incorporate other plugins available for the platform. For example the plugin I was trying to install (JOPE) allows me to have access to my JOnAS application server and is very useful to maintain my workflow in only one IDE. -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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. -- j:pn -- 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 Web site design development Computer software development Software design and development
[flexcoders] Internet Explorer Crashes down when closing flex application
I have noted that when i close the flex applicaton in IE, the Internet Explorer sends me message that Internet explorer has encounter a problem and need to close it Its can be recreated all the times since i installed Flex-2 beta it was not problem in flex-2 alfa.. is my installation is not proper?? or some other reason??? anybody has experieced such a problem?? thanx jignesh -- 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] Warning about unconverted Bindable data
Can anyone tell me what this error means? warning: unconverted Bindable metadata in class ... Thanks. Tobias. -- 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: Mouse Event Filtering
Yeah, it's possible this is something entirely different from my situation, but I think there is still the similarity that an obscured ocmponent is acting as if it's not obscured. Can you post some code? --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Hey Doug - thanks for the input. This is a link to a screenshot that may help clear up the issue: http://www.geocities.com/tonypujals/eventcapture.jpg What the screenshot shows is that I dragged the toolbar over the TextArea component. Then, I dragged the toolbar just a little bit again ... which resulted in the highlighted text that you see displayed. In other words, the toolbar isn't handling events from other components when it shouldn't - the opposite is happening: other components are receiving events I don't want them to. When I mouse down and drag the toolbar, I want it to move without events propagating to components below it. I want the toolbar events to be consumed when they act upon the toolbar. Also, what the picture doesn't show since Windows doesn't capture it in screenshots is that the mouse cursor over the toolbar is an i- beam cursor - which is what it should be when over text, but not over the toolbar. It is only an i-beam when it is not specifically over one of the toolbar buttons, just the toolbar gradient background Canvas. Rather than using mouse handlers for the toolbar, I tried overriding the onMouseXXX methods of MovieClip in the hope perhaps that this would prevent some superclass behavior which forwards the mouse events to further processing, but it didn't help Argh... tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering I should have pointed out I was talking specifically about the custom floating toolbar you mentioned in point 2 of your original post. It seems to me your toolbar is handling events from other components when it shouldn't. Try putting the event.target test into your toolbar code; no need to put it into any other components. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Well, the Flash asdocs really don't make this clear, but I initially had a suspicion that overriding a handler instead of registering a listener might be the answer. I didn't pursue that direction right away because the method signatures don't return a Boolean or some other value to indicate that an event was handled and no further processing is wanted. In any case, I was able to achieve the glass pane effect that I wanted this morning with the following code: options = { width: 100%, height: 100%}; Canvas(createChild(Canvas, _glassPane, options)); _glassPane.setStyle(backgroundColor, #FF00FF); _glassPane.alpha = 0; _glassPane.visible = false; MovieClip(_glassPane).onPress = function() {} All of the above was required: without a backgroundColor being set, events weren't captured at all; The alpha, of course, was
Re: [flexcoders] Flex Builder to ship with JDT? Eclipse plugins compatibility with Flex Builder 2?
Oh! I didn't remember the three flavors, that's good!, ...and solves problems with JDT :)2006/2/15, Johannes Nel [EMAIL PROTECTED] : the installer for beta 1 gives you the choice between framework only, stand alone editor or plugin version. when you install the plugin version you get asked to point to your eclipse directory. not much more to say about it...well the zorn plugin now plays nice with all my other plugins so thats a good thing :)On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi Johannes,Could you elaborate? What plugin version are you referring?Thanks for the support!2006/2/15, Johannes Nel [EMAIL PROTECTED] : install the plugin version (don't copy it over as its not that simple). the stand alone editor is extremely crippled (even ant is not there!) On 2/15/06, Carlos Rovira [EMAIL PROTECTED] wrote: I'm this days trying the new Flex Builder 2 and I notice two things that I would ask to this list:1.- JDT plugin is not included in the bundle. The final release will ship without this functionality? Why is to remove such useful functionality?. Flex is not only a product for develop rich client RIAs. Most of the times enterprise will use Java to code server side part of RIAs. (and more if you take account that FES is a J2EE web application). If not many people will have to open another IDE to code the server side part of their applications. 2.- I was trying to throw a plugin compatible with Eclipse 3.1.x in the plugins folder of my Flex builder 2 installation and nothing appears when I open Flex Builder 2. Is this normal?. One of the great things of eclipse is the posibility to incorporate other plugins available for the platform. For example the plugin I was trying to install (JOPE) allows me to have access to my JOnAS application server and is very useful to maintain my workflow in only one IDE. -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- ::| Carlos Rovira::| http://www.carlosrovira.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 . -- j:pn -- 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 Web site design development
RE: [flexcoders] Re: Mouse Event Filtering
Yes, that's exactly the similarity -- but an obscured component should not even have to be aware of a toolbar component above it. It should not receive a mouseDown event if the component above is handling it. It's only my toolbar canvas that seems to allow events to pass through to the TextArea below it -- the toolbar buttons don't. As far as code, I'll create a streamlined example that should make it a little easier to see what I'm talking about Thanks again, Doug. tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 3:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Yeah, it's possible this is something entirely different from my situation, but I think there is still the similarity that an obscured ocmponent is acting as if it's not obscured. Can you post some code? --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Hey Doug - thanks for the input. This is a link to a screenshot that may help clear up the issue: http://www.geocities.com/tonypujals/eventcapture.jpg What the screenshot shows is that I dragged the toolbar over the TextArea component. Then, I dragged the toolbar just a little bit again ... which resulted in the highlighted text that you see displayed. In other words, the toolbar isn't handling events from other components when it shouldn't - the opposite is happening: other components are receiving events I don't want them to. When I mouse down and drag the toolbar, I want it to move without events propagating to components below it. I want the toolbar events to be consumed when they act upon the toolbar. Also, what the picture doesn't show since Windows doesn't capture it in screenshots is that the mouse cursor over the toolbar is an i- beam cursor - which is what it should be when over text, but not over the toolbar. It is only an i-beam when it is not specifically over one of the toolbar buttons, just the toolbar gradient background Canvas. Rather than using mouse handlers for the toolbar, I tried overriding the onMouseXXX methods of MovieClip in the hope perhaps that this would prevent some superclass behavior which forwards the mouse events to further processing, but it didn't help Argh... tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering I should have pointed out I was talking specifically about the custom floating toolbar you mentioned in point 2 of your original post. It seems to me your toolbar is handling events from other components when it shouldn't. Try putting the event.target test into your toolbar code; no need to put it into any other components. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object: if (event.target == this) { // handle the event... } It might be worth trying that somewhere, like in a delegate for the mouseMove event or in handleEvent(). Hope that's of some help. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Well, the Flash asdocs really don't make this clear, but I initially had a
[flexcoders] LinkBar questions - Flex 1.5
The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] LinkBar questions - Flex 1.5
Bug? :: shugs :: Fix? Throw it in an HBox with hScrollPolicy = "auto" - Original Message - From: Graham, Jason To: flexcoders@yahoogroups.com Sent: Wednesday, February 15, 2006 8:40 PM Subject: [flexcoders] LinkBar questions - Flex 1.5 The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex2: debugging mxml
hi all tell me to rtfm, but i could not find any information on this. is it possible to place a breakpoint in an mxml page, and if not (now ala flex 1.5 since i don't know if flex 2 config has a setting to create .as files) can i put a breakpoint in the generated as file somehow? thanks j-- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 builder: is there a way to turn warnings off
or at least say what should generate a warning (like FDT)-- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] LinkBar questions - Flex 1.5
Heres basically what I did, the LinkBar still forces the application to resize to the length of the link bar. TabBar has the same behavior. I tried hScrollPolicy=auto also, tried putting the hScrollPolicy on the linkbar as well. Still no work, the HBox doesnt seem to have any affect. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:HBox width=100% hScrollPolicy=on mx:LinkBar dataProvider=vs/mx:LinkBar /mx:HBox mx:ViewStack id=vs width=100% height=100% mx:Panel title=1 label=TESTING LINK BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=2 label=TESTING LINK 1BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=3 label=TESTING LINK 2 width=100% height=100%/mx:Panel mx:Panel title=4 label=TESTING LINK 3BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=5 label=TESTING LINK 4BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=6 label=TESTING LINK 5BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=7 label=TESTING LINK 6BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=8 label=TESTING LINK 7BAR LENGTH width=100% height=100%/mx:Panel mx:Panel title=9 label=TESTING LINK 8BAR LENGTH width=100% height=100%/mx:Panel /mx:ViewStack /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, February 15, 2006 8:01 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] LinkBar questions - Flex 1.5 Bug? :: shugs :: Fix? Throw it in an HBox with hScrollPolicy = auto - Original Message - From: Graham, Jason To: flexcoders@yahoogroups.com Sent: Wednesday, February 15, 2006 8:40 PM Subject: [flexcoders] LinkBar questions - Flex 1.5 The LinkBar appears not to scroll, if I hook it up to a view stack with say 15 items in the view stack it causes the application to resize to the length of the LinkBar which can be very long. Is this a bug? Is there a way to fix this? I have tried to turn on the hScrollPolicy to no avail. THanks -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Warning about unconverted Bindable data
give me the more code!2006/2/16, tobiaspatton [EMAIL PROTECTED]: Can anyone tell me what this error means? warning: unconverted Bindable metadata in class ... Thanks. Tobias. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Internet Explorer Crashes down when closing flex application
uninstall the flashPlayer 8.5reinstall FlashPlayer 4.52006/2/16, Jignesh M. Dodiya [EMAIL PROTECTED]: I have noted that when i close the flex applicaton in IE, the Internet Explorer sends me message that Internet explorer has encounter a problem and need to close it Its can be recreated all the times since i installed Flex-2 beta it was not problem in flex-2 alfa.. is my installation is not proper?? or some other reason??? anybody has experieced such a problem?? thanx jignesh -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex 2 builder: is there a way to turn warnings off
One of these may be what youre looking for: http://livedocs.macromedia.com/flex/20beta1/docs/0260.html http://livedocs.macromedia.com/flex/20beta1/docs/1443.html From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Wednesday, February 15, 2006 9:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 builder: is there a way to turn warnings off or at least say what should generate a warning (like FDT) -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex2: debugging mxml
http://livedocs.macromedia.com/flex/20beta1/docs/0402.html You can output the generated as by adding keep to the compiler arguments. But you cant add breakpoints to debug em AFAICT http://livedocs.macromedia.com/flex/20beta1/docs/0388.html From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Wednesday, February 15, 2006 9:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: debugging mxml hi all tell me to rtfm, but i could not find any information on this. is it possible to place a breakpoint in an mxml page, and if not (now ala flex 1.5 since i don't know if flex 2 config has a setting to create .as files) can i put a breakpoint in the generated as file somehow? thanks j -- j:pn -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] FP 8.5: Memory Leak Fixed?
There is an apparent memory leak in Flash 8 (something to do with bitmap caching). Is this or has this been fixed in 8.5?The leak occurs after the swf has been playing in excess of 24 hours.Thanks, -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2
Can you post some example XML from it? Clearly the parser didn't like it... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Wednesday, February 15, 2006 1:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2 I'm using PHP to make an xml output so i've changed my HTTPService to http://192.168.0.200/PHP/katalog.php and i'm sure it works cause i have a flex 1.5 application running with that Service... --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Well, how did you change the HTTPService? Are you sure it's successfully downloading the file? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Tuesday, February 14, 2006 10:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2 I keep on getting this error in flex: TypeError: Error #1009: null has no properties. at mx.rpc.xml::NamespaceUtil$/getLocalName() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.http::HTTPService/http://www.macromedia.com/2005/flex/mx/inter nal::processResult() at mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/intern al::resultHandler() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::Producer/acknowledge() at C:\dev\enterprise_beta1\frameworks\libs\framework.swc (mx/validators/Validator) $132::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() I cannot find a way to solve it... only thing i did is that i changed httpservice for the flexstore sample... Any solution for this error? -- 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 -- 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: Mouse Event Filtering
Can you try assigning onPress to the component, I think that's how we've gotten our blockers to work in the past. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony Pujals Sent: Wednesday, February 15, 2006 3:33 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Mouse Event Filtering Yes, that's exactly the similarity -- but an obscured component should not even have to be aware of a toolbar component above it. It should not receive a mouseDown event if the component above is handling it. It's only my toolbar canvas that seems to allow events to pass through to the TextArea below it -- the toolbar buttons don't. As far as code, I'll create a streamlined example that should make it a little easier to see what I'm talking about Thanks again, Doug. tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 3:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Yeah, it's possible this is something entirely different from my situation, but I think there is still the similarity that an obscured ocmponent is acting as if it's not obscured. Can you post some code? --- In flexcoders@yahoogroups.com, Tony Pujals [EMAIL PROTECTED] wrote: Hey Doug - thanks for the input. This is a link to a screenshot that may help clear up the issue: http://www.geocities.com/tonypujals/eventcapture.jpg What the screenshot shows is that I dragged the toolbar over the TextArea component. Then, I dragged the toolbar just a little bit again ... which resulted in the highlighted text that you see displayed. In other words, the toolbar isn't handling events from other components when it shouldn't - the opposite is happening: other components are receiving events I don't want them to. When I mouse down and drag the toolbar, I want it to move without events propagating to components below it. I want the toolbar events to be consumed when they act upon the toolbar. Also, what the picture doesn't show since Windows doesn't capture it in screenshots is that the mouse cursor over the toolbar is an i- beam cursor - which is what it should be when over text, but not over the toolbar. It is only an i-beam when it is not specifically over one of the toolbar buttons, just the toolbar gradient background Canvas. Rather than using mouse handlers for the toolbar, I tried overriding the onMouseXXX methods of MovieClip in the hope perhaps that this would prevent some superclass behavior which forwards the mouse events to further processing, but it didn't help Argh... tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering I should have pointed out I was talking specifically about the custom floating toolbar you mentioned in point 2 of your original post. It seems to me your toolbar is handling events from other components when it shouldn't. Try putting the event.target test into your toolbar code; no need to put it into any other components. Doug --- In flexcoders@yahoogroups.com, Tony Pujals tonyp@ wrote: Thanks for the tip, Doug ... the only problem is that I want the toolbar to be a generic component that doesn't require any specially awareness from other components in the form. I don't want to mandate that other programmers have to modify their event-handling code just to accommodate my toolbar weirdness I'm a little surprised this has turned out to be so challenging. Since I know various components provided by Macromedia (such as Button) do behave correctly, I guess that there is a 'standardized' way to implement this tony pujals| senior engineer | Yahoo! SiteBuilder Express p. 408.349.6284 | e. tonyp * yahoo-inc . com | y!id tonypujals From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Wednesday, February 15, 2006 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Mouse Event Filtering Tony, I had a similar problem in Flex 1.5 with a custom TitleWindow component that was receiving events from objects underneath it. Never did find out exactly why that was happening; non-100% alpha value, perhaps? Anyway, I solved it by wrapping a simple check around the event handler that makes sure the target property of the event is the current object:
RE: [flexcoders] getting a compile error running the 'custom event' flex 2 example
Sorry, looks like we screwed up the explorer and it should have included this: package { import flash.events.Event; public class LogonEvent extends flash.events.Event { public var userId : String; public var password : String; public function LogonEvent(_userId:String, _password:String) { super(logon); userId = _userId; password = _password; } } } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Wednesday, February 15, 2006 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] getting a compile error running the 'custom event' flex 2 example Hi I just copied and pasted the 'Events/ Using a Custom Event Class' example from the following link http://weblogs.macromedia.com/flex_samples/flex_explorer/explorer.html into flex builder2 but i get the compile error Type annotation is not a compile-time constant: LogonEvent in my test flex app. its the following line public function logonHandler(event:LogonEvent):void i suppose it doesnt know what a LogonEvent is. what am i missing ? i only copied and pasted the whole demo. -- 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: setUsernamePassword and J2EE login (bounce)
Based on your results (and without me trying anything or digging too much) it does seem like when JBoss uses your module it is not storing the principal. For JBoss are you using Tomcat as the web container? Check the resources we shipped with 1.5 and see if the Tomcat login adapter might provide what you need rather than approaching with JAAS? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 11:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Thanks for the info. First, let me clarify that this is not how we intend to do login/auth. I was merely trying to get the LoginModule to fire without going through any server-side/flex/proxy. Does this process only work if we try to access a restricted resource? That is, if the first screen in my Flex app is the login page, can I post the form to one of my own services (remote object), manually do the handler/loginContext process as described in login.jsp below? Or does it need to be posted to this j_security_check? If this login module/context succeeds (login/commit), does it matter whether this was called through my own code or from this mysterious j_security_check? (BTW, what is j_security_check? A jsp, url to servlet handled by container, I can do the search on this myself, but if you want to answer, I'd certainly read it :-)) Is there some standard way of handling an app that requires the user to login prior to doing anything? For example, I see the app being launched from a link/button on our web site. I want the login page to display. Do we have this link/button point to some fake (or real) protected resource to kick off the auth process? As always, thanks for the education. Jim - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Actually, this doesn't look correct at all. You're trying to go about this manually and that is not how J2EE security works. For this to work, you have to integrate with the container which means configuring your servlet container to delegate all J2EE authentication/authorization to your JAAS module. After that, you then have to secure resources within your web application however that's done in your container. For things like Tomcat, this is done directly in web.xml. Your situation here will likely be different. If you are using form auth, you then point your flex form to post to j_security_check passing in j_username and j_password. If you are using basic auth, you will simply be prompted by the browser for userid/password. Regardless of which you choose, the order of operations in the J2EE world is the following. 1. User requests a secure resource 2. Server responds with either the page you have configured for credentials (Form auth) or with a request to the client(browser) to garner then login information (Basic auth). 3. User enters credentials. 4. If successful, you now have an authenticated session that the server is intimately familiar with. To answer the next question, you cannot force these credentials into J2EE authentication session manually. You have to go through the server's provided interfaces. Unfortunately, J2EE security is much too broad a subject to get into in this medium. I've atttempted to give you a brief outline of the process here so that you can pursue it within the context of your container and its capabilities. Given the frequency of the questions surrounding this topic, we have submitted this topic as a candidate for an upcoming DevNet article. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 10:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Is this a valid test for this? I've verified that the login.jsp fires the JAAS login module and I do get the principal object back. In both jsps (login.jsp and verify.jsp), the user/principal information is null. (BTW, I've tried using the JBoss-supplied DatabaseServerLoginModule and my own to check for differences. None) Can we conclude from this that the JBoss JAAS module is not setting the principal information? Logintest.mxml { mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel width=100% height=100% title=Login Test mx:VBox height=100% width=100% mx:Button
RE: [flexcoders] Warning about unconverted Bindable data
Maybe you had [Bindable] metadata in a class from the Alpha and the format changed in Beta? I don't remember if we did anything significant there, maybe check the release notes? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton Sent: Wednesday, February 15, 2006 2:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Warning about unconverted Bindable data Can anyone tell me what this error means? warning: unconverted Bindable metadata in class ... Thanks. Tobias. -- 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/