ActionScript 2.0 :: Embeding A Server-side Script In Flash?
Apr 4, 2002i found ure email form php code.
PHP Code:
<?
$recipient = "fake@fake.com";
[code].....
i found ure email form php code.
PHP Code:
<?
$recipient = "fake@fake.com";
[code].....
I want to download files from the server side to client side without prompting a window to the user to download when any updates happen at server side.Right now I am using urlstream class but first file is downloading completely rest of the files contents downloading partially.
editCode sample taken from other post. Warning: it's a huuuge chunk o'code.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="client.components.*" layout="absolute" height="554" width="817"
[code]....
I want to create an application that has these features
- At client side: Display a list of images, when user click on one image, data will be stored in MySQL database.
- At server side: Manage images used in client side, I can delete, add new images.
Is this possible for me to achieve this using Flex? And if it is able, will my output be 2 separate SWF files? And where can I find the materials to read on writing such applications?
Below is the code. When the swf is connected to FMS(the connection is successful) I use this application.user_so.send("enterContestGroup"); to call the client side mothed. You can see that in the client side I have defined the "enterContestGroup" mothed. However the fact is it doesn't call that mothed. Can anybody tell me what the error is
application.onAppStart = function(){ application.user_so = SharedObject.get("user_so", false); application.nextId = 0;}application.onConnect = function(newClient) application.acceptConnection(newClient);
[code]....
can you write and modify XML files using server-side Actionscript? I've been going through Adobe's Server-side Actionscript reference, reading up on the File class that lets you modify files on the server, and the server-side XML class that lets you read and 'understand' XML data, but can you put them together and essentially edit XML files on the server?
View 2 RepliesI can't use a proxy server. Can't use google app engine etc. I can't use server side code. No php or python. I need to be able to do logins to twitter and post status updates to twitter through an Actionscript 3 web application. The biggest thing is obviously getting around twitter's crossdomain. Is there a clean ajax version of this or something?
View 1 RepliesUser interacts with Adobe flex webpage to configure reports based on some data stored server side. They configure their view and have THAT view emailed to them daily. I've got the report builder, the part I'm trying to figure out is how to render the report server side and send it out as email (native flex functionality? convert to html? take screenshot? assume something is running client side?...)
View 2 RepliesI am writing a thesis and have been able to place all my frameworks under two categories (client-side frameworks and server-side frameworks), but I can't seem to finf where to place Adobe Flex...In which category should I place this or should I place it in some separate catgeory?
View 3 RepliesI am making an app where people upload a bunch of images and it thumbnails them and saves them to the server. Is it better to create thumbnails from the uploaded images, or to upload them to the server then re-download the thumbnails?
View 1 RepliesI am new to actionscript. I have created a script that will play server side sound object and client side mp3 files alternately. Now, I would like to play the client side mp3 first then only play server side sound object alternately. However, I have no idea how can I do so. The following is the code that need to be swapped:
[Code].....
The $995.00 version is listed as not supporting server side playlists. Is it possible to implement internet TV station like functionality using that version? I would like to have a list of files to play out and have it so those connected are all viewing the same thing.
View 1 RepliesWe're thinking about purchasing the Flash Media Streaming Server Edition and we have some doubts after looking this edition comparision: [URL]..
1.- It says the streaming edition doesn't have server side play list. Does it mean this version doesn't come with a native application for making playlist on the server side? Could I write an AS application (As I've done with developer edition) to implement server side playlists??
2.- How about the clustering? Could we install an instance of FMS in several servers to make them work as a cluster?
I have seen in web apps we get flash images generated on the fly how is it achieved? Any api for programming languages (Java Python)?
View 2 RepliesWhat technology are better (robust, stable, speed) for rich web app with flash movies, chat, etc. Somebody said that Red5 will drop down if more that 50 users try to suck video stream from it. Is there people who use Java on server side and Flash for client side?
View 1 RepliesI'm still a newbie at flash, but is it possible to have Flash get files from the server it is currently on, and then send those files somewhere?
View 1 RepliesI saw this post and don't understand why it's so struggling to post an image to server side with flash, or is it just the poster didn't do it in a proper manner ?So far my progress is:
var ba:ByteArray = (new PNGEncoder()).encode(vidBmpHolder);
var request : URLRequest = new URLRequest("http://localhost:3000/doodles");
request.method = URLRequestMethod.POST;
[code]......
Here is the code I used to post the bitmapdata to server side(PHP):
private function savePicToServer(bmpData:BitmapData):void
{
trace("in savePicToServer");
trace(bmpData);
[code].....
Finally the trace output is :
in savePicToServer
[object BitmapData]
finish savePicToServer
I have two software to create with AIR: a server and a client. Both with AS3 and AIR.I want to avoid having a big architecture with Remote Shared Object, or using BlazeDS, or having to set a Java / Python / ... server in the middle.In order to avoid having to parse socket data in the server and in the client side, I thought about using XMLSocket on the client side: the data arrives in a way which is already parsed by the Flash framework.However, when I use this XMLSocket with the AIR ServerSocket, the "connect" event returns me a raw Socket on the server side. So I have to manually manage the XML data on the server side.
Is there a way to also use an XMLSocket on the server side to communicate with the client? A kind of trick to convert the returned Socket into an XMLSocket?If there is an AS3 library which manages that, I did not find it.
In answering a question on stack overflow, one person recommended using the following code to detect flash server-side, he pointed out that it does not work in safari:
if (strstr($_SERVER['HTTP_ACCEPT'], 'application/x-shockwave-flash')){
$hasFlash = true;}
Testing for Flash capability on the server-side. My question: why does it not work in safari, and how reliably does it work with other browsers?
We are building a Flash application for client use but will need to do server side processing of images. All our expertise and application code is in Java, but I've been told Dot Net has better Flash support. This is general but we will be modifying large (up to 50MB) image files. The idea is that what we could do in Flash should be duplicated, automated and extended on the server side.
View 2 RepliesI have a SWF timeline animation that grabs XML/images dynamically and then need to output/encode that as a video.
View 3 RepliesI'm trying to create a RTMP Streaming application but I can't seem to get the server-side code to run. I've checked the logs on RootInstaller/logs/test, but nothing inside it. I am running everything locally also.Here's what I have:
ActionScript3 file
public function btnConnectHandler(event:MouseEvent):void
{
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);[code].....
I am new to flash media server side scripting, i want to know that is there any tool or editor available to write server side script easily like we are doing in Adobe Flex or Flash Builder
View 1 RepliesI have a bunch of flash videos that I need to watermark with user related information, to make illegal re-distribution of these files harder.I'm wondering how can this be done server-side. If done client-side, it will be quite easy for the user to intercept the videos before they are watermarked.Since the watermark should contain user-specific information I can't really watermark the videos before encoding them (unless I have an encoded video per user - not feasible).I'm expecting this to affect the streaming performances a lot, though
View 2 RepliesHow many possible ways to send/load data to/from server side data sources and what are the conditions of using each method.
View 2 RepliesI would like to use the Wordnik API for my site but I am a bit confused as I am new to the world of API's and implementing them. I do not have server side access and from what I can tell to use Wordnik you must use a server side script but I see they have Actionscript. I know that is Flash but have no experience with it. Can I use AS3 SDK to implement the Wordnik API without having server side access? If that is possible can someone point me in the right direction for learning how Actionscript works so that I may be able to do this.
View 2 RepliesNeed to find a way for Flash to talk to an ASP.NET server-side script and save some product information directly from Flash into a customer shopping cart...but, how are people handling this communication between Flash and the server-side C#? I want my Flash .swf to browse products and add them to the cart from within' Flash securely. Currently people can browse / Sort the products, but how are people passing information to the Flash movie securely? How are people handling information like session variables? What are people using to use Flash as their only interface tool for logging in, or accessing their account information through a Flash interface?
View 6 RepliesI am trying to load the value of a php variable into a dynamic text field in flash mx. I am using the loadvars method, with "nameofPHPfile,"0","GET" etc. It doesn't seem to work, but then I am not sure if the php code is correct. A process of elimination is needed. Am I using the right method in flash???
View 14 RepliesI'm trying to write to a simple txt file using flash and php. After several failed attempts I decided to brake the code down to it's bare minimum and build up from there, unfortunately even that didn't work.Here's my php code.
PHP Code:
<?php
$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Testing[code]....
the file it's writing to (testFile.txt) has it's access set to 777 as does the php file.I point my browser to the php file but nothing gets written to the text file. I know the server is allowing php (at least on some level) because my php mail is working perfectly.
I am making a movie in which flash will call a ASP.NET page, which in turn gives a random ID, which is assigned as a file name to the user recorded streams. The Page will be called upon pressing Record button.
When I compile the flash movie, pressing Record button gives me a new ID every time the page called. Every thing is fine.
But the problem is, when I embed the SWF in a browser, or let say, when tested in localhost, the flash makes a call to the .NET page for the first time, but not later, and the ID being the same as first, the recorded streams are over writing. I want it to be unique every time user records a stream.
What may be the problem, when embedded in browser, flash calling the .NET page only once and not later.