Flex :: Set The Creation And Modification Date For A File In AIR?
May 3, 2010
I'm creating files in an AIR application like this:
var file:File = File.documentsDirectory.resolvePath("myFile");
var stream:FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
[code]....
View 1 Replies
Similar Posts:
Jun 7, 2010
I have written an Air program that mirrors a directory tree. The problem is that the destination folder structure and content need to be identical - right down to the creationDate and modificaitonDate file attributes. How can I change these file attributes using Adobe Air? I'm able to READ them both just fine, but the properties are read-only. How do I change them?
View 1 Replies
Feb 2, 2010
I'd like to hardcode a file to periodically check its modification date. Do you have to browse for a file first using filereference.browse to check its modification date or can you hardcode a local file (with absolute path)?
View 1 Replies
Jul 10, 2011
I'm having problems with my Flash file in that links to external sites are treated as popup and blocked. I believe links like this require the javascript file to almost validate the link and allow it to happen?
Well, it seems that the javascript that gets published always has a creation date of 06/03/2007 - whats going on there?
I would assume the creation date should always be the current date? Would this be why links are not working (they used to work)
View 1 Replies
Mar 22, 2011
Is it possible to load a swf file after application creation in flex? If so how?
View 2 Replies
Jul 4, 2009
a client has asked me to make modifications in a flash file used on his website. i am currently working on the same. the client has given me 'about.swf' file which i decompiled using sothink decompiler 4.5 build 90120 to 'about original.fla'. the xml folder resides in the same folder as ~about original.fla. it contains about_us.xml.you can download these files at [URL] online_questions.zip the change the client wants is as follows - if you view 'about.swf' - when you click on 'key people', the details of 4 people
[Code]...
View 2 Replies
Oct 16, 2008
I've got on the web some code of nice rotating objects from xml file. But I need to make, that when you mouse over one object, the rotation get stopped. I don't know exactly how to do it, so I'm asking for your. Pasting bellow the code and URL example of the animation.
[Code]...
View 2 Replies
Dec 11, 2009
I'm using flash CS4 and actionscript 2.0. I have a situation where I need to locate and check the date of an external file (either .exe or .swf) and return that date string to a variable in flash. I then need to display that date to a piece of dynamic text within the flash file. Is there a function within action script that will check and retrieve the file date of an external file.
View 4 Replies
Nov 30, 2009
my date of string like (2009-12-03 21:05:00) date with time . so i used to store var newdate:Date=new Date(Date.parse(startdate)); but shows some errors.and also i tried to split string(date) used date function likevar datenumber:Number= (new Date(Date.parse(startdate))).getDate();
View 1 Replies
Aug 24, 2010
Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:
[Code]...
View 3 Replies
Mar 7, 2012
I am considering using flash for a kiosk project together with Visual Basic. I need to create simple SWF file with some buttons and background image, and maybe play some movie clips. Could you kindly suggest free tools for that purpose.
If there are not free tools for that, what is the normal commercial enviroment use?
View 2 Replies
Aug 25, 2009
I need to create a timeline between 2 given dates, ie:2006-01-20 - 2009-02-14
The timeline must be drawn on a given width (can be altered), ie: 600px
But I need to add markers, one on year beginning, and others 4 times during the year (each 73 days aprox)
View 2 Replies
Sep 29, 2009
I am experiencing a very strange behavoiour of Flex Date object. My web service is written in .Net 3.5 and all object which I am retriving or updating have Creation Date (Date Type) in .Net code.
But when I am calling .Net web service and displaying data in Flex, Flex displaying a different Date than what stored in web service. When I update my object using Flex UI, every time update time is very different than actual update time set by .Net code.
View 4 Replies
Mar 17, 2009
I am working with CS3. yesterday I have finished my Website without an error message. Today I wanted to work again but I had this message error :
"Error during the creation of the file of the Flash animation. To check that the file of destination is not in reading alone or is not already used by another application. Also check that the name of the file is not too long."
View 12 Replies
May 22, 2003
I'm a Flash MX action scripting newbie. I'm trying to create a dynamic drop down menu system that reads a text file to create the items listed in the menu. I've been reading tutorials and trying to break down source fla files to understand how things work. I'm stuck on what the following block of code means.Would it be possible for someone to break down the following code for me? It references menudata.txt to create the drop down menu. I can successfully modify menu.data.txt to create more menus and change the titles in each button, but creating sub-nav is totally kicking me in the arse.
The code follows:
item_spacing = 18;
x = 1;
[code]....
View 1 Replies
Aug 25, 2011
I am working on a game in flex, and I am trying to create an xml file for each user if it is their first use, and then after that just access that file and edit it accordingly.Is there anything that could do this same thing first off, basically create and edit some sort of save state? I assume that flex would have some kind of saving state type of thing, but I am not sure what to look for in that respect.If not, does anyone know how to do this with xml files?
View 1 Replies
Sep 27, 2011
My problem is i am trying to make a panel. My button in in Main.mxml whereas the panel functions are defined in panel_Create.mxml. the code works fine. In panel_Create their are functions to create panels at runtime. The problem i am facing is when i run the program it wont show the panels but it does increase the value of n and after 8 clicks it gives alert message. The code works fine when i put all the code in Main.mxml
<fx:Script>
<![CDATA[
import Components.panel_Create;[code].....
View 3 Replies
May 27, 2010
I wish to do screen sharing application using as3 as the part of one project. how to get screen sharing video using as3.
View 2 Replies
Nov 25, 2010
Can i use creation complete in item renderers, i have a data grid and i have kept every single cell as an item renderer. is it a good practice to use creation complete here. I fear events might fire up at wrong instances.
View 2 Replies
Jul 7, 2011
I have created a custom control Which contains an header(HBox) and list control below the header. I can open and close the list (Meaning list.height = 0 and list.height = 200) by using the header click event. Initially the list will be in closed state (height = 0). When we open it for the first time. It takes too much time. For the successive open of the same list looks smoother (I suppose this is because itemrenderer is being reused). I want to open the list for the first time smoothly. I have created my own renderer for list control which contains one 5 combobox inside a HBox.
View 1 Replies
Dec 2, 2009
Do you know any way to compare a date to a range of date using the Date class in as2.
For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).
View 5 Replies
Oct 2, 2010
I have multiple MXML custom components that I add on the fly (using a repeater) that is binded to an ArrayCollection. So everytime I add/remove item from the ArrayColleciton new items show/disappear from the screen. Is there a straightforward way to make item fade in when they get created and fade out when they are removed? I thought of using states and state transition effects but that will make things a bit complicated at different part of my application for those components to manage the states.
View 1 Replies
Apr 15, 2012
I have a form in which i add two dates
Start date
End Date
I want to know how i validate that the selected start date is always less than end date(actually an expiry date).
View 3 Replies
Oct 14, 2010
I have created a custom item renderer for the tree, i have added some children in create children function, my problem is that sometimes i need to show these children and sometimes i don't, depending on clicking on a button which also i have added at create children, the problem is that i had to create the item even if i don't want it to be visible, and removed it by making visible false, and this costs a lot of memory, i have tried to create it at buttons click listener but when scrolling the child disappears, and it may appear again if i keep scrolling up and down.. i am trying to add the child just when i need it to be visible, is this possible or i have to create it on child creation method?
View 1 Replies
Nov 14, 2010
So yahoo astra has grate compohent for saving inputed data. They show examples of how to use it. But I had not found one capable to solve my current problem. For example user inputed his name. It is saved, but when he comes again he always needs to input at least first latter of his name. so I wonder - how to make Yahoo astra autocompletemanager component to pop up last inputed into it value on application creation complete?
[Code]...
View 1 Replies
Mar 15, 2012
I need a "days without safety incident" flash counter that I can update with an external xml file.I found this ActionScript 2 code on the web:
Code:
birthDate = new Date(2012, 0, 03);
currentDate = new Date();
elapsedDate = currentDate-birthDate;
elapsedDays = Math.floor(elapsedDate/(1000*60*60*24))
daysElapsedTextBox = " "+elapsedDays+" ";
How can I set the new Date value of birthDate taking the data from an xml file?This is my xml code (I named it "thefile.xml"):
Code:
<noincidentsince>
<counter>2012,0,03</counter>
</noincidentsince>
View 1 Replies
Nov 8, 2010
I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
View 1 Replies
Aug 26, 2009
I'm trying to add the time and date to a flash file I am making This is the code I have for it:
// set the date
var date = new Date();
date_txt.text = d.toString();
stop();
this is what it shows.
Wed Aug 26 16:21:45 GMT+0930 2009
It works fine, but the time is stationary how can I make it count?
View 1 Replies
Aug 29, 2011
How do I write a date to an xml file?
View 1 Replies
Aug 6, 2011
We create Objects in flex by declaring type Object. for example
var objSampleObject:Object = new Object();
and we create properties directly with dot operator without creating any class
[Code].....
My question is in above process is there any class is created internally by flex?
View 2 Replies