ActionScript 2.0 :: Value Can Be Sent To The Php Script Along With The File Information?
May 11, 2008
I have some Actionscript code that will hopefully upload multiple files to my web server (via a PHP script). A user simply selects their files by clicking on a "select" button, then uploads them by clicking "upload".To see a current version of this, goto [url]...., sign-in using (username: test1, password: freedom7901), and click the active link.
However, I also want the user to fill out some text that will describe each file upload (the property name) - so I've also included an input text box in the flash panel, and called this instance "property_txt". Can someone give me the correct code so that this value can be sent to the php script along with the file information? I'd like to access the value via the GET or POST function in the PHP code.Here's my AS code:
import flash.net.*;
var currentListItem:Number;
var fullFileBytes:Number;
var progressBar:MovieClip;[code]...
View 2 Replies
Similar Posts:
Jul 5, 2009
I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:
[Code]...
I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.
View 1 Replies
Jul 21, 2010
I need to find a way to detect keystrokes when the flash file is not selected and send that information to an .swf file. The file would be stored locally (not on the internet).
View 3 Replies
Feb 11, 2011
I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?
View 2 Replies
Aug 2, 2010
I'm currently working on a Flash application that needs to save files to Drupal. I already saved the file to the Drupal site with the File service, but I can't get to attach the file to the node with the node.save service (Upload module, not CCK file field).[code]...
View 2 Replies
Nov 1, 2010
I am now using FancyUpload to make an upload tool for my website, for the video module, so user can upload their video in FLV format with limited size and time
With the limited size i can handle it, but with the time . I dont know how to know the total length of FLV file
View 2 Replies
Jul 31, 2011
I want to create flex/actionscript directory view for my files with php/mysql. I have some ideas that I want to share:
1)I am thinking of creating table (in mysql) "files" and another table "folders", when user loges in i will require all data from "files" and "folders" where Username = 'something'. But the problem is, I will create a lot of entries inside of tables. For example if I will have 100 users, and each user could create 100 entries (files or folders) it means that i will get 10000 entries inside table.
2)My second idea, and I think more safe way of doing it is creating table "users" where will be set id, username, password, ... , files, folders. In files (text format entry) will be listed information about files, and they will be dividend by "*" symbol like this:
id*file name*size(in kbytes)*path*status
example:
15*test.exe*150*/root/*private
16*test2.exe*200*/root/folder1/*public
[Code]....
Now here is only 3 file info but there can be more than 1000.
View 2 Replies
Nov 13, 2010
I'm using AlivePDF in a project, and this is actually the first time I've used it. I've gotten it to work just fine except for when I send the PDF file to a server. The problem is the save() function makes a few assumptions:
1. it assumes I don't need to send any other information along with the PDF file.
2. It assumes I want to pop open another page.
3. It assumes that Flash doesn't need to know what's happened to the file after it was sent.
What I want to do is send the PDF file along with some other data with a URLRequest, and then get the response back from the server, and depending on the response move on. AlivePDF seems to have this "one size fits all" function for sending the PDF to the server. has anyone dealt with this before? Any resources I can look at? I've been all over Google trying to find answers, but I'm kind of at a loss.
View 2 Replies
Aug 18, 2009
I want to load information from a Text file and then want to use in action script as a variable.What I did. I make a file with the name Text.txt and write there TextFld=You are Good Boy In flash I make a getText.fla in which i build a Text box at stage and set it to dynamic and the name of this variable is also TextFld Instance Name is Txt. Write the following code at main timeline
loadVariables("Text.txt",_root);
pretty fine it shows this information in flash but i want to use this variable in action script to do more action i.e i want to make flashy text. I want to store this information in a variable and then use that variable for other purpose.
View 2 Replies
Feb 25, 2012
I wrote over my actionscript code, saved it and closed it. now i cant get the information back. Do you have any tips. Been writing for 2 weeks on it. Iknoow i should backup it :)
View 1 Replies
Feb 3, 2012
have been trying to extract information from this file on YouTube using AS3. I have managed to access ytID (YouTube video ID) along with the ytName (YouTube video name) from a specific channel (called through the loader). I am stumped on how to get the thumbnail URL. I have managed to find out that through YouTube, its tag is media:thumbnail, however, Flash gives me an error for trying to use a semicolon.
Code:
stop();
var xml:XML;
var videoDisplayLimit:Number = 1;[code]....
View 1 Replies
Jul 7, 2009
I have seven movieclips that I want to load individual ChildNode information into from an XML file. Is there a way to pass that XML info into individual MovieClips for each individaul ChildNode?
Here's the code I have so far.
var myXML:XML;
var myLoader:URLLoader = new URLLoader();myLoader.load(new URLRequest("links.xml"));myLoader.addEventListener(Event.COMPLETE, processXML);function processXML(e:Event):void {myXML = new XML(e.target.data);trace(myXML.*);}
View 1 Replies
Jun 8, 2010
I am currently working on an educational project. After submitting for review, the clients have requested I make an array which was hard coded in the as file, to read from xml. The problem I am having is that I do not know how to populate the array with the information contained in the xml file.
hard coded in the as file
wordList = ("Paper,Plastic,Reduce,Retrieve,Litter,Trash,Glass,Recycle").split(",");
I am wantying to replace the word lists that are included with the information in the xml file so as to allow different users to create different words for the list without having to edit anything othere than the xml file.
View 3 Replies
Jul 20, 2011
I am thinking of creating an app which will read the contents i mean the library of the fla/swc file and use it to check whether the items present in that swc/fla is used in as3 project.... can do it manually... but wanna automate it..
View 1 Replies
Feb 18, 2009
I'm having trouble pulling & updating information based on an XML file.Each node contains a couple text items and a date. When the date arrives and gets to 00:00:00:00, the next XML node should be called.What would be the best way to store each node so that based on a timer reset (or something to that effect), it would pull the next node until that specified date and then pull the next set of info until the end of the nodes?
View 2 Replies
Nov 1, 2010
I have an as3 game that I am trying to debug. To do this, I allow the game to play itself repeatedly over-night (which generates information for around 500k games) and then I analyze the info in the morning. I would like to save the debug info to a text file instead of using trace statements. Currently, the game creates about ten strings per play which are printed to the screen. Is there an easy way to save these strings to a text file?
View 1 Replies
Jun 17, 2010
I'm trying to figure out the best way to create a search box that searches an XML document and returns the results. So far I know how to do a search that returns exact matches but I want to make it so if someone typed in say "Manager" it would return results that Also had "Sales Manager" or "Account Manager".
Currently I have
PHP Code:
var authorList:XMLList = xmlData.job.(title == citySearch.text);
Which only works with exact results. What is the best way to get around this? Do I just need to bring in everything from the XML file and then compare it using .search()?
View 2 Replies
Feb 25, 2009
how to retrieve information about size (in pixels) of loaded FLV file? Video object returns 2 pairs of parameters (width,height) which are useless because returns always parameters passed in constructor of Video() object. Another pair is (videoWidth,videoHeight) which is always (0,0). I gave up...
I need this information to scale proportionally video clip to size of area designed to display this video.
View 3 Replies
Jun 28, 2011
I have a scheduling application that allows users to save any changes. When the user clicks the save button, Flex sends all the information to a coldfusion script which picks the information apart and sends saves it to the database. That all works well and good, but I would like to be able to display some sort of text to the user saying something like "Your file was successfully saved" or "There has been an error.
[Code]...
View 1 Replies
Jan 4, 2012
I got a request today conserning .txt files.What I want to accomplish is to grab information from a text file and save them in variables (or an array, depends).Whats the best way to do this, and whats the do's and don'ts?I'm planning to use the LoadVars class to pass the variables through and i've got a working test, but isn't there a more efficient way to do this?
View 9 Replies
Feb 4, 2012
I have been trying to extract information from this file on YouTube using AS3. I have managed to access ytID (YouTube video ID) along with the ytName (YouTube video name) from a specific channel (called through the loader). I am stumped on how to get the thumbnail URL. I have managed to find out that through YouTube, its tag is media:thumbnail, however, Flash gives me an error for trying to use a semicolon.
ActionScript Code:
View 3 Replies
Apr 16, 2009
I am trying to save information that I have displaying in my output panel to a .txt fille. I have tried this tutorial here: [URL] but it is not working for me.
I have the output panel displaying information such as:
PHP Code:
[URL]
I need to somehow save this information to a text file so I can forward it onto my email. Or if anyone knows a way to forward information from the output panel to your email
View 9 Replies
Jun 17, 2003
i want to make a discussion/message board. but a very very simple one. no username, password.. just a board where people can wite one or two lines. thats all.its very hard to find one out there. i think if i can manipulate a guestbook files, i can make a simple discussion board. The problem is that i dont understand how to make flash 'communicate' with notepad file to store information like how they did in guestbook. this is link to one of flash message board i found, but it has too many section - like kirupa forum. i dont have any ideas to make it as simple as i want. i dont understand the AS
View 2 Replies
Nov 3, 2011
I am trying to send some information to a javascript function on the same html page as the swf file is in. I used the tutorial here on Kirupa but for same way it doesnt work.
ExternalInterface.call("fillForm('"+ l.x, l.y +"')");
ExternalInterface.call("fillForm", l.x, l.y);
These are the variations I tried.
View 1 Replies
Oct 4, 2010
I was creating a program and now i need to send a bitmap data and ssome text fields information to a php file in my site, how can i do that?
View 2 Replies
Sep 27, 2003
i'd like to know if its possible to save information obtained from users to files if the user is accessing the flash file from a cd. I would also like to know how it works if possible. And can the flash file be in .exe instead of .swf?
View 5 Replies
Jun 4, 2009
I purchased a flash template and replaced all of the information with ours. The problem that I'm having is that when customers fill out the contact form on the 'contact' page, it doesn't send their email to us (which is one of the fields).
The site is live at [URL]
I've attached a jpg that shows the movie clip I'm working in.
View 3 Replies
Aug 26, 2009
I have a simple html page witha flash button. Upon clicking on the button, I would like to retrieve certain information from the js in the html (a URL for example) and execute it from the flash button.
View 3 Replies
Nov 8, 2011
I know trace() function can print information,but I must use flex builder environment.If I don't use flex builder,the trace function can't make function.I want to know if there is a statement can replace of trace(),because sometimes I need print information for debug and I don't want to use flex builder too.
View 3 Replies
Mar 25, 2005
Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF?
So say there's the URL [URL] which has the movie flashmovie.swf embeded in it ... is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?
I've been picking apart the _global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful.
View 4 Replies