Flex :: Changing File Creation And Modification Date Attributes?

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


Similar Posts:


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

ActionScript 3.0 :: Get Modification Date On A File Without Browsing It First?

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

ActionScript 2.0 :: Creation Date Of Ac_runactivecontent?

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

Flex :: Querying A Date Var And Changing Minutes?

Jul 12, 2011

I'm trying to find out what the time is through a Date var and changing the hours in it.Does anyone know how to do that? I guess in pseudo-code i would like something like this:

function updateTime(d:Date)Void
{
Var nowTime:Date() = new Date();

[code].....

View 1 Replies

Flex :: Load A Swf File After Application Creation?

Mar 22, 2011

Is it possible to load a swf file after application creation in flex? If so how?

View 2 Replies

ActionScript 1/2 :: Modification Needed In Flash File

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

ActionScript 2.0 :: Rotating Objects From Xml File - Modification

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

Locate And Check The Date Of An External File (either .exe Or .swf) And Return That Date String To A Variable In Flash

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

Php :: Split Date Form Date Of String Formate Using Flex?

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

Actionscript 3 :: Flex - Date Serialization - Render A Null Date Value

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

Simple SWF File Creation Tools?

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

Flex :: Create A Timeline From Date To Date In AS3?

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

Flex :: Date Displaying Wrong Date?

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

ActionScript 3.0 :: Error During The Creation Of The File Of The Flash Animation

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

ActionScript 2.0 :: Dynamic Menu Creation Via A Text File?

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

ActionScript 3.0 :: Select All Attributes Of The Same Name In An XML File?

Nov 17, 2011

Is it possible to select all attributes of the same name in an XML file ?I have managed to select all elements of the same name but I cannot find a solution to select all attributes of the same name.

Code:
for each(item in xmlObject..elementName)
{

[code]....

View 4 Replies

Xml :: Adobe Flex XML Creation And Checking?

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

Flex :: Panels Creation At Runtime Can't Seen Them?

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

AS3 :: Xml - Saving A Change To Attributes In A Pre-existing File?

Aug 17, 2010

So here's the situation: I have an XML file that is holding a short list of nodes, all of which have two attributes associated with name and a score. This file is already loaded into flash and creates a high-score table, of sorts. Now, what I want to do is to be able to grab data collected in the application, use that to change some attributes in the XML file and have it save that change. As it is I can change the attributes using:myXML.children()[t].@attr = attributeVariable;Which seems to work while the application is still in session, but does not actually save those changes to the file itself as I am hoping fo

View 1 Replies

ActionScript 3.0 :: Project Consists In One XML File With Attributes

Jul 15, 2009

I have a project that needs to get a XMLList. The project consists in one XML file with attributes. The attributes are: Image, description (of the image) the product title for the image and the same product title for another menu that choose the products.

I'll show you all how its organized:
Right side: a List of Products.. Each click it loads his respective title, image and description on the left side of stage.
My doubt is: How to control these items. How do I control the array?

When I click Item 1 it goes to item 1 image, title and description on the left side. When I click in Item 2 it removes the last item, put the new Item 2 image, title, description, etc.

Code:
var xmlLoader:URLLoader = new URLLoader();
var meuXML:XML; // vai guardar todo o contedo do XML;
var imageLoader:Loader; // ImageLoader;
xmlLoader.load(new URLRequest("tv.xml"));
xmlLoader.addEventListener(Event.COMPLETE, carregouXML);
[Code] .....

View 3 Replies

Flex :: Screen Sharing Software Creation Using As3?

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

Flex :: Use Creation Complete In Item Renderers?

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

Flex :: List Has Been Jerked On Creation Time

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

ActionScript 2.0 :: Compare A Date To Range Of Date Using Date Class In It?

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

ActionScript 3.0 :: Parsing Multiple Attributes From External XML File?

Oct 11, 2008

I'm using an external XML file to populate a video playlist. So I'm parsing the attributes like this:

tileList.addItem({label:item.attribute("description"),
label:item.attribute("details").toXMLString(),
data:item.attribute("src").toXMLString(),
source:thumbnail});;

But the "details" attribute is not showing up. Is there something I'm doing wrong? The XML element that holds the attributes looks like this:

<vid description="My description"
details="More detailed description."
src="movies/myMovie.flv"
thumbnail="thumbnails/myImage.jpg" />

View 2 Replies

ActionScript 3.0 :: Loading A Xml File And Some Of The Node Attributes Do Not Have Values?

May 15, 2011

I am loading an xml file and some of the node attributes do not have values:

<books>
<book id="qq" description="test1"></book>
<book id="nn" description""></book>
</books>

I get a null object reference when I try to run the second book line because of the missing description. Can I check for this in code and skip accessing the description for this line?

Something like if (xml_book.@description is null) {do nothing}else{do something)?

View 4 Replies

ActionScript 3.0 :: Object Attributes From XML / Sub-attributes

Jun 29, 2009

I am dynamically creating a number of objects (movieclips) which all have a number of attributes.[code]and so on. i.e sub attributes. I don't think this is possible? Only sprite and movieclips can have dynamic attributes so unless atrbY is a movieclip (which it isn't, it's a string) it isn't allowed?Each object can have suboptions with further attributes associated with the chosen suboption.Later in the program I will manipulate, read and interact with the objects and they have text display behaviours dependent on the suboption chosen. That part (should) be straightforward! heh. One the object has the attributes attached in a usable format, accessing them should be simple.This will be for a store. i.e t-shirt1 has size small, price 10, size medium, price 12, size large, price 14. t-shirt2 has size medium, price 35, size large, price 40 and so on.[code]

This format of the XML can be adjusted if it would make the parsing easier.I am currently reading the XML in, stepping through, grabbing the individual parameter such as category and then adding it as an attribute of the object and it works fine. i.e. I end up with obj.category = 'catname'. However, on suboptions I am having a problem.Should I put all the suboptions in a multidimensional array and use nested loops to apply them to the object?I would still have the problem of objX.suboptionarray[Y].suboptionprice which isn't allowed? In the above XML case Y would be 0,1 and 2 giving 3 suboptions to objX and each suboptions would hold attributes such as pvid associated with that suboption.I could go down the horrible route, obj1.suboption1subptionprice ; obj1.suboption1suboptionpname; obj1.suboption1suboptionvalue; obj1.suboption2suboptionprice; obj1.suboption2suboptionpname and so on and so on for each suboption which could be five options (small,medium,large,x-large, xx-large) and which would "work" but would be bad programming and involve splicing names to get say, the "third" suboptions' price and pvid e.t.c

Going down the route of mutidimensional arrays sounds good except that on say 50 objects I would have stacks of arrays which I'm guessing isn't great in terms of resources?.Just to add, the number of suboptions varies between object, every object has a minimum of one suboption (default option) but can have as many as needed (unlikely to be more than 5 but should be scalable). i.e some t-shirts only come in medium whereas some have many sizes.I have a fair amount of leeway on the format of the XML which I generate from the database so the formatting of that could change to make the parsing easier.

View 0 Replies

Flex :: How To Implement Effects On Components Creation Or Removal

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

Actionscript 3 :: Calculate Start Date(datefield) Is Less Than Always From End Date(datefield) In Flex?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved