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
Similar Posts:
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
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
Jun 24, 2011
Is it possible to copy swf file from server while browsing it ?
View 3 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
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
May 16, 2010
I would like to have it added with controls and play while the user is browsing the site. I don't want it to start playing automatically I want the user to be aware there is a song for them to listen to. I don't have any images for buttons.
View 2 Replies
Feb 21, 2007
I am loading images from a mysql database. Lets say I was displaying 8 on a page, how can I tell how many pages I have and have it update when more images are added? Like on sites where they have links like
images 1-12 | 13-25 | 26-38 | 39-51 etc
View 3 Replies
Oct 25, 2007
I am glad for my first participation in this forum. Currently, I am working on Flash8, were doing a banner animation. It has buttons created by XML binding. When you click the buttons, appropriate product picture appears and when you click on the picture page is redirected to that products page. I want that animation to be automatically browsing products. And when you click some button browsing would stop, picture would appear, if no action wait for a while and continue browsing(first picture, second picture, ...) automatically.
[Code]...
View 1 Replies
Mar 18, 2011
I have an mxml project with one button which browses for files and then uploads them. It seems that when i select a file lower then 200kb it passes ok but when the file is bigger it throws SecurityError: Error #2000: No active security context. Where is these restrictions set for size limit?
[Code]...
View 1 Replies
Jan 27, 2012
Is it possible to have flash animation work uninterrupted on my site (in some overlay at the border of the browser) while user browses my site pages?The only way I see is to put animation onto <frame> but the geometry of such layout is very limited.
View 1 Replies
Aug 20, 2010
Im not sure if this is possible in AS2 but i will ask anyway! Would it be possible to have a standalone SWF which gives the user the ability to browse their computer files and then load a picture for example? I know this can be done in AIR but im restricted to AS2 only!
View 1 Replies
Sep 28, 2003
I have multiple movies that I loaded one at a time depending on which option is selected. I would like to load movies in the background while they are browsing one selection. Is it possible to load a movie without loading into target? So that when they select a different option it will have already been loaded in the background and would just have to be displayed in the container.
View 1 Replies
Sep 7, 2006
In a kind of image browser where navigation is done through keyboard's arrow keys, I get the case where the user keeps the finger pressed on the arrow key. There, the list scroll faster and the screenshot doesn't have time to draw that the next item is already called.
I can see that in that case the CPU goes from an usual 1% when browsing "gently"..to about 20% when leaving the arrow key pressed and raging through the list of images.
I was thinking to:
1) Force the scroll rate to max out at 10 items per second
or
2) Only show pictures if key downs are > 10fps
or
3) Find a function that would wait for the last image to be drawn before continuing in the list.
So, to summarize:
- how to skip drawing pictures if the list is browsed to fast...or
- how to force the script to wait for the current image to be drawn before passing to the next item...or
Here is the script part containing the PNG loader, I've the feeling that this is the place where such a "limiter" should take place:
Code:
MC_loader.loadClip(displayArray[masterindex]".png", "screenshot_mc.screenHolder_mc");
//
[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
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
May 7, 2009
I am using a swf file as the back drop for a page and it works on Firefox and Safari but not in Netscape, Opera, and IE. I have chased the issue to the actual flash element and how it is programmed to play differently by the AC_RunActive javascript file. code, written to allow for a change of the z-index position. Also, the problem with Netscape is that the entire animation is not being shown. I have the html for linking flash in a div tag and it doesn't seem to want to see it. I may have two seperate issues with the same code or they may be linked.
View 3 Replies
Sep 10, 2009
stop();
import fl.events.DataGridEvent;
function endEditHandler(evtObj){ trace(DataGrid_Main.getItemAt(evtObj.rowIndex)
[code].....
View 7 Replies
Jun 16, 2010
I need to create an arrayCollection as a copy of other arrayCollection. Then I need to change some data inside the copy, but when I do that the original arrayCollection changes as well. Is there a way to stop the changes in the original arrayCollection? For example I got: arrColOrig[0].someVar = 1
[Code]...
View 3 Replies
Nov 5, 2004
well this is gonna be a long big essay. So lets start. I used this tutorial to make a nice menu. I got some ideas by searching this forum. Finally came up with this (check the attached .fla) ... Allright, now umm...its really hard to explain. But i gotta explain this. lease Check the attached fla to get the idea of what I am talking here. You will notice that there are 3 buttons in the MAIN MENU. 1) Home 2 Forums. or the SUBMENU : I put 3 more buttons inside the forums_mc (look in the library) on frame 61. The buttons are 1) EXT MC 1 , 2) EXT MC 2, 3) EXT MC 3. I want to use these buttons to load external swf. I want to use the same logic used in the transition tutorial to make the intro and outro transitions. In addition to that, if I press any button on the MAIN MENU, the externally loaded swf should play outro transition and also collapse the SUBMENU. BUT (this is important) , if I press any button in the SUB MENU (like the button EXT MC 2) , then outro transition should play in the ext swf, but the SUB MENU SHOULD NOT PLAY THE OUTRO ANIMATION (which we want to do, when pressing any button on MAIN MENU).
Also the externally loaded swf should load in the emptycontainer movieclip inside the FORUMS_MC clipSo, got any ideas how to do this ???k the attached files. The above discription will only make sense if you see the .fla and other files attached. tried my best to do this, but could not succeed. Also, i asked many friends, but they are not able to do this...I am pretty sure that Masters like POM and Voetsjoeba, scotty and many others will be able to solve this problem.
View 1 Replies
Mar 19, 2003
I'm using Flash MX and am following the falling snow tutorial in the actionscript section. What I'd like is for the snow to move from right to left, but still with the random y position.This code gives me snow (particle) moving right, left, and right again but most ends up along the top (y value of 0).
onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 131;[code]....
View 2 Replies
Jan 18, 2008
I am trying to modify the "Adding Thumbnails" tutorial found here:[URL].. I would like to have the bottom thumbnail scroller start to scroll automatically upon page load. The two areas within the scroll area that currently control the moving of the scroll area would not be needed. Each thumb nail would also need to be clickable and point to their full size images. Currently, when the user causes the scroll to happen, it moves untill their are no items left in the array. I would like for the automatic scrolling to continually scroll, looping back to the beginning of the array when completed, over and over again.
View 2 Replies
Oct 29, 2004
I have a dynamic text field with space for only one character. The text field id embedded with a space and the 26 uppercase letters A-Z. The text field is intiated being empty. I have two buttons, and up and a down. When i press on the up button, i want the value in the text to be incremented by 1, for example, if it is a space, it should increment to an "A", if it is a "P" it should be incremented to a "Q", and if it is a "Z" it should be ncremented so it goes back to being a space. I have managed to do this with a bunch of 27 if else statements, but surely there must be a way of simply incrementing the value in the text field?
View 4 Replies
Mar 1, 2012
I'm trying to call to a date in an external txt file (losttime.txt).The date is written as: 2012, 1, 09 in the .txt file.I've loaded the txt file and need to calculate the amount of time between that date and today.Right now, I have the date set in the lostTimeDate variable, but need it to call to the date in the txt file instead. I assume this has to do with Parsing the date, but for the life of me, cannot figure it out.Here is my code:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.load(new URLRequest("losttime.txt"));[code].......
View 1 Replies
Jan 31, 2009
Im working on a project where files are being loaded using the URLloader in flash as3. I need to be able to find the last modified date of the file that is being loaded, unfortunately the files may not always be on the same server as the flash app, so it may not always be possible for me to add a line to the file that has the last modified date, that could be read easily in flash. I was wondering if anyone knew of a way to retreive this information, I know in air you can use URLLoader.httpResponseStatus which allows you to get the http headers and find it that way but it doesnt appear to work in flash.Id like to try to do this with out having to call on javascript or php to find it, since it would then require 2 connections per file i believe to be able to do everything I need 1 to get contents in flash, and one for either javascript or php to find the last modified date, but if I have to that seems to be the only option I can come up with.
View 2 Replies
May 28, 2010
I have a XML file with a few concert dates. In my flash/AS3 file, I would like to show only the up coming event, relative to current date. Like this:
Event 01: 30-05-2010
Event 02: 02-06-2010
Event 03: 05-06-2010
Today is 28-05-2010, so I need to list Event 01. On 01-06-2010 I need to list Event 02. I have the basic AS3 code for listing the XML working, but I'm having trouble filtering the result.
View 2 Replies
Oct 30, 2009
I'm trying build a simple band site using flash and as2. All I want to have is a page listing shows that sorts them according to date and also when the show date has passed drops that entry from view.I can do this easily enough with a database and php but want to learn how to do it in actionscript. Here is what I currently have, shows load from the xml file into a simple textbox:
Code:
scrollBar.target = shows_txt;
showsXML = new XML();
[code]....
View 0 Replies