ActionScript 3.0 :: Looking For A File In A Drive With A Loop
Jan 28, 2010
i'm trying to see if a file exists, the file is located in a usb memory so i'm using an array and an ioerrorevent, if the file is found (event.COMPLETE), i execute another function and if the file does not exist i use this (IOErrorEvent.IO_ERROR) which tirggers another function to look for the next drive. however, even when the load find the file in the right drive the IOErrorEvent is triggered anyway and not my event.COMPLETE.
I am creating an AIR application using flex3 and actionscript3. there, i need to display dir content of cd drive/usb drive entered by user. how can i get cd/dvd drive name by actionscript3
I'm running Flash CS4/AS 2.0 on Mac OS X. I keep my work files on a flash drive. One of these FLA files is a parent (container) movie that, when compiled, results in a SWF that is 6,983 bytes.
I saved a copy of the FLA source file to the Desktop, recompiled, and the SWF size was only 1,773 bytes (much better, since the movie only has a static preloader and some ActionScript).
I'm guessing this is because Flash has to copy some default class information(?) to compile the movie because the source file and Flash CS4 are on different drives.
Do I need to copy the class files to the external drive and map to that path in Preferences?
I have created a window contain a save button. i want to click on this button a file from cd is copied to my hard drive.i found class File but it work air only,i use flash cs4 and File class dosn't work in it.
I know how to program a button to get a URL loaded:
[Code]...
But how would I tell the button to do the same thing for a file located on the hard drive? I want the file to load in the web browser, but I am making a presentation CD and I want it to grab a file off the CD as opposed the internet in case the person viewing the CD does not have internet access. keeping the file path structure similar on the server this should work on the CD as well as the server, correct?
I'm still relatively new to the actionscript 3.0 world. I have been given an assignment to make a drawing program that allows me to do many different things. One of the big things that it needs to do is be able to save a file with the drawing information and still be editable. After much searching I see that you can't just write sprites to a file and then they come back cleanly, obviously returns null. I also don't think that registerClassAlias won't work because I don't think it will allow me to convert things back to a sprite. I keep an array of sprites that allows me to undo/redo, and I originally figured I could either write the arrays or the individual sprites to the file, but that is not allowed either. Does anyone have any idea how I can possibly accomplish saving my drawing document and loading my document with keeping all of my sprites in my array separate from each other?
I am trying to create Flash video for usb drives sold to customers with their pictures on it. After the video plays, can I have a link to a local folder, IE: named YOUR_IMAGES on the drive, and have that folder open on their machine when clicked? Or is there to many variables with what what the drive letter name that will be assigned on customers machines? So there will be the same .SWF on every drive sold, then a folder named the same thing with the customer pics on it.
I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?
I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).
The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.
I am have to build a Flash aplication, that has to download a XML from a differente server and save on it's own server, at a predefined time of the day. Is it possible ans safe to make that in flash using AS3?
OK I have been racking my brain to get this resolved and unfortunately there isn't a lot of info on the web. Scenario: We are in a shared environment. Central file server (Mac OS X server) over gigabit enet. We open flash files over the network and then we "try" to publish the files back to the same server in which the .fla is stored. (I have read John at Adobe's comments on the practice but this DID work).
So we access the flash file at /Volumes/ServerName/JobFolder/~Flash/ and we "attempt to" publish the .swf to /Volumes/ServerName/JobFolder/htmlfolder/flash .... this was working previously in flash 6-7 but in 8-cs3 it has stopped working and we are kicking ourselves to get some answers. When we try to publish we get the following error: "Error creating Flash movie file. Be sure the destination is not locked or on a locked drive. Also, check that the file name is not too long."
what I'm trying to do is make a preloader that will preload about 20 external SWF files before it lets you get to my main file. I want to do this because my main file needs the SWFs to be ready to go once its done loading. I have looked around and i found a few ways to do this with the "if (loadedBytes>=totalBytes)" and the code loops back till the files are done loading... this would be just what i need but i cant seem to get it to work. the file just seems to start loading my files but does not loop and just runs the time-line even once i state what frames i want it to loop.
We recently upgraded our network to Leopard and Flash to CS3,and since then, I can't publish to a network drive.The reason I need to do this is that we're on a network where all our project files are on the server, and we work directly from the server. With previous versions of Flash and the system, I was able to work on a Flash file on the server and publish or test to the same place. Now I need to copy my flash file to my local computer in order to publish or test.If I try, I get this error: "Error creating Flash movie file.Be sure the destination file is not locked or on a locked drive.Also, check that the file name is not too long." Neither of those are the case.
I recently modified a single page website for a family member (for fun). The family member had someone make a flash object a year ago at the very top of the page that cycles through a few different colors on the hair--the page can be viewed here [URL] She has asked me to see how to make it so the hair cycles through the colors continuously instead of just once--is this possible?
I need to make a flash located on the internet load a swf from user's PC/network. Essentially, make it so that "myrandomsite.com/main.swf" can load "U: andomfolderinfo.swf".
I tried using cross domain policies but that didn't help (of course I've never used them before so I'm not entirely sure how they work). And I'm not well versed with Javascript but I am willing to try. I'm trying to do is have a .swf from C: read files from U:
We have an Adobe Air application. Now we'll make DVD's an ship them to potential clients. How can I be certain that the client can open this .air file if they don't have adobe Air installed? Also I saw that Mac's often wanna open .air files in applescript(also if Air is installed).
I know that there are install badge. But I think they don't work with local .air files. Or is there a way to install a local .air with a badge?
Is it possible to read/write to the C: drive and it's directories with Adobe Air? if so how? I've only seen examples using the desktop or user directories with resolvePath().
I got a complete package of creative suite cs4. Even though I didnot want to install additional components such as Adobe Bridge, Adobe Drive, etc. They got installed with the package. Now I have CS5 available, and I don't want these to keep occupy the disk space, atleast not CS4.
How can I uninstall these components, I don't really use them too. I looked into my Control Panel, but there is no option to uninstall them. I am using Windows 7.
I'm having trouble trying to link a .swf using xml to open up an html link that is on the cd that a user will have in their drive when running the swf.home.swf > goes to CD drive> open up about.html
example of xml: <linktype="sample" display="yes" ref="file:///d:/about.html">
I've got myself a gallery which is generated from the contents of an XML file. (I just followed this excellent tut!)
I've decided that its too much hassle to update the XML file everytime a new image is added to the directory, so I'm thinking about using PHP to build the XML file. That means that going from PHP->XML->Flash. Can I just go straight from PHP->Flash? All I want to do is get a list of files in /directory_x. Are there any obvious benefits/drawbacks to either method?
is there such a thing? it's either this or "for each" pretend I have 6 red cars and 14 blue cars in my ParkingLot class. I want ParkingLot to tell just the red cars to drive. In my mind it works as follows:
I was looking into a readymade flash CS4 project. It's kind of slideshow for some photos. I wanted to modify the Action Script in order to use the pictures in my computer's hard drive.
The code that has been used there in that project is something like
var gal_uno_uno="http://infernotech.co.cc/meracup.jpg"; var gal_uno_unoth= "http://infernotech.co.cc/meracup.jpg"; var gal_uno_dos="http://farm2.static.flickr.com/1073/756274318_d3bc6b17c9.jpg"; var gal_uno_do= "http://farm2.static.flickr.com/1073/756274318_d3bc6b17c9_s.jpg"; var gal_uno="http://farm1.static.flickr.com/217/485076305_fb0eb729e9.jpg";
but, I don't want to specify the url of the images. Instead I want to pick up these images from my hard drive.