| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Member
Join Date: Jul 2002
Location: Planet Rock
Posts: 74
|
Hi,
I'm no Programmer but can anybody tell me if this is possible!?¿¡ I have a form that saves user's info into a sharedObject, the problem is that I don't know how to get the data to add into the file not to overwrite itself! This here is my code : on (release) { user = SharedObject.getLocal("user_info"); user.data.usrName = usrName.text; user.data.thought4theDay = thought4theDay.text; user.flush(); _root.gotoAndStop("Menu"); } Can anyone tell me if this is possible!?! And if it is, possibly give an example of the code do so. Thanks Merçi Gracias Choukran Xièxiè |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
How about:
ActionScript Code:
ActionScript Code:
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2002
Location: Planet Rock
Posts: 74
|
Thanks for the code Jesse, I see how that will work.
Another question though! Is it possible to index each additional entry, and and have all entries (from that post) connected? Ex: user.data.NameOfEvent = user.data.NameOfEvent + NameOfEvent.text; user.data.Cost = user.data.Cost + Cost.text; What I would like to do is be able to select the NameOfEvent in a dropdown box and have the cost and other details of that Event shown (on another frame in their respective text.box)! Many thanks! |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Sorry I don't understand that second bit of your question...
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#5 |
|
Member
Join Date: Jul 2002
Location: Planet Rock
Posts: 74
|
Hi,
Basically I'm working on an Activity Monitoring system for an NGO! The way it works is : They will enter data such as : "the activity", "date", "cost", "place" etc... what I am trying to do is to write all the activities and their info into one shared object??? Is there alternatives. I would like to have a combobox that would look into the shared object for "the activity"...and populate the textfields with the activity's info : "date", "cost", "place" (Is this possible???) Thanks |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
I would be using arrays in the SO then. That way you can give the array to the drop down box, and when the user selects item 1 from the activity array you know that the price wil be item 1 int he price array and the locationw ill be item 1 in the location array...
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#7 |
|
Member
Join Date: Jul 2002
Location: Planet Rock
Posts: 74
|
Thanks again Jesse,
Would you be able to show me how to code that array? Also I'm not sure how to dynamically populate that dropdown box! Thanks for the help! ![]() Django |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Something like:
ActionScript Code:
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#9 |
|
Member
Join Date: Jul 2002
Location: Planet Rock
Posts: 74
|
I've found the source code I needed.
Colin Moocks address book application is the same type of thing I was trying to do : http://www.macromedia.com/desdev/mx/...dressbook.html Enjoy. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|