[flexcoders] Dragging a datagrid cell only?
Hello, we are currently facing a technical problem and i'm wondering if any of you have already tried to do this. This is a simple thing in fact : Can you drag, on a datagrid, the content of a cell to another cell? If so, i would appreciate any example of code. Thanks a lot Antoine
[flexcoders] Character input in a form : strange issue?
Hi, i'm currently experiencing a strange issue with flex 1.5 i've made the following simple test : mx:Accordion mx:Form mx:FormItem mx:TextInput text=toto/mx:TextInput /mx:FormItem /mx:Form /mx:Accordion it seems, for something i can't understand that when i'm including this sample code into my application, i can't enter any of the numbers and special character given by pressing shift or alt plus one of the character on the upper number bar. For example, when i need to do a @ by pressing alt+à (on a french keyboard), i'm only getting a à. anyone have a clue?:/ thanks a lot Tonio thanks Tonio ___ 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] Problem with Actionscript to Java object conversion
Hi, i'm currently experiencing a problem with the conversion of an actionscript class to a java class during a service call with Flex 1.5. I get a the following error when trying to call an update service : The expected argument types are (myPackage.UserData) but the supplied types were (flashgateway.io.ASObject) and converted to (null). My UserData java object has the following properties : private String userId; private String firstname; private String lastname; private String email; private Map properties; and thus, my corresponding PersonalDetailsVO value object has the following properties : public var userId:String ; public var email:String; public var firstname:String; public var lastname:String; public var properties:Object; public static var registered:Boolean = Object.registerClass( myPackage.UserData, PersonalDetailsVO ); The java method i call from Flex is : public boolean update(UserData userData) and i call it with a : service.update(personalDetails); where personalDetails is a PersonalDetailsVO The weird thing is that in a first call to get an existing value for my UserData, everything goes fine and i get a valid PersonalDetailsVO in my Flex application. But when i try to call an update with a UserData parameter, i had the previous error. Anyone got a clue?:( 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 * 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] Problem with Actionscript to Java object conversion
oups, i've just seen a previous post from Jason Graham giving me a possible solution (i do have static final properties in my Java class..:)) Sorry for this repost. Antoine --- Barrau Antoine [EMAIL PROTECTED] a écrit : - Hi, i'm currently experiencing a problem with the conversion of an actionscript class to a java class during a service call with Flex 1.5. I get a the following error when trying to call an update service : The expected argument types are (myPackage.UserData) but the supplied types were (flashgateway.io.ASObject) and converted to (null). My UserData java object has the following properties : private String userId; private String firstname; private String lastname; private String email; private Map properties; and thus, my corresponding PersonalDetailsVO value object has the following properties : public var userId:String ; public var email:String; public var firstname:String; public var lastname:String; public var properties:Object; public static var registered:Boolean = Object.registerClass( myPackage.UserData, PersonalDetailsVO ); The java method i call from Flex is : public boolean update(UserData userData) and i call it with a : service.update(personalDetails); where personalDetails is a PersonalDetailsVO The weird thing is that in a first call to get an existing value for my UserData, everything goes fine and i get a valid PersonalDetailsVO in my Flex application. But when i try to call an update with a UserData parameter, i had the previous error. Anyone got a clue?:( 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 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/
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] 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 * 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] Flex store services in web browser cache?
Hi everyone, During my study on Flex security, i see something that bother me, and i want to know if there is anyway to disable it. We have a classic store application that use some ATG services to get a catalog of items. As we were looking in the web browser cache, we see that it contain 2 things : a main.mxml.swf file (everything is fine here) and several files, one for each of my named services : handsetsServiceImpl OfferServiceImpl resourceServiceImpl etc.. if i open one of this file with a classic editor, i can see many uncrypted informations that i don't want everyone to see! (as the result of the last service request, name of the java class used, etc...) It is critical since if i get some personnal data, i don't want everyone to be able to consult my data just by opening a cached service file.. That look strange to me, so if anyone can tell me if it is normal, and if there is a way to disable it, i would be very pleased! 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 * 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] Problem with image and cache
Hi, we are currently exeperiencing a strange issue, and i want to know if anyone have a clue on this. We're doing a store application in Flex 1.5, and we use a simple mx:image tag to display a product image. To display the image, we use a binding on a global object called selectedItem.(very basic for the moment). so we have : mx:Image id=largeImage source=image/products/handset/ {selectedItem.largeImage}/ Things are very simple here, but we have the following issue : if i display the product several time, we don't get the same image each time! The weird thing is that if i add a Dumper.trace(Image source=+largeImage.source) on a mouseDown event on the image, we have each time the same source (so there's no mistake on the selectedItem). I think it's may be a cache problem, but i want to know if anyone has already experienced that? Thanks a lot, Antoine R.I.A Consultant Unilog ___ 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/
RE: [flexcoders] Saving modelLocator variable in sharedObject?
Here is the code for the getter and setter: public static var __workflowState : Number; public static function get workflowState():Number { return __workflowState; } public static function set workflowState(myNumber:Number):Void { //ContextManager is a class used to store data in a SharedObject ContextManager.setContext(workflowState,myNumber); __workflowState=myNumber; } The getMainView function managing the viewStack: public function getMainView( workflowState : Number ) : UIComponent { if( workflowState == ProtoFlexModelLocator.VIEWING_MAIN_HOME ) { return view.home; } else if( workflowState == ProtoFlexModelLocator.VIEWING_MAIN_OFFERS ) { return view.offers; } else if( workflowState == ProtoFlexModelLocator.VIEWING_MAIN_HANDSETS_IN_GRID ) { return view.handsets; } else if( workflowState == ProtoFlexModelLocator.VIEWING_MAIN_PLANS ) { return view.plans; } else if( workflowState == ProtoFlexModelLocator.VIEWING_MAIN_ACCESSORIES ) { return view.accessories; } } And, for example, a Command i use to navigate through the viewStack : public function execute( event : Event ):Void { ProtoFlexModelLocator.workflowState = ProtoFlexModelLocator.VIEWING_MAIN_OFFERS; ProtoFlexModelLocator.workflowStateAction = ProtoFlexModelLocator.VIEWING_ACTION_OFFER_DESCRIPTION; } Subsidiary Question : I want to save a complex data (an array of custom Object) onto a SharedObject. How can i do that since it seems that when i call back the data, the array contains null data? Thanks a lot for you help. --- Dimitrios Gianninas [EMAIL PROTECTED] a écrit : Hi, Can you share with us the code behind the get/set methods of workflowState ? Also have you added some trace output to see if it really isn't being called. Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of antonin34 Sent: Monday, January 23, 2006 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Saving modelLocator variable in sharedObject? Hi, We are currently developing a Flex prototype using the cairngorm framework. To manage the different pages of our application, we use a viewStack whose index is managed via a binding on a getMainView function : mx:ViewStack xmlns:mx=http://macromedia.com/2003/mxml xmlns:view=com.protoflex.view.* selectedChild={applicationViewHelper.getMainView( ProtoFlexModelLocator.workflowState);} This function use a model locator variable (ProtoFlexModelLocator.workflowState) to return the right view to the viewStack. Everything goes well until.. Here is my problem : I'm trying to save the workflowState to a SharedObject so the user will come back to the currently visited page if he quit and come back later. To do so, i have made a public function get workflowState() and a public function set workflowState() so everytime the workflowState is changed, i stock it in a SharedObject. But now, it seems that the ViewStack is no more working, as if the getMainView function doesn't trigger when the workflowState change. Can you help me on this, or give me some clue on how to save a client context of a flex application? Thanks a lot, Regards Antoine -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve