ActionScript 3.0 :: Saving Dynamically Changed Swf Over A Server?

May 22, 2010

Say I have a webpage where a user enters their name and it is displayed to them on a swf. If I have a save button, how could they save their dynamically changed swf to their computer, with their name on it?

Bare in mind that if a normal save is completed, they will only be saving the swf on my server. Somehow, something needs to happen to get them to save the swf with thei name on it, as saving a dynamic swf is not possible in as3 (I dont think)

View 3 Replies


Similar Posts:


Action Script 3 :: Object Has Changed It's Size DYNAMICALLY?

Aug 14, 2010

I'm writing a sort of "dynamic gallery" in flash. The problem is that a child of the gallery can be resized in runtime, and then I have to rearrange the gallery.

Now, of course, I can't overload the gallery items, since it's a display object which
is unpredictable. and even if I could force overloading on the items, how will I be notified if, let's say, an animation started, something move, and the item got bigger Is there some sort of Event for a display object which is dispatched on ANY kind of resize ??

My dumb solution was to go through all the gallery's items and rearrange them every given milliseconds, and now I feel so dirty and I need to confess my sins.

View 1 Replies

Media Server :: Changed To Push The Servers Harder

Jul 30, 2009

I am trying to load test my 2 server load balanced FMS 2 environment which has been set up with the profile for 1000 connection 40MB. When I hit about 140 connections/server it fails with a "Bandwidth Penalty activated at time 1248945759.731000 with bandwidth 5945889 and limit 5000000" error logged in the event viewer immediately followed by many rejection errors: " immediately followed by many rejection errors: "
Connection rejected by server. Reason : [ License.Limit.Exceeded ] : (_defaultRoot_, _defaultVHost_/DLvideo/_definst_) : Current server bandwidth usage exceeds license limit set. Rejecting connection."The load testing mechanism is a test harness that was created by a third party and seems to work well up until the above messages are logged. It basically is making 25 sustained streamed video connections per minute until it starts disgarding connections as noted above.
 
The servers are not even breathing hard (RAM is less that 50% consumed and CPU Utilization is < 5%) 1GB NIC on each server.What parameter(s) can be changed to push the servers harder.

View 4 Replies

ActionScript 2.0 :: Resizing - Create A Movie Clip Dynamically Whose Position And Dimensions Are Changed In Each Frame As Loaded From Xml

Mar 22, 2010

i'm new to action script 2.0 and i want to create a movie clip dynamically whose position and dimensions are changed in each frame as loaded from xml;

[Code]...

the position and dimension are changed but the problem is the last dimensions are not removed and it get bigger n bigger

View 1 Replies

ActionScript 1/2 :: Saving Dynamically Drawn As MC?

Dec 7, 2010

I seached everywhere and try fo find drawing board code that saves after drawing but it seems it's only applicable in AS3, perhaps anyone have any tutorial link or have

View 2 Replies

ActionScript 2.0 :: Dynamically Saving/loading Movie Clip Values?

Jan 27, 2006

I've been using Flash for ages but haven't a clue about backend scripting.I've got a flash app where you can add movieclips to the stage and drag them around etc... ...what I'd like is for the user to dynamically save the _x, _y and _rotation values so they can be viewed by other people.What would be the best way to do this - write to an XML file or to a MySQL database? I've looked at some tutorials but its beyond my capabilities to be honest

View 5 Replies

ActionScript 3.0 :: Saving XML To The Server?

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

Php :: Flex In Saving PDF At Server?

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

ActionScript 3.0 :: Saving Xml To Server

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?

My question is really this: 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

ActionScript 2.0 :: Dynamically Changed Text Value From Frame 1 Assigned To Frame 2

Jun 9, 2009

a_modified_dog suggested, and was kind enough to provide working code in the thread, Assign text to dynamic text fields on different frames, using the "onChanged" event placing code in the main time line of both frames 1 and 2 of a Flash Actionscript 2 movie. The "onChanged" event has been designed apparently for input style text fields only - requiring the user to input text. The code example provided works well for that sequence. But my intended sequence of user events does not permit the user to input a text value. The "onChanged" event does not work with the following intended sequence of user actions:

