Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-24-2012, 01:41 AM   #1
aktell
FLEX Jokey
 
aktell's Avatar
 
Join Date: Jun 2007
Location: New Zealand
Posts: 154
Default AIR App. which is creating Xml file and saving the Start and End of ....

Hi there,

I'm just working with an AIR Application which creates and is saving the data to an Xml file. Number one function is creating all the Xml Nodes and saving all data including Start and End date/time (In separate Nodes) at the same time, and as the Start date/time which is OK, but if it comes to changing this End date/time later and saving it through the second function it is deleting the Start date/time or changing both Nodes to the End date/time.

First function: If I do not include the End date/time it will not create the Node for it.

Code:
xmlData.saveStartDate = new Date().toString();
xmlData.saveEndDate = new Date().toString();          As is; it works alright as long it could be changed yet if it would only create the Node that would be OK also.
Second function: Here I wanted to keep the Start date/time as saved in function one - But change and save the End date/time to the later and new date/time.

Code:
xmlData.saveStartDate = new Date().toString();        Now here the Start date/time should stay the same !
xmlData.saveEndDate = new Date().toString();         While this one is going to change !
It would be appriciated if somebody has an ifdea towards this problem which could solve it !!! Thanks in advance regards aktell
aktell is offline   Reply With Quote
Old 04-24-2012, 09:18 AM   #2
davetidman
Senior Member
 
Join Date: May 2007
Posts: 283
Default

Hi Aktell,

Not 100% clear on the functions you mention, is saveStartDate a property of xmlData? You say it's a function but it looks like you're assigning a property a String value.

Maybe you could post more of your code so I can see what's going on. Sure it's nothing major, but I don't understand the flow.

-dt
davetidman is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.