ActionScript 3.0 :: Using The Flash With Django?

Jan 26, 2011

I'm just wondering has anyone ever used Flash with Django backend? Can anyone post any working code snippet?I'm using something like this:

var request:URLRequest = new URLRequest("http://site.com/err/login/");
request.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();

[code]....

But always getting an error unable to open URL

View 1 Replies


Similar Posts:


Django :: Error With Flex HTTPService And Django Even Though POST Is Successful?

Nov 5, 2011

(This is the first time I've done this actually.)

<mx:HTTPService id="post_update" method="POST" result="{Dumper.info('bye')}"/>

The result handler above is just for debugging purposes, but its never hit, even though what I'm uploading via POST..

[Code]...

View 2 Replies

Django :: Flex 4 + Django: Testing And Release Options?

Aug 19, 2010

I am creating a django-based site that will serve flash apps that occasionally access data via pyamf. I need to be able to easily test the flash in the context of the django framework, i.e. with all the login cookies and everything available, so that when I make a pyamf call, it has all the user context there. And I need to be able to test and release both the swf's and the wrapper html's in a sane way. However:

The html templates in flex are already templates, so if I put template code in there for django, it gets scraped out before the flashapp.html is created. The html's and swf's automatically get released to the same directory, but I want them to go to different directories because the swf's shouldn't be served by django and the html's should be in an area in control of django.

[Code]...

View 1 Replies

Django :: Save A ByteArray From Flex Into A FileField In Django?

May 14, 2011

I have some audio data in a byte array in a Flex app that I would like to save to my model in Django. I assume I would use a FileField, but I can't seem to get it to work. (My project is set up like this.) I've tried looking at this sample code for PyAmf, but I can't quite get the two to combine.

View 1 Replies

Django :: Uploading Image Using Flex And Django?

Nov 21, 2009

Anyone knows how to combine flex and django on upload images? I used fileRefenrece in Flex but I don't know how to relat it with a View in Django.

[Code]...

View 1 Replies

Django :: Flex And Django For Web Application?

Jun 30, 2010

I'm building from scratch a web application that is not trivial (have some algorithms and calculations in the backend) but not too complex (it doesn't have to process lots of records during runtime. We thought about using Django for the backend in order to be able to develop the application fast with flex based GUI.

I'm a Java developer with no experience with Django so basically I wanted to know if using Flex and Django together is a good option in terms of ease of development and maintenance? I saw that there are several libraries such as pyAMF and DjangoAMF for this purpose, but since Django is also about html templates and MVC, does flex really work well with django?

View 1 Replies

Django :: Manipulate My Flash Depending On A URL?

Nov 8, 2009

I have a flash map of the UK which is divided up into the counties, a user clicks on a county and is then directed to a new url, eg. [url].... The flash map remains on that new page in case they wish to select a new region.

What I want to know: is it possible to manipulate the flash so that if the [url]...then london remains highlighted on the flash map. I presume I will have to use some AS which is fine as long as it is AS3.

View 2 Replies

Javascript :: Can't See Flash Content In Html Django

Jul 22, 2011

I'm new working with Django. I have a html page with flash content named map.html, and I like to include it into another page named soporte.html (which extends base.html page) through {% include %} tag. If I open map.html directly without django, in firefox for example, I can see the flash content, but if I open the whole project using django (in firefox too) and I go to the page where is suposed to be the map I can't see anything.

[Code]...

View 1 Replies

Django :: Flash - Iterate Over Chunks() With Request.POST?

Feb 17, 2010

I'm trying to optimize a site I'm building with Django/Flash and am having a problem using Django's iterate over chunks() feature. I'm sending an image from Flash to Django using request.POST data rather than through a form (using request.FILES). The problem I foresee is that if there is large user volume, I could potentially kill memory. But it seems that Django only allows iterating over chunks with request.FILES. Is there a way to:

1) wrap my request.POST data into a request.FILES (thus spoofing Django)

or

2) use chunks() with request.POST data

View 1 Replies

Python :: Django - Check A SWF's Flash Version And ActionScript Version?

Mar 1, 2012

I need to validate an uploaded SWF to ensure it meets certain Flash and ActionScript version limitations. Anyone know a good Python library to parse metadata out of a SWF?