(1) the user makes a selection from a scrolling list of items that appear within a movie clip (MC1) on frame 1. The list is comprised of a number of selectable buttons.

(2) When the user clicks a button (BTN1) contained in MC1, the onRelease event assigns a string value to a text box (TXT1) within a separate movie clip (MC2) on frame 1. (this is working well)

(3) the user then clicks a stand alone button (separateBtn) on frame 1 that invokes a "gotoAndStop" at frame 2. (no problem)

(4) The text (TXT1) from within the movie clip (MC2) on frame 1 needs to be assigned to a text box (TXT2) on the stage of frame 2. (BIG PROBLEM)

I've played with both dynamic text fields and input text fields. Using the "onChanged" event works well with input text fields IF the user actually enters text into the input text box. Using the intended sequence, a text value is being assigned to TXT1 in MC2 by a button "onRelease" event from within MC1. This same text value (TXT1) should also appear in the text box TXT2 on frame 2. I've tried both input and dynamic style text boxes for TXT1. Both work well for showing the assigned text string on frame 1. Both styles also, when advancing to frame 2, show "undefined" in the corresponding text box (TXT2) on frame 2. Neither input or dynamic style of text box seem to recognize the "onChange" event - from having no text when starting up to having text within TXT1 dynamically appear after the user makes their selection from the button (BTN1)event (onRelease) in MC1.I tried assigning the text in TXT1 on frame 1 to a variable (var_txt1) - in the main time line - and having TXT2 on frame 2 read and assign the variable to TXT2 (TXT2.text = var_txt1), scripting also on the main timeline of frame 2.. Again, all attempts result in "undefined" appearing in TXT2 instead of the variable value (var_txt1). Using 'trace" on frame 1 shows the correct value for the variable (var_txt1). When advancing to frame 2, "trace" shows "undefined".

View 3 Replies

Professional :: Saving Data To Server Via SWF?

Jul 26, 2010

I have in mind a very basic swf file that allows someone to enter data (via dynamic text box), submit this data (via php), which in turns saves it as a file on the Server. This file (.txt) would be used to populate text on the main site. Most of this seems quite straight forward, and standard practice, apart from actually saving the data as a particular file and on the server (or overriding an existing file), which I'm sure comes up against problems such as FTP access and everything else, but I was wondering if someone might have an insight on how this could be done?

View 3 Replies

ActionScript 3.0 :: Saving BitmapData To Server As JPG

Jun 29, 2010

I'm trying to write a contest where the user can paint an outlined image I provide, and then submit it. I want it to then save the image on my server with properties so I can tell who submitted it. They will be asked to input these values of course. I looked into the JPGEncoder but could only find examples for downloading the image directly. Is there an easier way to do a contest like this? I'd rather not have them have to save the image locally and then e-mail it, as this is geared towards kids and I don't want it to be confusing.

View 2 Replies

ActionScript 3.0 :: Saving Bytearray To Server As A Zip

Oct 22, 2009

I trying to save an byteArray to the server as an zip using nochump AS3 Zip Library (URL..). I'll belive I'm quite near with the as stuff, but can't figure out how the php handles the byteArray.[code]

View 1 Replies

ActionScript 3.0 :: Saving Masked Image To Server?

Apr 6, 2009

change the following php/AS3 to make it save the dynamically created masked image to the server instead of offering it for download? You have to pass it variables from the as3 AT THE BOTTOM OF THIS POST...

