Python :: Flex - Sending PNG File Using CGI
Jun 3, 2010How can I send a .png file using python cgi to a flex application?
View 1 RepliesHow can I send a .png file using python cgi to a flex application?
View 1 Repliesi develop one project on python and upload on google app can i use swf file to import in python web application?
View 1 RepliesI am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:
[Code]...
I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder.
The crossdomain.xml is following:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> [code].....
However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.
I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.
View 2 RepliesI'm trying to find out if there is a way I could embed a Python back-end into an AIR application? I'm looking to employ an approach similar to the one outlined here to implement the business logic for my application, but additionally, I would like to provide the user with a single binary which they can load. I don't want the user to have to fire up a seperate server process to make this work.
View 3 RepliesI experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.
code:
try:
buff = ''
[code].........
Does Adobe Flash expose any Automation or hosting interfaces through COM or a DLL in %systemroot%system32? I'm working with Python and wxWidgets to host a flash application to monitor lunar phases.
View 1 RepliesI want to write the bulk of data into xml file ,the data coming from the backend(mysql) using cgi by httpservice, read the xml file and bind it into list. can anyone send the sample code for this?
View 1 RepliesHow do i send a text file between air applications using local connection?Sender AIR
private var conn:LocalConnection;
public function init():void
{
[code]......
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]...
i need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.
View 1 RepliesIf swf file is embedded in html it is easy to call ActionScript methods via ExternalInterface using JavaScript. Now I want to use the swf file outside of a browser and still be able to access its methods, but now I want to use Python to call ActionScript. Is it possible? There is so little information about it in the Internet. Probably I can use AMF (pyAmf) for this, can I?
View 2 Repliesi have this function in a view that shows the xml in the browser, but what i want is to save the xml content in a file, to use in a Flash gallery.
def build_xml_menu(request):
rubros = Rubro.objects.all()
familias = Familia.objects.all()
[Code].....
On Linux, YouTube places temporary flash files in /tmp. Nautilus can display the duration (Minutes:Seconds) of them, but I haven't found a way to extract the duration using python.'
View 2 RepliesI am working on an app engine project in python were i want to be able to upload and play games in a .swf format. I am having trouble getting app engine to send(deliver, render, display,...not sure what the correct term is) files with a .swf ending.
I've tried embedding a picture in my object tag to make sure my html and Django template isn't what is causing th problem, and it works fine.
This is my app.yaml file
application: flashstealer
version: 1
runtime: python
api_version: 1
[Code].....
Is there anyway I can add a link to a flash file I post on my wall using the rest/graph api, such that when a user clicks on the flash file playing, it takes them to my app?
View 1 RepliesI am calling Python script from flex using HTTP service. How can I send back some values from python to flex app?
View 3 RepliesI am making a simple Python CGI script that collects data(in xml format) from a flex application and I want to insert it into the mysql database . In perl The script is looks like the following...
my @samplexml=$cgi->param("Items");
my $data=$xml->XMLin("@samplexml");
foreach my $e(@{$data->{Group}})
[code].....
I'm having a problem converting a regular expression from Python into Flex. My string is something like this:
SELECT "col", othercol,
othercol3" FROM doesn'tmatter...
Python matches just fine:
>>> re.search('select(.*?)from', 'SELECT "col", othercol,
[Code]..
match always ends up null. What am I doing wrong? I'm sure it's obvious to a seasoned Flex programmer...
I have a simple site made with python (django). User registers, inputs some basic info and it stores it to mysql. User then is able to log in with his username/password which he created...
Now i want to add a flex application which will run once the user is logged in, but i dont want the user to have to log in twice (once into django, once into flex app). For the sake of learning i just want the flex app to also load some information from the mysql database, like the users firstname or something.
how would i go about passing session information into the flex app?
I'm using Google Engine App with Python. I want to add custom user authentication. How is it done, with the best practices? I want custom authentication because the app is built in Flex and I don't want to redirect to an HTML page.
The user value object is like this:
class User(db.Model):
email = db.EmailProperty(required = True, indexed = True)
masked_password = db.StringProperty(required = True)
# maybe more things here
I would like to mask the password, is there some built in function in GAE? Then, how I will remember the current user? Through sessions and cookies? Or what else?
ActionScript allows you to mark a variable as [Bindable], causing any changes to that variable to have immediate effect all over your application.How would you implement this feature in your favourite programming language?
View 1 RepliesI am trying to make a flex application where it gets data from a telnet connection and I am running into a weird problem.To give a brief introduction, i want to read data from a process that exposes it through a socket. So if in the shell i type telnet localhost 8651i receive the xml and then the connection is closed (I get the following Connection closed by foreign host.)
Anyway i found a simple tutorial online for flex that essentially is a telnet client and one would expect it to work but everything follows Murphy's laws and nothing ever works.Now i have messages being printed in every event handler and all places that i can think off. When i connect to the socket nothing happens, no event handler is triggered even the connect or close handler and if i do the following the socket.connected returns false! I get no errors, try catch raises no exception. I am at a loss as to whats going wrong?
socket.connect(serverURL, portNumber);
msg(socket.connected.toString());
Is there something about telnet that i do not know and its causing this to not work. Whats more interesting is why none of the events get fired.The following is the python code that works!
def getStats(host, port):
sock = socket.socket()
sock.connect((host, port))[code]....
I am sending the parameters from flex application through HTTP POST request to Python/PSP script. I am able to call PSP script from flex app using HTTP POST request, but i am not able to use/retrieve these parameters in Python/PSP
View 1 RepliesI have an xml snippet that contains an object hierarchy:
doc = """
<RootObj val1="ValueOne" stat1="Stat1" stat2="Stat2">
<internalarray type="array">
<InternalObject val1="12" val2="12" />
<InternalObject val1="13" val2="13" />
[Code]...
Here is an issue i'm struggling to solve for quit some time now.I have a python + GAE backend with a flex client that communicates via JSON. I'm using flex's HttpService bound to a Responder with result and fault callbacks. When python raises an exception, I don't seem to get it in flex. I did some research and found out that the problem probably lies in the fact that the flash runtime cannot handle http responses with status code other than 200.
View 1 RepliesI love django, and I like flex. Django for it's cool debugging system (those yellow pages helps a lot to find bugs in my code), and flex for it possibilities. Recently I come across a problem. If I create a form in flex and then communicate with the django server, I can't see any debugging info (when the exception happens in django). Not sure, if there is a way to get the debugging info, because it is not accessible in command line (no error output), or in firebug.... Also I tried to create a quick html form, and post same data as I send from flex form, but it's a bit of pain to be honest. Will be happy to listen how do you solve the problem
View 1 RepliesI want to retrieve data from a Database and display inside a datagrid in a Flex web application. The way I'm thinking of doing it is :
Send the Query data from .mxml file to the .jsp page using HTTPService. In the .jsp, connect to the database and retrieve the data using select statements. send the results back to the .mxml using HTTPService.
I know what to use but I have an ambiguity. In the (.mxml) I use xxx.send() to send the data. What do I use in the (.jsp) to send it back ? I know that I should store the results in an XML in the .jsp file, but how to do that ?
I have an AS2 FLA that needs to get an external JPG file from a web-server and send it to another server encoded as base64.
The only problem is I can't use an external PHP page or something like that. It should work with a single SWF at the end.
I don't even need to show the JPG inside a MC. Just need to send it encoded to the other server.