ActionScript 2.0 :: SendAndLoad Function - Generating XML And Name It From Flash?
Feb 10, 2011
I have a question about this sendAndLoad() function. Can I send XML (generated in flash) and LoadVars() (or string) together in single turn. Something like this:
myXml.sendAndLoad("somePHP.php",myXml,myLoadVars ...)
It doesn't have to be LoadVars, it can be simply string. My problem is that I need to generate xml and name it from flash. Right now, the program is working with separate sendAndLoad. I have a two PHPs one is generating txt file and saves name to it, and other is opening that file, reads name from it, creates xml with that name, and saves xml from flash.
View 2 Replies
Similar Posts:
Aug 22, 2005
I am trying to send some variables to an ASP cgi using the sendAndLoad() function in Flash. On Frame 1 of my movie I have the following code:
[Code]...
View 1 Replies
Jun 16, 2010
How do I add a preloader for the sendAndLoad function.
View 11 Replies
Feb 4, 2009
In the code below - fRequest_activate initiates a sendAndLoad - all fine and dandy. Thing is - I want to be able to return a value from this function that indicates whether the server response was satisfactory - and I can't work out how to to it.Because the onLoad function is nested within my fRequest_activate function it has all got a bit messy - and just doesn't work - how do I pass the status from an asynchronous server call - which at the moment is picked up by the onLoad callback, back to my original function? - or should I just approach this problem in a different way? All I want to do is call one function - and know if it has been successful or not in talking to my server.
Code:
function fRequest_activate():String {
var lvEmail_send:LoadVars = new LoadVars();
var lvEmail_response:LoadVars = new LoadVars();[code]...............
View 5 Replies
Apr 28, 2007
I am having trouble to get the SendAndLoad() function to work correctly so that when the php script echo's or print("result") is called it gets a string saying pass, or fail... the following is my code for php, and action script. Also I have provided two pictures explaining the what exactly I want.
[Code]...
View 3 Replies
Aug 2, 2010
It doesn't load during the first load.
myVars= new LoadVars();
myVars.onLoad = function(works)
{
if(works){
[code].....
I am tryin to hit a servlet to get the data.
View 1 Replies
Mar 14, 2011
I have a small question. I am probably misunderstanding something, but when I do :
[Code]....
View 1 Replies
May 30, 2010
Theres a great tutorial for sending and loading XML here: http:[url]...However, its written in AS2 and Id like to have an equivalent in AS3. Ive attached my attempt, but it doesnt work? even though it doesnt throw any errors.
View 2 Replies
Jul 30, 2010
Quoted from this page:
send(url: String, target: String, [method: String])
Sends the variables in the my_lv object to the specified URL.
sendAndLoad(url: String, target: Object, [method: String])
Posts variables in the my_lv object to the specified URL.
View 1 Replies
Apr 13, 2009
How can I use sendAndLoad to call a php page with flash, and have that page create a user download box, to save a txt file? I have the php code that outputs a text file:
Code:
Header('Content-Type: application/octet-stream');
Header('Content-Disposition: attachment; filename=test.txt');
// Print the text to be sent
echo "hi";
That would force a download box if you ran the php page but the send and load will not get it to work.
View 3 Replies
Feb 4, 2011
I have a high score submit script, and it goes as follows...This is the actionscript:
Code:
on (release) {
var uscore:LoadVars = new LoadVars();[code]......
We have tried many things, and we finally decided to just check for success to see if the vars were passed through. The first time we tried it, it worked, and then since then no matter how many times we try it won't work. I have also tried to just run random scripts when the page is loaded, regardless of what vars were sent, and nothing ever happens, so I'm under the notion that the sendAndLoad() isn't well.. Loading the page. It was working before, but it appears to have just stopped, we're not sure what we changed.
View 9 Replies
Aug 16, 2005
I want to modify an existing xml file (membres.xml) starting from flash by using sendAndLoad() and while passing by a php file. I control rather well flash, I know xml better and better but I know the php still little. My progamming is partly inspired from this tutorial: [URL]. But something still does not function. This is why I need your assistance. All seems to function, but my xml file (membres.xml) remains unchanged.
Flash:
In flash, after having loaded and having modified the file membres.xml, I use sendAndLoad to send my xml object to the php file:
reload_xml.sendAndLoad("envoiexml.php", membres_xml);
A trace of the xml object did right before sendAndLoad shows that the xml object reload_xml was modified correctly. The error must thus logically be further. Here now the php code in the file envoiexml.php:
<?php
$filename = "membres.xml";
$raw_xml = file_get_contents("php://input");
print $raw_xml;
$fp = fopen($filename, "w");
fwrite($fp, $raw_xml);
fclose($fp);
?>
View 3 Replies
Jan 29, 2009
I'm basically sending some variables to a php script from flash and then returning some values back to flash from the script. The problem is that the values returned to flash are appearing correctly but do not test correct. My actionscript and php scripts are below (just samples displaying the the mechanics of what i'm trying to do):
[Code]...
View 3 Replies
Oct 6, 2008
I want to know if it is possible to create a vector based file (PDF) from a web based Flash application. The application would be a 'Design it yourself' type deal, it would just be a fancy text generator. All this will be designed by the user using the flash application.What I want to know is once the user has finished designing their text, can this 'creation' then be exported as preferably a PDF, or Jpg, etc. once the user submits the design?
View 3 Replies
Nov 28, 2009
So what I am curious about is if it is possible and how, to have an embedded video and capture the thumbnail. There are other sites that share video and I'd like to get the thumbnails from the embedded videos, but they use flash video players to show the video and likely use flashvars to pull up the right video.
I've been trying to automate some of the capture of thumbnails and embedded videos but have no clue how to get remote thumbnails from these videos.
View 3 Replies
Jun 1, 2007
Is it possible to generate a text file using Flash. That is create a notepad file for an example.
View 1 Replies
Jun 6, 2007
I need to do some banners in which an invisible car follows a guide path, generating tire tracks that fade over time. I know how to do it "the hard way" with masks, but there are many formats for the banner, so it would be a lot of tweaking and ajusting for each one. Is there a way in AS2 to dinamically generate the tire tracks and make them follow a designated path (that contains curves)? It would help me a lot to simply adjust each path for different banners, rather than to redraw the whole stuff each time.
View 4 Replies
Jan 13, 2010
I learned 3D math from the tutorial on this site. I have since developed a game where you are a spaceship flying through a star field.I can get the new planets to be created based on your position, but I can't get them to change based on your angle. this makes it so they don't spawn in front of you, they spawn off in a parallel line.
PHP Code:[code].....
View 1 Replies
May 27, 2010
Instead of populating the BitmapData class from an IMAGE.I would like to (within Actionscript) GENERATE some new BitmapData by capturing the Bitmap representing say, a TextArea component on the stage.In other words, sort of take a "screen capture" or "screenshot" of one of the components, and convert that into an image. Am I silly to even wonder if such a thing is feasible? Can an Air/Flex app "look at itself" in this way? Can it turn a datagrid or a canvas or a textinput into the corresponding image AS IF via screen capture?
View 1 Replies
Jan 10, 2011
I have a series of large fla files that were being published into swc's and then used directly in an flash project. Probably a total of 1000+ objects. As the number grows the final compiled swf is getting quite large so I want to download individual swf's of each object only as needed. I then need to be able to access and clone the object via classname from the final AS project.
The issue is the only way I have found to export each one is to 1) copy and paste it into a new fla file 2) double click to 'edit' it to force it included, 3) reset the linkage (class) name since it was wiped, 4) publish (i.e. file->publish) and name this swf. This will take quite a while for 1000+ of these.
While you can right-click on each item in the library to save it as a swf, it appears NOT to include the classname etc, just the item. Once I download this, I cannot clone to use it more then once without downloading it again which is unacceptable.
Is there a faster/better way to generate these swf's?
(I did look into xfl briefly but it looks like writing a script to do this given some of the unknowns there will take longer then just doing it by hand.)
View 1 Replies
Mar 10, 2011
I'd like to port a Flash application to iPhone.I like flash for a lot of reasons and would prefer to use it for content generation. However there are a few downsides I am told, like at least 3.5 MB per app.So while using Flash would make it easier to extend the current pipeline to include iPhone content, I was wondering what other choices are there for dealing with vector assets. I'm looking to bring in assets from Flash (or illustrator) easily, be able to add placeholders that can be replaced, and package them so that they can be updated easily from iOS.
Will most likely end up outsourcing the app creation, but I would like to know what the choices are before deciding what route to go.
View 1 Replies
Feb 23, 2012
We need to generate around 8,000 nearly identical SWF files with slightly different text. I know about flashvars, but unfortunately, we don't have control over the publishing of these files and can't have flashvars passed in. Ideally what I'm looking for is that we have a flash designer come up with a nice looking template for us with a placeholder text or element in the file. We can then call a command line utility many times to generate 8,000 copies of this with slightly modified text. I've searched for an entire day now and haven't found anything to help us out. Granted, I'm not a flash developer, but it seems like this would be pretty straight-forward.
View 2 Replies
Oct 29, 2009
My XML Image Loader is working fine, but, my problem is with the size that the flash is generating the .swf i have just codes and vectors inside my .fla and the swf have 294kbs...
View 4 Replies
Jul 2, 2010
EVERY SINGLE WEB SITE that has a flash file embedded on it causes my flashlog.txt file to display the following message, usually multiple times while a flash file is loading...
Warning: 'flash' has no property 'prototype'
This happens literally every single time I load a web page that contains a flash file embedded on it, regardless of where.
Otherwise it seems to trace all other errors and trace commands just fine.
Is this something I actually need to be concerned with in my development? I am assuming no since I get this warning in the flashlog.txt for every single flash file I open in my browser.
View 1 Replies
Jul 2, 2010
EVERY SINGLE WEB SITE that has a flash file embedded on it causes my flashlog.txt file to display the following message, usually multiple times while a flash file is loading.
[Code]...
View 3 Replies
Oct 13, 2011
I'm trying to generate multiple stars in the stage, but I keep getting an action script error.
stop();
var i;
var arrayStars:Array;
for(i=0; i<70; i++) {
[Code].....
View 1 Replies
Nov 17, 2011
ther am having problems with my flash code.I have an xml file with the following structure:
<buttons>
<button>
<id>Garden</id>
[code].....
View 1 Replies
Oct 22, 2010
I'm currently creating a whiteboard in Flash, and I want to be able to record all of the user interaction for later playback. Is it somehow possible to create a video of what the user is drawing?
View 1 Replies
Apr 6, 2012
The only thing I get is a swf file.I don't really know why Flash CS 5.5 refuses to generate my project's apk file since I've never encountered a problem like this before. Is it a bug or am I doing something wrong? My player is set to AIR for Android,I have my certificate,I don't get any errors, and debugging on my device via USB works flawlessly.
View 3 Replies
Jun 24, 2009
I have inherited a custom application on Flash Media Interactive Server 3.0 that broadcasts audio in real time. The custom app is written using Adobe Flash Professional 8 and actionscript 2.0.
A little background of how the custom app works When a user connects to the media server to join a stream, our custom application calls out to a seperate application server (that is not Flash) to determine if the user is allowed to connect to a broadcast stream and which stream they should join. We use Xml.sendAndLoad() to do this. The application server we call sends back Xml to the custom App on the Flash Media Server.
[Code]...
View 1 Replies