ActionScript 2.0 :: Saving Xml With Php?
Nov 13, 2006
I have used the script provided in kirupa's xml tutorials to save xml files successfully but I want to expand them so that flash can pass the filename to the script at runtime? Here's the current script im using to save xml data to a predefined xml file :
Code:
// in flash :
my_xml.sendAndLoad("saveXML.php", my_xml);
[Code]....
View 4 Replies
Similar Posts:
Feb 9, 2009
What's the best and most efficient way to save a var to php with as3? I want to create a counter, so I know how many times a flash movie has been viewed or a button clicked on, how could I do that? and would it be a good idea to save the results in a mysql table rather then just a .txt file?
View 4 Replies
Jan 17, 2010
Im trying to save from fla or swf to .mov or .avi. without having to buy a 3rd party app.I've tried exporting from Flash but both my computers just sit there and don't finish the job.I can't see any options to save as an .avi file either.I've tried opening both the swf and fla files in Quicktime with Perian
View 3 Replies
Mar 25, 2011
After reading previous forums I've realised there is a corrupt picture that was imported into the file. I've deleted this in the library as people have suggested but still no luck saving the file. It just saves as 1K file.
View 1 Replies
Dec 5, 2011
its a simple app in which images are flashed on the screen for a short period of time (starting at 2 seconds) the user has to play for 3 minutes 70% of the images must be clicked / tapped and 30% must be ignored, at the end it displays how many "fails" and how many "halftimes" you got (fails being how many times you clicked an image you WASNT meant to or didnt click an image you WAS meant to and halftimes being how many images you was meant to click that you clicked in half the allotted time i.e at first, if you clicked within 1 second that would count as a halftime click) anyway, all of this works fine, the problem i have is that: i wish to read a value from an XML file (at first the value being 2000 so i can use it as a variable for when i initiate my image timer) which i have achieved, at the END of the game, if the number of fails is 1 or less, i would like to decrease that value by 50 (0.05 seconds) and if the fails is 2 or more i would like to increase the value by 100 (0.1 seconds) and i dont have a clue how i can modify the XML file to change this value, as i said im a junior programmer and dont have much knowledge of AS3 with XML
View 1 Replies
Jun 1, 2009
I have 60 images in a library within a .fla file that I want to save to my PC. (I lost the originals). Flash won't let me drag-and-drop them or anything remotely sensible like that.Suggestions posted around t'Internet talk about putting each one on the stage and going through "file-export". Besides from being very tedious, this might not be so great - the images constitute an animation and need to be precisely aligned.Incidentally, the library does have a movieclip of 60 frames - each containing a single image.If all else fails, is there some tool which will extract these images out of the compiled swf?
View 1 Replies
Aug 11, 2009
I have made a cartoon section that needs to go into a video movie, it uses a lot of movie clips etc. It needs to be very high resolution- 1920x1080 When I just export it as an avi, none of the movie clips animate- they just slide around on the first frame of their animations.
When I export is as a .mov the file size is huge and I am not even offered the ability to compress it. It is like 8 gigs. When it was finally done the movie played in slow motion- the clip was about twice as long as it should have been.When I saved the file as an swf, and then tried to convert it to an avi using a converter, all the movie clips moved in doubletime, while the animations in the timeline were fine. How can I get my flash file to play in a standard video format.
View 2 Replies
Nov 30, 2009
I have created an xml driven application with which the client is very happy. They currently use notepad/dw to create the xml files.They now want a "form" of some description to create the xml file to avoid writing tags and so on.I have had a good look around. There is some info about creating the xml itself in as3 (looks pretty easy), but very little about how to save that file to the clients server. I gather that the flash doesn't do this for security reasons?would i be better using php to create the form for my user rather than flash as3. Or is it better to create in as3 and then append a little php to upload the doc? Or am I going abouit this the wrong way!
View 2 Replies
May 27, 2009
is there a way, anyway, to save a flash file to reader?
View 15 Replies
Jul 8, 2009
I've recently upgraded to Flash CS4. However, the project I'm currently working on was started in CS3 and I need to keep it as a CS3 as I transfer the .fla file between two computers because one only has Flash CS3. Is there way of setting it so when I click 'Save' or Ctrl+S it saves it automatically as a CS3 fla, rather than automatically converting it from a CS3 to CS4 file? I'm serial Ctrl+S hitter so this is getting really annoying now having to go to File>Save As everytime!
View 1 Replies
Oct 12, 2009
I have made a box with a rounded corner and a border in Flash but when I publish the file the outer edge of the corner is still white and I want it transparent so it takes on the color of the website background.
View 5 Replies
Dec 21, 2009
Im trying to save an xml file in the server, Im using the code of AS3 book. and here is the code as3 and php ,that suppositly save an xml file on the serve. but it dont work. i set te permition of the folder to 777 to allow writting. well i look at evrything and dont find the probleme at the error message it give :An error occurred when attempting to load the XML.Error #2032 (but it come from the book, it should work)?
[Code]....
View 6 Replies
May 26, 2011
I've inherited a flash project @ work and I need to save a keyframe as it's own .swf file, but I don't recall how to get Flash to do just that.
The flash .fla file seems to hold multiple keyframes that need to be saved as their own .swf files, which are referred to in the Actionscript by name.
I've figured out the editing, but this business of keyframes i've forgotten how to manipulate.
View 4 Replies
Jul 19, 2009
I am trying to make a flash application that can save (to the user's local hard drive) a screen shot of the canvas (or more accurately part of it).I've dabbled with Quasimondo's Bitmap Exporter which did some funky stuff to render an image, ship it to a php script on the server, and bounce it back to the client. But not only is that inefficient it also has two other major flaws:
1) it's written in actionscript 2 so I can't use any actionscript 3 abilities.
2) it breaks as soon as one of the images on the stage is defined as a variable brought in through $_GET rather than hard coded. (the image comes in fine but then the rendered finished product is a blank white image)
View 6 Replies
Jul 8, 2009
I am a new bee to flex. what i am trying to do is to generate and save the layout design which nothing but canvas to a pdf format at the server. Currently i am able to display the pdf in browser (see the function below:) but cannot save the file at the server.
private function continueToPdf():void{
myPDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
myPDF.setDisplayMode ( Display.FULL_WIDTH );
myPDF.addPage();
[Code]...
View 2 Replies
Jun 9, 2010
I am trying to take a variable sent from flash, and save it to a spot on my web server using PHP, I have NO idea how to do this, and I can't seem to find code that works anywhere on the web
View 3 Replies
Aug 12, 2010
I want to compile an FLA that I want to use as resources for two slightly different application in two different folders.
something like this
library.FLA
-> bin1/lib.swf
AND
-> bin2/lib.swf
I could just copy them manually, but with multiple files there's always room to forget one file.
View 2 Replies
Jun 25, 2011
I've been all over the interwebs, including Stack Overflow, for hours, trying to identify a solid, workable example of saving information in Flash into an XML file.
I want to take the positions of two different types of objects and export the lists of each to XML. We'll call the objects ball and bat.
[Code]...
View 2 Replies
Dec 8, 2011
I have an as3 app which utilises an sqlite db to save metrics data. It is well known that as3 is single threaded, so when I save to this db, the Stage Video I am playing becomes jumpy! I have heard that saving db data in batches can speed up this process so I save in a loop:
for (var i:int=0; i < metricsObject.metricsComponentData.length; i++){
switch (metricsObject.metricsComponentData[i].mouseType) {
case MetricsCollator.MOUSE_OVER:
this._query_txt = "INSERT INTO " + this._tablePath[0] + " VALUES (null, " + this._sessionID +
[code]...
I have looked into pseudo threading examples but they all require a sprite or stage instance, the class I am executing this code in, is not a display class, I don't really want to pass an instance of the stage into this class.
View 1 Replies
Jun 1, 2009
Is it possible to set up FDT so that it only builds the workspace when I save (as opposed to constantly or manually) like it does in Flash Builder (previously Flex Builder) and if so, how?
View 2 Replies
Dec 11, 2008
I am capturing a webcam still and saving in a BitmapData variable. I want to then pass the BitmapData to a php script where I can save it to a folder.
View 2 Replies
Jun 21, 2010
isn't there a way, with Flash CS5, to automatically save files in CS4 format without having to do Save As...
View 5 Replies
Dec 21, 2010
Is there a way in which the user could open a SWF file that loads an image contained in the same directory as the SWF file AND then somehow save the SWF or another SWF with this image loaded WITHOUT needing the external file?Basically i need the user to be able to insert there own image without actually using Flash to manually do it, then somehow they would have a duplicated SWF which had this image saved into its library (without the need for the image file to be present in the same directory as the SWF).
View 0 Replies
Jul 24, 2011
Yo, just trying to figure out how to save an image from a SWF.(Yes, I've already used the search function here)I've made kinda like a slideshow thing and next to the images, there is a "Save" button. When you click the save button, it will get the image from the SWF and save it to the user's hard drive (or if easier, it will download it from an URL).
View 2 Replies
Dec 27, 2011
I need to edit some CS5 files but don't have CS5. If anyone could open these and save them down to CS4 I'd be hugely grateful. There are 4 files. If there's a way I can return the favour I will. eg some beer money via PayPal.
The four files are here:
[URL]
View 1 Replies
May 8, 2009
I need to have a Quicktime.mov file play inside an .swf using the QT controller. According to [URL]
1. Do one of the following:To link the video clip directly to the current Flash document, select File > Import > Import To Stage.To link the video clip to the library for the current Flash document, select File > Import > Import To Library.
2. Select Link To External Video File, and click Next.
3. If you imported the video clip directly to the Stage in step 1, a warning appears if the imported clip contains more frames than the span in which you are placing it in the current Flash document.Do one of the following:To extend the span the required number of frames, click Yes.To keep the span at its current size, click No. Frames in the imported clip that exceed the frames in the span do not appear unless you subsequently add frames to the span.
4. Select Control > Play. Preview a linked QuickTime video before you publish your SWF file. When you import a linked QuickTime video, Flash adds the required number of frames to preview the QuickTime video, the same as it does for an embedded video.
Note: You cannot use the Test Movie command to preview linked QuickTime video content.[URL]
View 1 Replies
Sep 24, 2004
how do i make flash save to my .txt files, i'd like this in asp, php annoys me. Okay just use the example: my variable i want send is a impute box (instance box1, var box2).
View 3 Replies
Jan 21, 2007
got my code working, and all information i enter in to my sharedObjects is working correctly as it should but isn't saving so when I close and then re-open the flash file the data isn't there? Admittedly I'm new to sharedObjects I'm using the [.data.] when entering info and then [.flush()] at the end of the function - is there anything I've missed?
View 5 Replies
Apr 17, 2007
I need to take a bunch of movieclips from the stage and dynamically store them all together in a separate swf on my computer. Is that possible? how do i do it??
View 2 Replies
Jul 11, 2007
Does anyone know how I can take a MovieClip in Flash and save it to a form as a JPG. I know you can print a MovieClip so I imagine you can save one to a server. I'll try and do my best on explaining what I currently have and what I am trying to do:
I currently have a Flash piece that is a type of configuration tool for a product. Lets say its a Hat Configuration tool. A customer that comes to purchase a hat can change the color, size, stitching, text, fonts, images, etc... and when the are finished the can print their hat, which has all the information and the final picture of the hat as the configured it, or they can send the product via e-mail. Currently the send via e-mail just sends the information as a text file via an ASP process page. What I need to do is send the movieclip as an Image (JPG) to the server.
View 7 Replies