PHP -
<?php
if(isset($_FILES['Filedata'])) { // basically if file data exists to actually upload.

[Code]......

View 9 Replies

ActionScript 1/2 :: Saving Image To Server From Stand Alone SWF Using PHP?

Jan 12, 2010

I built an information terminal for the shop of a friend of mine which uns as fullscreen application.On this terminal the swf file is running as a stand alone file by unsing the flash player directly.I want to save a snapshot (jpg) from a webcam if someboy presses a button.This does work as long as I run my application (swf) by using the browser (Firefox , Apache and localhost).But if I try to use it as it should be used no image is beeing created.
 
There was an error when first testing the application which forwarded me to an Adobe site where I had the possibility to grant files permissions, which I did for the file (the SWF) that needed it.Did I do something wrong, or is there some permission thet I have to grant before it works as it should be?

View 1 Replies

Flex - Saving Images From Flash To Server Using PHP

Sep 29, 2010

I am trying to save some images from Flash to Php by sending a jpgstream, capturing it in php and pushing it to a file. Not sure what I am doing wrong here.

I am putting all the images I need into an array like so: (history is just where I am keeping all the image data)

[Code]...

But this doesn't seem to do the trick. I have been going through a bunch of different tutes and code snippets, so maybe I just ogt something confused along the way. I have done this before though and don't remember it being this difficult.

View 2 Replies

Actionscript 3 :: Saving Image From Flash On Server Under Different Name

Mar 25, 2011

I followed this question:flash Actionscript 3 and php image upload.I copied the code:[code]It works great, I just need to know how to save the image under a specific name, how do I pass an argument to the php script? or is that not necessary, can I change it before calling the script?How would I then call URLrequest to show user the file he uploaded ?

View 1 Replies

Php :: Saving Bitmapdata To Server And Getting Filename Back?

Jun 16, 2011

Here's what I am trying to accomplish. I have a BitmapData that I am sending to a PHP function as ByteArray on the server by using URLRequest. The PHP function then saves the ByteArray as a jpg. All is well, so far and I am able to save the image on the server. Where I am stuck is that the PHP function generates the image file name randomly and I have no clue on how to get the name of the file I have just saved on the server. I am using the below code to send byteArray to the PHP function. How to modify/add this so I can get the filename of the image once it's saved on the server?

var myHeader:URLRequestHeader = new URLRequestHeader("Content-type","application/octet-stream");
var myReqst:URLRequest = new URLRequest(path);

[Code]....

View 1 Replies

ActionScript 3.0 :: PNGEncoder - Saving Image Onto Server

Dec 23, 2010

I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb.

My actionscript is:
import com.adobe.images.PNGEncoder;
import flash.display.BitmapData;
import flash.utils.ByteArray;
// Go to PHP Page.//
bitmap_btn.addEventListener(MouseEvent.CLICK, gotoPHP);
function gotoPHP(event:Event):void {
[Code] .....

View 2 Replies

ActionScript 2.0 :: Saving Swf Contents As Image To Server?

Nov 25, 2003

way to have a specific portion of the stage save as a .jpg to the server.

So, if a user were to draw something, and click a "save" button, they would be able to save their drawing to the server as a jpg.

View 2 Replies

ActionScript 3.0 :: Saving Game Data To The Server?

Jul 22, 2009

I am working on an educational game that requires the user to enter their username and password in order to retrieve their saved game data. I know how to do this locally using the sharedObject class but I do not really understand how to do this remotely on the server. I thought maybe using remote shared objects would work but it looks to me like that only works with a flash server and data can be changed by anyone.

View 3 Replies

Media Server :: Saving Stream In Custm Path?

Nov 4, 2010

I developed a video recording application using Flash with Red5 .
 
It records the stream and saves atha in webapps folder. But i want to save that in custom directry?
 
Is it possible to mention the path inside the flash code? I tried out this code ... but it throws error saying bad name....
 
ns.publish(videoName,"http://mysite/video/record");
  
steps to change recording path of the streams.

View 1 Replies

PHP :: Upload Photo To Facebook Album Without Saving On Server?

Mar 12, 2010

I'm using CURL to upload files to a service. Currently I'm getting the file content with $GLOBALS["HTTP_RAW_POST_DATA"] then save it on my server. After that, I'm using CURLOPT_POSTFIELDS with the file's full path. Is there a way to send the file content directly, without saving it on my server, as if I saved it? Or is there a way to upload a Photo from a flash app to facebook album, without saving it on the server?

View 1 Replies

ActionScript 2.0 :: Saving A Screenshot Of SWF Without Any Server Side Functionalities?

Nov 2, 2009

how I can save a screenshot of a SWF. All the examples I found requires some form of PHP scripts and some action on the server side.I am doing a simple program where at the end, the players will be awarded a certificate and they have to be able to save it on their desktop. This program is to be run on a cd-rom or off a local hard disk, thus it must not involve any server side actions.

View 2 Replies

ActionScript 2.0 :: Know What Needs To Be Added Or Changed For It To Reference The Time Off The Server And Not The Local Computer Time

Apr 9, 2009

I have this clock code and would like to know what needs to be added or changed for it to reference the time off the server and not the local computer time (and preferably reference the server just once and not repeatedly). I already have a file on the server "time.php" that is providing the milliseconds. I know it should be fairly simple, but I just can't wrap my head around it.

[Code],,,

View 2 Replies

Php :: MySQL Or XML: Saving User Votes On Server From A Flash Movie?

Nov 21, 2009

A project of mine involves a flash movie (.swf) in a webpage, where the user has to pick from a number of items, and has the option to thumbs up or thumbs down (vote on) each item.So far I have gotten this to work during each run of the application, as it is currently loading the data from an XML file - and the data is still static at the moment.I need to persist these votes on the server using a database (mySQL), such that when the page is reloaded, the votes aren't forgotten.Has anyone done this sort of thing before?The two mains methods that I have found on the 'net areeither direct communication between AS3 and the SQL using some sort of framework, orpassing the SQL query to a PHP file, which then executes the SQL query and returns the SQL to AS3.

Which of these methods is the better option?For the latter method (involving PHP), I have been able to find resources on how to acheive this when attempting to retrieve information from the database (i.e. a read operation), but not when attempting to send information to the database (i.e. a write operation, which is needed when the users vote). How is this done?Edit: Implemented solutionSomewhere in the PHP file:

if ($action == "vote")
{
$id = $_POST['id'];

[code]....

View 2 Replies

Flex :: Downloading A File From A Server And Saving It In A Specific Location Without User Intraction

Jun 23, 2010

I want to download a file from the server and save it in a particular location of the disk without user interaction. All this I want to do it in Flex.

View 1 Replies

Media Server :: Microphone Sound Recording,saving / Playing Flv File Is Saved But Not Working

May 4, 2009

While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]

View 1 Replies

Media Server :: FMS 4 - FLV Not Saving - Record Video From The Users Webcam And Play It Back At A Later Date

Mar 24, 2011

I'm trying to record video from the users webcam and play it back at a later date.
I call

[Code]...
 
However, when I look at the FMS Admin Console at the streams in app/_definst_, their types are either "NetStream" or "Live". If they were being saved wouldn't they say "Stored"? After I close the application doing the recording, the "NetStream" type stream disappears, and after a while all the "Live" typed streams are gone too. Nothing is saved.

I have no idea what is happening. I don't know if it's a problem with my AS3 code not closing the recording properly or if I'm doing something else wrong, or maybe somethgin isn't right in the FMS?

View 1 Replies

ActionScript 3.0 :: Dynamically Loading Content From A Server?

Jul 6, 2009

little stuck on a project, need as much help as possible. I am creating a building directory for a touch screen kiosk app. this kiosk will have a virtual keyboard that i have created with an input text field, which hopefully will search a single file on the server that controls these kiosks. Then display the search results in a dynamic text field. What i would like to do is create a swf that my employer may enter there own information such as thier name, title, department, suite, and some comments... then click some sort of button that will save the information on the server... then on the kiosk end the user can type in a name, department, suite number to have the data display on the kiosk. i am using cs3/as3. i have created the virtual keyboard, and the data entry app that allows my employer to save data to the server, but for the life of me, i cannot, get my kiosk end to retrieve the data.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved