Actionscript 2.0 :: Possibile To Delete Txt File?
Oct 19, 2011Is it possibile to delete txt file by using Actionscript 2.0
View 2 RepliesIs it possibile to delete txt file by using Actionscript 2.0
View 2 RepliesI am trying to delete some copy but when I do it, it leaves a huge black space (previewed in Firefox and Safari on Mac) which is the space left when I deleted the script and I don't know how to close up the black space (like I would do in indesign or Word). I am doing something wrong but I don't know how to fix this simple thing.
[Code]....
I got these four errors when I tried to create a button on the stage that would delete the text I inputted in the inputtext(ti). Based on the scripts I have and the errors, what should I write to create the delete button?
[Code]....
I am very new to flash. I have a marketing video with audio that is very long, I need to delete frames 20 - 1430 from the .fla to make it shorter. I hope I'm using the terminology correctly, I essentially want to cut out frames 21 - 1429; all the images, the audio and the frames themselves, essentially make it be like they were never there. I can't even seem to select the frames properly. I followed these instruction: [URL]. Then edit/timeline/remove frames and nothing happened. The frames are still there. I have the full Creative Suite Master collection 5.5, so it doesn't have to be in flash.
View 5 RepliesI am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'
1) the data provider is filtered to show all items starting with 'st'
2) text is set to auto-suggest string such that the un-typed part is highlighted.
So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before
I am building an application in flash that speaks to a database using PHP. I know you can remove rows from a database in PHP using a DELETE in the SQL statement. Does anyone know how to delete a file like a jpeg?, I would press a button in flash it would then call some PHP script, does anyone know the PHP to remove a file?
View 1 RepliesWe are writing log files to File.applicationDirectory and want to clean out old log files. The question is how do you delete files out of that directory? When I try and delete old log files out of this directory it gives a security exception. Is there anyway around this? I know you are not supposed to write to File.applicationDirectory, but we are writting are logs there anyways.
View 2 RepliesI'm trying to find a javascript method to delete flash cookies on a page, but with no luck.I know it can be obviously done through flash or flex, but the problem is I know nothing about flash, flex and actionscripts...So my question is: Is there a way to just load a prebuilt flash movie in a page, which just programmatically deletes all the flash cookies it finds?I could find some actionscript code around the internet and didn't look complex, but I don't know how to use it
View 2 RepliesIn need to move/delete files on the local file system of the user from a web page.
I know the flash player run all applications in a sandbox for security reasons. But maybe is there the possibility for the user to allow local filesystem operations (in some advanced settings). Or maybe to sign/join a certificate.
I'm looking for a solution to the following problem and I'm not sure if this is possible to do with Umbraco.We have a Flash movie which will read in images/paths to images and an accompanying title via XML and we need to be able to manage these through Umbraco.Is it possible to program an event for when an image is uploaded or removed from this specific folder so that it makes changes to the XML file and so it adds or removes the corresponding data?
View 1 Repliesi have ade moultiple textbox at run time now i want to delete a textbox by delete key how it is possible .
View 4 RepliesI'm trying to use the delete keyword to remove nodes from an xml file and it just plain won't work.Here's a stripped down example of what I'm working with. Every node has a child named "deleteme". If its value is equal to 1 I want to remove it from the xml file. If its anything else I want to leave it be. The delete method is deffinately gettig call but it's having no effect.
<?xml version="1.0" encoding="utf-8"?>
<stuff>
<i>
[code]......
I am trying to delete some files from a flash template I purchased, when I open the .fla file in flash and go into the library, I would like to delete the contact box and the mp3 player, when I locate those files in the library and delete the files, the website no longer opens up (it will not work when I delete those files from the library)?
View 6 Repliesi have A,B,C,D moveiclip
now i want to delete a mc with delete key .if i select A then press delete key it will delete .
I draw a line from point A to point B (lineMove & lineTo). Am I able to delete the line by either a button or other way ?
View 7 RepliesI have a movie containing a movieclip in which an empty movieclip is created with AS, showing an externally loaded pic.At the click of a button i want the pic to unload again, but it does'nt work. I tried removeMovieClip and Delete.
View 3 RepliesI am currently making a small game using a couple of arrays, which contain MCs.
It goes like this:
Code:
grid = new Array();
for(i=0;i<array_length;i++){
this["row"+i] = new Array();
[Code].....
how can you delete the "current" mc?
the following scripts returns:
960 _level0.mc[type Function]960 _level0.mcundefined
function onframe(){ var mc = _root.createEmptyMovieClip('mc',
[code].....
I want to delete a variable so if i create it later using again "var myVar:DataType" it won't throw an error because of the duplicated variable.I tried using delete but it says i can't use it on fixed property. I setted it to null as it states in help and again tried to delete it without luck.So how do i delete a variable?
View 1 RepliesI am using flash cs5, and i have 2 symbols, in the fla.. that if they are clicked (in the library menu), they make flash crash instantly.
then how i do to remove them, without clicking on them? (if i click, also with the right button of the mouse flash crash).
[code]...
This code just generates a new ham_mc where the user releases the original (drag and drop). The original returns to its starting point. I have the same code for a movieclip called cheese_mc, the user can drag and drop cheese too.
So, if more than one of these ham_mc's and cheese_mc's are created, what is the best way to delete the last one created?
Is it possible to delete a function?
I have a reusable function, on the first frame it works, but on the 2nd it doesn't load properly and duplicates itself because the other function is still running in the background.
You'll have to forgive my ignorance on the subject, but if you have an object (movieclip, image, w/e) on the stage, and you want to tell flash you're done with it and all it's children (muahaha), what's the best way to do this?I've been using:
Code:
function removeChildAndChildren(targetMC){
while(targetMC.numChildren){
[code].....
I want to name a function, and in the next frame of the movieclip to delete it.[code]...
View 7 RepliesI've just made the jump into AS3 from AS2 and am having trouble deleting a text box if I create it within a function. If I use exactly the same code outside of a function, it works a treat. I'm assuming this is something to do with the text box not having a global or _root property
Code below:
//I can delete this
var headline:TextField = new TextField();
headline.autoSize = TextFieldAutoSize.LEFT;
headline.htmlText = "COPY TEST";
[Code]....
For some reason i'm not being able to clear the objects on screen. I create objects through arrays and i'm not clearing correctly these arrays. For a question of time i'm trying to clear everything on screen before i insert new movieclips. Is there any way to clear every movieclips on screen (live removeChild but for all objects)?
View 1 RepliesDoes anyone know how to delete a scene, in Flash CS5?
I have two scenes in the current .fla, and I want to delete one.
I'm pretty new to actionscript 3.0 and thus I get the feeling I'm making a very juvenile mistake.. either way I have been trying to solve this problem for hours to no avail. I have an assignment in uni to produce a basic flash game that is meant to meet a set criteria involving playing/pausing music, loading external swfs and so on which I have had no problem with.
The one issue I am having however is creating what is essentially a pond game in which a bird is meant to swoop down and pick up a fish. Getting a hit test to detect the collision between the fish and the bird is working fine but I want the fish to delete itself and then generate a new movieclip as the brief specifies. I can get it to generate a new movieclip no problem but for some reason I can't get it to delete the original one. [code]...
I'm modifiying the 3D Carousel and I want that onRelease function it desapears. I've created a new layer with two frames. The first have an stop(); and the second have a red rectangle.
I can go to this frame but I've tryied a lot of diferent methods to stop/delete the carrusel and it continues appearing.
can you delete a onEnterFrame that is placed on the MC its self, for example:
Code:
onClipEvent(load){i=0}
onClipEvent(onenterFrame){
i++
if(i>50){
delete this.onEnterFrame
}
}
the concept is simple and works when placed on the timeline but does not work when placed directly on the MC.