View 2 Replies

Django :: Partial Updates To A SWF?

Sep 17, 2010

Suppose all that happens initially in a client swf is a user clicks a hyperlink in a text object of the swf, so this requests a "page" from the server. In response the server just modifies that existing swf in the client browser, by for example (?) invoking public functions of it, and possibly passing in as parameters the name of image or data files which were also downloaded in response to the URL request. The crucial part is that all that can happen initially in the SWF is a URL "page" request. Is this commonly done and if so, how.

View 1 Replies

Python :: Save Django Xml In A File?

Mar 6, 2010

i 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].....

View 1 Replies

Html :: File Upload Error In Django

Apr 5, 2012

Currently working on a site built in Django and i'm getting an issue when they try uploading a file on there PC. In IE it says 'HTTP error' and in Firefox it says 'IO error'. They are using IE 8 and the latest version of firefox with Windows media edition.

View 2 Replies

Bind My Flex Builder To My Django Application?

Jul 19, 2009

Usually when I run my application Flex Builder creates a file in a directory on my local PC and then opens a browser and points to it. Everything was fine, but when I decided to link django server to flex applications via xml data providers I started to get security errors. (Related to absence of crossdomain.xml). When I created the file and put it on the server[code]...

View 3 Replies

Django - HTTP Push Examples In Flex?

Aug 31, 2009

I am trying to create a simple board game (a kind of checkers), where users will be able to play online with each other using flex application as a client.

I am using django application to process the game on the server side. And I come across the problem, if one user made a move, I can send it to a server, but how do I let the opponent know about it?

The way I am thinking to do it is to create a timer and send requests to the server asking was opponents move done or not....But here we have 2 limitations:

1) Each client would produce big amount of requests (not sure how server will work if I have e.g 100 such clients)

2) If players will chose game with a time limit for example 5 minutes/per game it will be very important to show them situation on the board as soon as it changes (without a pause), but timer will send request only on timer event, so if for example I will chose tick interval to 5 seconds it will mean that 5 seconds another side will not be aware of the situation changes.

View 4 Replies

Django :: Map Field Names Between PyAMF And Flex?

Jun 1, 2010

For example, using my UserProfile model:

class UserProfile(models.Model):
user = models.ForeignKey( User, unique=True )
blurb = models.CharField( max_length=200, null=True, blank=True )

[code].....

View 1 Replies

DJango :: 500 Error When Returning Object To Flex

Oct 31, 2011

I'm able to return django models that have only CharFields/Dates/Integers, but now I'm trying to return models that have ForeignKey properties and I'm getting this error in Flex in my NetStatusEvent.NET_STATUS onError event handler:
m_info Object (@16491fe9)
code "NetConnection.Call.Failed"
description "HTTP: Status 500"
details "[URL]"
level "error"

Here are the models that matter in models.py:
class RewardActBase(models.Model):
user = models.ForeignKey(User)
start_date = models.DateTimeField(blank=True, null=True)
progress_value = models.IntegerField(default=0)
[Code] .....

Then when I want to get retrieve these object via pyamf, this is the method I'm using, which is giving me the error I listed above.:
@login_required
def get_challenge_act(http_request, location_id):
user = http_request.user
c = ChallengeAct();
[Code] .....

The interesting thing is that if I change my get_challenge_act method to return a property of the ChallengeAct object, I don't get the error. So I can return properties or objects that belong to the ChallengeAct, but not the ChallengeAct itself. For example, the following code returns a Challenge object with no errors:
return c.challenge
So it appears that there is some problem returning a Django model with foreginkey models as properties?

View 1 Replies

Python :: Way To Store Cookies In Django Which Is Independent To Browser?

Jul 3, 2010

Is there any way in django to store cookies which is independent to browser? is there any technique just like what flash SharedObject does ..?

View 3 Replies

Python :: Create A Form In Flex And Then Communicate With The Django Server - Debugging Strategies

Feb 24, 2010

I 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 Replies

Django :: Pyamf Register Class Not Mapping Strongly Typed Objects As Expected

Nov 15, 2011

