ActionScript 2.0 :: Send An Entire Swf Output To Php?
Jun 18, 2009I have a swf generated, i need to send the generated to php code to print it in JPG image.
Is there a better way to print a image from a swf output through actionscript.
I have a swf generated, i need to send the generated to php code to print it in JPG image.
Is there a better way to print a image from a swf output through actionscript.
WHen I was learning AS2, it seemed incredibly easy to double it with PHP, but I am having a pretty hard time with AS3.Basically, all I need to do is do the same kind of thing that loadVars could in AS2. Just need to send a few pieces of POST information, and then load up the output of the script.I found this piece of code on the internet:
ActionScript Code:
var request:URLRequest = new URLRequest("http://www.mydomain.com/feed/myfeed?query=youlike&start=34");[code].........
But it doesn't work (when I replace the url with my URL, of course.)
I have an AS3 swf which users can upload jpg images to my EC2 instances which sit behind and Elastic Load Balancer. The jpg images are converted into bytearray data and sent using URLLoader.load(URLRequest)I make 2 calls when uploading, one to upload a large version, then another to upload a thumbnail version. A PHP script to which the bytearray data is uploaded converts this to a file using file_put_contents($destination,$GLOBALS["HTTP_RAW_POST_DATA"])Is it possible to combine these two requests into a single request which contains both the bytearray data for the large and thumbnail images and 'split' the HTTP_RAW_POST_DATA to create 2 files at the server. This would be better than uploading the bytearray for the large version then using something like ImageMagick to resize the resulting image into a thumbnail which I realise is another option.
View 1 RepliesI'm quite new to AS3 (coming from php/c#) and like it very much. My problem: trace doesn't output anything in the Output window anymore?!
View 2 RepliesI'm quite new to AS3 (coming from php/c#) and like it very much.My problem: trace doesn't output anything in the Output window anymore?!
View 3 RepliesI'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
View 5 Repliesvar nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
{
[code]....
The type count is correct but the information for the project is wrong.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 6 RepliesI searched around and found some helpful things, but I am still missing something I think...
LoadVariables() won't work across domains, right, so, is it porrible to send data to a CGI script via getURL and not have a popup window on send?
I have a problem with shareobject. the Send method does not work. I work with AS3 My code
[Code]....
I am actually discovering Classes.I try to make a class that reads out an XML file and than converts it into arrays.the array is well created in the class file, but I can't send it back to the swf correctly: it only duplicates the first item of the array in an infinite loop, but when I trace it into the class the output displays it right..
with this code I call the class:
Code:
var myProduct:Product = new Product("gallery.xml");
this.onEnterFrame = function() {
trace(myProduct.getArray());
[code]....
a week ago I bought the following monster template template:[URL]..my last changes to it were to the popup boxes that appear on the SERVICII page when you click those titles there. Right after those changes it compiled and published, everything ok, i did several other tasks in Photoshop then back to my flash and at the next recompile, Error - Send don't send Flash has to close. I reopened it and it keeps closing forced. I tried undoing my steps but nothing worked. I am desperate, the project is due completion on saturday and my source is messed up.
Can anyone tell me why I get that? Has anyone been in a similar situation.I am a flash newbie, I saw no errors in "Compiler Errors" or in "Output", just force closing the Flash CS3.
I've got a for loop running in a function. I want to break out of the entire function if a condition is met in the for loop, and obviously carry on within the function if not. I've read a little about using labels, but I'm new to actionscript and most of it's going completely over my head. Here's my code.
[Code]...
I've got a layer full of keyframes. It's basically a circle that turns on/off, flashes, whatever,using motion tweens, but most importantly, it has a defined position on the canvasI'd like to place it in another spot, but when I try to select the whole layer and move it, it moves only the keyframe located below the playhead(I think that's what it's called), which won't do me any good.
View 14 RepliesI'm trying to get objects to drag and drop. Instead of dragging just the circle, it drags the entire screen. I can get it to work if I use "this.circle.startDrag()" but I want to be able to use the startMove and stopMove functions on different children, text boxes and other objects generically. Here's the code:
circle.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
circle.addEventListener(MouseEvent.MOUSE_UP, stopMove);
function startMove(event:MouseEvent):void {
[code].....
I've stupidly made a flash document with the default 550x400 pixels and I now need to scale all the content (buttons, MC, dynamically loaded images)
Is there an easy way to do this without selecting everything (problematic by the way) and using the transform tool?
How do we make an entire block of code (maybe 10 lines) as comment.
Maybe just to deactivate a code block when trouble shooting AS code.
From Actionscript 1.0 - 3.0
If so, how do you do it?
How does one make a preloader in AS 3.0 for THE ENTIRE swf?
I'm certainly generally familiar with making preloaders in Flash, yet with changes to the Flash environment in the last few years, my situation may not be so straight forward:
I have a very developed Flash 3.0 application where the timeline is not used in the traditional way, everything is Class based, and there are all kinds of assets in the library that are used dynamically.
This type of preloader is useless, because (I guess) that "this.loaderInfo" is associated to the timeline (which has nothing on it) [code]...
I work on a PC and use flash CS3 and am truly struggling to slow down this entire file someone kindly made for me. I can move all the end key frames from 40 frames to 600 frames but it is working out how to do the others accurately plus the key frames on the arc start line which is the 3rd line down.
View 1 RepliesI'm playing several video streams in my flex application. Plus there are sounds of application UI. Is there possibility to mute entire application or I should silence each of potential sound sources?
View 3 RepliesGiven some rule I want to strike through an entire row in a DataGrid. Is it possible?
View 2 RepliesI've been scavenging the web for examples of preloaders. I can find lots of loaders (bulkloader etc) which you can use for multiple files, but I'm wondering if anyone knows a way to preload the contents of an entire folder? (ie all of the images in an entire folder - without having to name each image individually?). The reason I ask is that the content of this image folder will change over time (and not by myself), so I need a preloader that is versatile in this way...
View 3 Replieshow to package entire project. I mean to say that i have large project and i want to manage all files. I have main fla file, some xml files. some .as files. right now all this in one folder. i mean to say how to say path to the main file.
View 0 RepliesLike if the stage is too big, when I run the movie is it possible to add a scrollbar to scroll up and down the entire screen?
View 1 RepliesHow do I move an entire layer? I want to move ._y and ._x of all objects on a layer beneath a mask to make some animation.
View 1 Replieshow do I add a preloader on for my entire movie, without using a Document class (ie, all code on the timeline), using AS3?
View 1 Repliescan you save the entire contents of a .swf?
the reason i ask is, instead of creating a variable for each and every bit of stuff that in the swf (created texboxes, movieclips) can it just be one big save?
i,m trying to apply a blur filter to the entire stage except one MovieClip!
(You know thouse cool login types )
I gived it a thought and the only ideea i got so far is to put all the content on stage in some movie clip and apply on it the blur filter.