ActionScript 3.0 :: Manipulate An XML File On Save To Avoid Duplicate Entries?
Jan 19, 2010Based on UI inputs I am saving the results to an XML file (eg)[code]...
View 4 RepliesBased on UI inputs I am saving the results to an XML file (eg)[code]...
View 4 RepliesIf I have an object that calls
addEventListener(Event.ENTER_FRAME, update);
addEventListener(Event.ENTER_FRAME, update);
will that add 2 listeners?
a problem I'm having with passing some validation in a form im creating.For the sake of getting to the point, I have two Textfields in my form lets say email_txt and friendsEmail_txt. What I would like to do is validate the two fields to make sure the user does not put the same email address in both fields.Im sure I need to do this via a function but I'm lost as to how to go about it. I googled for about an hour and perhaps im not qeurying it properly as I could not find any answers - Im sure there is one.
View 4 RepliesI want to delete the duplicate entries in an array. So I have tried the code I atach to this post. I have proved all the posible combinations but no one seems to work.This is the code I have writen:
Code:
package
{
[code].....
I have a mc (squareContainer) that can be dragged around. It also contains other mc's that uses hittest and changes colour on mouseDown.I want to add another squareContainer (eg squareContainer2) that contains the same mc's with a couple of extra ones.. what is the best way to do this without duplicating instance names, functions and variables?
View 0 RepliesI want to create a image application in flash, but trying to map out the complexity of it!
Step 1: I want the user to upload a image
Step 2: The user can choose a separate background image
Step 3: The user can manipulate the image to make it fit with the background
Step 4: Export as one image as a profile picture on facebook or just the desktop
This is kind of like the yearbookyourself.com application if you have seen it=)
I want to create a image application in flash, but trying to map out the complexity of it!
Step 1:
I want the user to upload a image
Step 2:
The user can choose a separate background image
Step 3:
The user can manipulate the image to make it fit with the background
Step 4:
Export as one image as a profile picture on facebook or just the desktop
This is kind of like the yearbookyourself.com application if you have seen it
Has anybody out there made a similar application?
I have an array of objects. Each object has a color attribute which could be "red", "blue", "yellow", "green", "orange" or "purple". There are 20-30 objects in the array so colors repeat. My goal is to sort the array so that no colors are next to each other. Distribution of colors is not exactly even but close.
This is what I have so far. It checks the next and previous object for a color match and if it finds a match it moves it to the end of the array.
private function sortColors():void
{
var getNext:uint;
var getPrev:uint;
[Code].....
This works OK but if there is more of a certain color they end up repeating at the end. I could add something to the end to throw those back into the mix but I feel like there must be a better way.
Im working on a project where i need to create a webpage that the end user can upload an image (gif, jpg, png) that is then transformed and mapped to a perspective shape, then saved to the server, and linked in the mysql DB.Has anyone done something like this before?Id like to do this in flash, if possible, if not, I guess shockwave is the next optionbecause you cant distort flash movie clips to create a "perspective" im gonna need to use something like this:
View 3 RepliesIm working on a project where i need to create a webpage that the end user can upload an image (gif, jpg, png) that is then transformed and mapped to a perspective shape, then saved to the server, and linked in the mysql DBId like to do this in flash, if possible, if not, I guess shockwave is the next option[URL]Am I crazy trying to do it this way?
View 2 RepliesThis is santhosh, I have qury to all is it possible to avoid caching (save) swf files to temporary folder in client system? is there any solution for the same?
View 1 RepliesHow do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
I cant believe that Flash will let you load data from a text file then doesn't allow you to do anything with the data other than display it. Surely there must be a way you can do something the data imported ie perform some calculations. Is this beyond Flash or is this something that has been addressed in AS3? All the tutorials I've found all stop at just displaying and 'swonking'.
View 8 RepliesI have searched the archives here, but cant get a clean answer on this.I am loading an external SWF sucessfully, but I need to manipulate a MovieClip instance within that external SWF from the main file.
Code:
// SLIDE 1 IMAGE LOADING
var slide1Loader:Loader = new Loader();
var image1:URLRequest=new URLRequest("slides/1.swf");
slide1Loader.load(image1);
slide1.slideImage.addChild(slide1Loader);
That is the successful code to bring it in - but now I need to be able to use a movieclip within it called COPYMC
I cant believe that Flash will let you load data from a text file then doesn't allow you to do anything with the data other than display it. Surely there must be a way you can do something the data imported ie perform some calculations.Is this beyond Flash or is this something that has been addressed in AS3?
View 4 RepliesI need to create a notepad in flash.here how could i save the file by prompting the save window?
View 11 Repliesstep1- I got an xml that is locally loaded(works fine)
step2- the content goes into a datagrid that is displayed (works fine)
step3- In AS3 I dynamically add some lines to this xml file(works fine)
step4- I save it locally (works fine)
step5-and want the datagrid to be updated..(works not-so-well)
So, in step 4, the data is saved into the xml file, but in order to finish the save, the user has to click on the "Save as" windows in order to have the file updated of course.. and that's where's my problem, how can i tell flash to wait till the user actually saves the file, before reload the xml file in the datagrid ? here's the code :
[Code]....
When i save the file as an .swf file to view it in my browser the video gets really big (sized the flash document 250x240 px) . How can i easily control my flash video sizes?
another thing: When im doing a video and work with things that are outside of my white document (in the gray area) for instance things that are to be faded into the document and so on. These things also show up in outside of my video when i view it in my browser.
I am working on Adobe AIR application and some test users report to me about same issue.When they try to save the project file from this application, they have no possibility to add any extension (".txt", ".xml" or any other) to the file.
View 1 RepliesIs it possible to save scores in a text file or xml file locally? Im not creating an online application but rather an application for personal use! I don't want to use cookies since they can be cleared by mistake! It would be really good if it was possible to save the score to an external file!
View 2 RepliesWe used Flex to build the web app below. It lets the user build an interactive activity and click "Publish as Flash" to save a SWF file on their local computer.[url]...
Problem:When saving the file, the "Save As Filetype" drop down is empty and end users can accidentally delete the swf file extension in the filename.How can we lock down the extension so it will always have SWF in the extension?
Technique 1? Set "Save As Filetype" to SWF by default.
Technique 2? Click "Publish as Flash". User specifies the filename. File is saved on the server. User presented with prompt to download file. File is downloaded from the server using the traditional browser windows explorer dialog box (the same dialog box if I downloaded a program from cnet's downloads.com)
Is there a any way to create a txt file in as3 and save reports in that file?
View 1 RepliesI'm working with a little bit of XML and have questions, first here are my steps:
1) Load XML
2) Append to XML
3) Save XML using PHP
Well, why when I load the same XML file does it read the file without the appendend nodes I just added?I can open the XML file in Dreamweaver and see the appended nodes, but once I load the XML back into the .SWF, it clears the appended nodes and only reads the original nodes again..[code]My .swf is local at this point and PHP and XML files are on a server running PHP5.Apparently the PHP script is correct because it DOES save the file correctly. I can save as many <persons /> as I want. But when I close the Flash .swf the URLLoader reads the original XML data again. Not sure how that's possible?When I change the location of the XML to load into the URLLoader it changes so I know it's reading the same file I saved to..
i'm trying to make a Top Score history for a flash game, which i load from an XML file. The problem comes to when i want to update the XML file. how do i do that automatically without prompting the user (ofcourse). I want it to be saved automatically to the same directory as the flash file.
here's my code right now, but it prompts the user where it wants to be saved, which i don't want to happen:
var xml:XML = <XML>
<topScoreList>
</topScoreList>
[Code]....
I created a flash banner with flash pro CS5 using windows 7. Can I save the file so my client can open it with a Mac OS?
View 1 Repliescan an an swf file save data to an xml file while running?
View 4 RepliesIs there a any way to create a txt file in as3 and save reports in that file?
View 2 Repliesjust a simple question, is it NOW possible to duplicate loaded swf files with AS3? and how to do that?
View 5 RepliesI am working on a new flash project that allows the user to prepare artwork using the .swf flash file and allows them to overlay hypertext links into their artwork. The output of this custom content is needed to be saved as a .swf file itself, so that it can be used independantly. The new .swf file would essentially just be a single frame with the interactive artwork on
View 3 RepliesMy problem is that when I click the letter movieclip it does create the duplicate as it should and it starts to drag the duplicate mc. However, when I release the clip it doesn't stop dragging? I realized that if I put onMouseUP event instead of onRelease it actually does stop dragging when I release the mouse. I would, however not like to use the onMouseUP event if possible.
[Code]...