I'm using Pyamf as my backend for my Flex app and I'm seeing some weird problems with the mapping of the stongly typed classes.[code]When I do that in Flex, I get my SouvenirAct objects are typed as they should be, BUT then the child souvenir objects are all null. So when I force the casting of the SouvenirAct objects in the return result, I get null for the child properties that are strongly typed.Has anyone see this before? Is there a different way I should be mapping classes?

View 2 Replies

ActionScript 1/2 :: Link Exported Flash Buttons Created In Flash Pro 8 Flash To Pages In Dreamweaver 8?

Jun 8, 2010

I'm working through Dreamweaver fairly well, and I'm now wanted to import Flash buttons I've created myself into Dreamweaver for a website I'm currently building, and it's here that I'm finding the problem. I have been to the 'get URL Function', but it says something about needing to link to a web page? But my problem is how can I link Flash Buttons to a web page, when my site is still being developed and not published? Do I have to publish first?

View 3 Replies

ActionScript 2.0 :: Flash Mx 2004 Compatible With Flash CS3 And Flash 8?

Sep 2, 2009

:confused:Does anybody know is Flash mx 2004 compatible with flash CS3 and flash 8?? I can not open flash cs3 on my laptop with flash mx2004 also can actionscript 3.0 be used with flash mx2004 and flash 8 because when I save my flash cs3 document as a flash 8 document it does not work? I am awful confused with all this. If you created a flash website in flash 8 or Flash mx2004 you can not open in in flash cs3 it dosent make sence?

View 3 Replies

Flash 10 :: Features In Flash That Can Simplify Flash Vector Art?

Jan 16, 2012

Are there any programs or features in flash that can simplify flash vector art?

I just realized that one of the reasons why my program might be running so slow is that I made the images out of lots and lots of circles. When things didn't look right I often just put larger circles over smaller ones. I didn't think that flash might still be drawing the invisible circles underneath-

View 1 Replies

ActionScript 3.0 :: .php File Flash Does Not Read It When Call A .php File From Flash And Then Echo A Value Back To Flash From

Sep 17, 2011

When I call a .php file from flash and then echo a value back to flash from said .php file flash does not read it. My code is like this:

[Code]....

Note that there is a successful connection to a database using xampp as a server.

View 4 Replies

ActionScript 2.0 :: Flash Over Html, Hide Flash Access Html After Flash Movie Ends?

Dec 4, 2007

We've got a green screened video playing in a flash movie over top of our html content.when the movie ends, flash uses external interface .api to call a javascript function which swaps the flash movie out with a 5 x 5 pixel flash movie (rewrites the <div>).this works and you can interact with the html content after the flash movie in all browsers except firefox.anyone know of any work-arounds or is there a better way of handling flash over html in this fashion?

View 1 Replies

Flash 9 :: Flash Player 10 And Flash Tracer?

Oct 16, 2008

I have absolutely no idea where to post about this, please move if necessary.So, I've just installed flash player 10 and now my flash tracer plugin (in firefox) won't work. do i have to switch back to flash player 9 or is there a solution to this?

i have the correct path in Flash Tracer's settings (C:Documents and SettingsAdministratorApplication DataMacromediaFlash PlayerLogsflashlog.txt) as well as the mm.cfg file in C:Documents and SettingsAdministrator.

View 4 Replies

Flash CS4 :: Made A Small Rectangle In The Flash With The Tweening Effect And Export In To The FLEX?

May 21, 2009

I have made a small rectangle in the flash with the tweening effect and export in to the FLEX. When i publish in the FLEX i could see the rectangle with out tweening effects.How can i see the tweening effects.

View 1 Replies

Editing Code From A Published Html File With Flash Detection Enabled From Flash

Sep 2, 2009

ive publish a html file with flash detection enabled from flash.[code]now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?[code]

View 1 Replies

ActionScript 1/2 :: Create A Button In Flash That When Clicked The Flash Interface Extends To Fit Fullbrowser

Jan 29, 2010

it possible to create a button in flash that when clicked the flash interface extends to fit fullbrowser?

View 4 Replies

Flash :: DAM Solutions And Handle Storage Of Both Common Movie Types And Flash Movies?

Dec 8, 2009

Does anyone know of a DAM (Digital Asset Management) solution, preferably ASP.net that can handle storage of both common movie types and flash movies?

View 2 Replies







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