[flexcoders] Dragging a datagrid cell only?

2008-12-19 Thread Barrau Antoine
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?

2006-03-02 Thread Barrau Antoine
Hi,
i'm currently experiencing a strange issue with flex
1.5

i've made the following simple test : 









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/
 




RE: [flexcoders] Problem with Actionscript to Java object conversion

2006-02-24 Thread Barrau Antoine
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/
 




[flexcoders] Problem with Actionscript to Java object conversion

2006-02-24 Thread Barrau Antoine
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] Problems with dynamically generating radio button in a radiobutton group

2006-02-15 Thread Barrau Antoine
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;radioCounterhttp://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

2006-02-14 Thread Barrau Antoine
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;radioCounterhttp://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?

2006-02-09 Thread Barrau Antoine
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] Cairngorm Exception handling

2006-02-08 Thread Barrau Antoine
Hi,
Is there any way to handle exception in a Cairngorm
developped Flex application so you can trace on your
application server if anything goes wrong on a flex
client application?
And at what level of the framework do you put your
exception handler? (command? Front controller?)
In fact, if anyone have documentations about it, it
would be great :)

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

2006-01-30 Thread Barrau Antoine
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 : 


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?

2006-01-24 Thread Barrau Antoine
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 : 
> 
>  
> 
>  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
>

site+design+development&w2=Computer+software+development&w3=Software+des
>
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>  
> Computer software
> development
>

b+site+design+development&w2=Computer+software+development&w3=Software+d
>
esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>  
> Software design and
> development
>

Web+site+design+development&w2=Computer+software+development&w3=Software
>
+design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>   
> Macromedia flex
>


[flexcoders] Question about creating a rotating horizontal list on flex

2006-01-10 Thread Barrau Antoine
Hi,
i'm trying to create in flex some kind of nice catalog
presenting its elements in a sliding (or rotating)
way, each element having a different alpha reporting
to its position (the element on the center of the
screen is 100% alpha, the side elements are 0, etc..).
As i'm new in flex, i'm trying to use event broadcast
and listener to manage all that.
I'm creating a simple canvas and call several time the
 same custom mxml component (offerPanel, basically a
panel displaying my element information), each element
having his alpha depending on a formula (and this is
working fine). What i want to do is to have a button
enabling the slide and thus changing the x coordinate
of all element panels in one click (to trigger an
effect for example).
What i do so far is : 

my button call a click function doing : 
dispatchEvent({type:"moveOffersRight"});

in my offerPanel.mxml, i do the following thing : 

function initializePanel():Void
{

this.addEventListener("moveOffersRight",mx.utils.Delegate.create(this,
function(event):Void {
mx.core.Application.alert("received
moveOffersRight");}));

}

and call this function at initialization of the main
mx:Panel of my offerPanel component.

The fact is that nothing happen when i click on the
button.
I think i'm doing a big mistake somewhere (may be i
don't really understand how broadcast and listener
works together?).
Anybody to help me so far?

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/