To: flexcoders@yahoogroups.com
From: nahloulaha...@hotmail.com
Date: Thu, 27 May 2010 13:58:34 +0200
Subject: [flexcoders] How to store information of selected value in Cookies ???
Any help :( ....Please your help :( --could you see very quickly my code
Hello
I have a menu item in my interface, it will be that checked (or selected by the
user) :
<menuitem label="Option" icon="{newproject}">
<menuitem label="View" icon="{newproject}" >
<menuitem label="Proprities" icon="" id="18"
type="check" toggled="false"/>
<menuitem label="Macroimage" icon="" id="19"
type="check" toggled="false"/>
<menuitem label="UDDI & Navigator" icon="" id="20"
type="check" toggled="true"/>
</menuitem>
</menuitem>
In my ActionScript , i tested which menu item has been selected and i restoe
the information selected :
.....
// Share Object : Cookies
private var lso :SharedObject =
SharedObject.getLocal("sampleLSO");
case 18://Option Display Proprities
/** Attribute Navigator*/
var midVDBox :VDividedBox = new VDividedBox();
midVDBox.liveDragging = false;
var bottomMdBox : Panel = new Panel();
bottomMdBox.percentHeight = 25;
bottomMdBox.percentWidth = 100;
bottomMdBox.setStyle("borderStyle","solid");
bottomMdBox.setStyle("headerHeight","0");
bottomMdBox.setStyle("borderThicknessTop","2");
bottomMdBox.setStyle("borderThicknessLeft","2");
bottomMdBox.setStyle("borderThicknessRight","2");
bottomMdBox.setStyle("backgroundAlpha","0.5");
bottomMdBox.name ="figureAttributeNav";
var midVDBox1 : HDividedBox =
OrDesignerModelLocator.getInstance().getOrchestraDesigner().getChildByName("bottomHDBox")
as HDividedBox;
var midVDBox2 : VDividedBox =
midVDBox1.getChildByName("midVDBox") as VDividedBox;
var midHDBox2 : Panel =
midVDBox2.getChildByName("midHDBox") as Panel;
if(event.it...@toggled ==true){
if(midHDBox2.getChildByName("figureAttributeNav")==null){
bottomMdBox.addChild(figureAttributeNav);
midHDBox2.addChild(bottomMdBox);
lso.data.event.it...@toggled =true;
lso.flush();
}
}
else {
bottomMdBox.removeAllChildren();
midHDBox2.removeChildAt(1);
}
break;
case 19 :// Option display microimage
.....
when i run my application, an error has been displayed : TypeError: Error
#1010: Un terme n'est pas défini et n'a pas de propriété. : a term is not
defined .....
Could you help me please ??? it is not like that that share object work ?????
Please your help
To: flexcoders@yahoogroups.com
From: nahloulaha...@hotmail.com
Date: Thu, 27 May 2010 12:48:47 +0200
Subject: RE: [flexcoders] How to store information in Cookies ???---Thank you
:) Nick , Do you have an example of what you have done
Thank you very much Nick
Could you give an example which shows how do you have done to restore your
selected value please :) It will be very helpful for me :)
Thank you very much
To: flexcoders@yahoogroups.com
From: n...@middleweek.co.uk
Date: Thu, 27 May 2010 10:51:00 +0100
Subject: Re: [flexcoders] How to store information in Cookies ???
Hi,
Cookies are pretty easy to use, I did something very similar, storing the
selected value from a Menu.
First things first, download the "CookieUtil" library and plug it into your
project.
Then you can use CookieUtil.setCookie and CookieUtil.getCookie to set and get
the values.
Hope that helps,
Nick
--
Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog:
http://blog.middleweek.co.uk } );
On 27 May 2010 10:14, Nini7016 Nini7016 <nahloulaha...@hotmail.com> wrote:
Hello :)
I have a menu item et i would like to store these information in Cookies....I
didn't work with Cookies before :( :( ...Do you have any example please please
...
there is a code for the menu item :
<menuitem label="Option" icon="{newproject}">
<menuitem label="View" icon="{newproject}" >
<menuitem label="Proprities" icon="" id="18" type="check"
toggled="false"/>
<menuitem label="Macroimage" icon="" id="19" type="check"
toggled="false"/>
<menuitem label="UDDI & Navigator" icon="" id="20"
type="check" toggled="true"/>
</menuitem>
</menuitem>
And when the user modifie these infomation by checking an option, i would
like to store these information .....
Any idea please ...???
Thank you very much :):):)
Vous voulez protéger votre vie privée ? La solution avec Internet Explorer 8
Commander un cadeau en ligne discrètement? Voir la solution offerte par
Internet Explorer8
_________________________________________________________________
Vous voulez regarder la TV directement depuis votre PC ? C'est très simple avec
Windows 7
http://clk.atdmt.com/FRM/go/229960614/direct/01/