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


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 :: 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

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 :: 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 :: 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

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

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

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

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 :: 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

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

Flex :: Make Testing Process Automatic Flex Release?

Mar 31, 2011

I posted the same question but I think it was not so clear. Now I am rephrasing my question with real problem.I have a flex application. It is basically a web application. On it I have a player that play avi files and some buttons and tabs along side.The application also have recording button that records that direct stream from an IP cam and store that stream on the media (USB). How can I automate function testing of such application. Like I have confusion that when I press the recording button but can I be sure that recording starts? I have tried RIATest and flexUnit 4.

View 2 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

ActionScript 3.0 :: Program That Queries A Database For Options And Displays The Options In A Number Of ComboBoxes?

Aug 29, 2011

Im building a program that queries a database for options and displays the options in a number of comboBoxes. The comboBoxes are dynamically built and loaded via code and added to the stage. I would like to build the comboBoxes into a single movie clip (maybe not the correct wording) so I can use options like tweening and such to make it look better. The code is below.

package classFiles
{
import flash.display.MovieClip;

[code]....

View 3 Replies

ActionScript 2.0 :: Testing A Function Is Complete Or Testing 2 Tweens Have Finished

Feb 2, 2011

I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.

View 0 Replies

ActionScript 2.0 :: Revisited Underline Text - When Add The On (release) To The Movie It Doesn't Advance The Timeline On (release)

Dec 6, 2005

Underlined Text On (rollOver) Is there an action script to do on (rollover) underline text? It would be on a button that would also, on (release) gotoAndPlay a frame. I know you can have a movie with AS like this:

[Code]....

But when I add the on (release) to the movie it doesnt advance the timeline on (release). And when I change the file to a button instead of a movie clip it doesnt do the underline on (rollOver).

View 1 Replies

Flex - Options To Create Line Chart In Flex For Data-intensive Web App?

Jan 13, 2012

My group is working on a Flex/AS3 scientific web application that is data intensive. Luckily the only plots involved are line charts. However, each line chart may have multiple traces (up to 24), and each trace may contain up to 2000 points. The user will need to zoom in and out and interact with the data (e.g. data tips, etc.).

The response I'm getting from developers is that's a lot of data to render in a plot in Flash. For reasons beyond the scope of this post, we can't sample the data to reduce the size (this has already been done and nature of the data prevents further sampling).

Rendering speed is critical for this app. What kind of rendering speed should I expect the Flex 4 line chart component to provide for a given number of points (e.g. 1 second to render 1000 points?)

Are there products available that handle plotting large data sets better, which can be incorporated in Flex (I've seen FusionCharts and ZingCharts online but have no idea how they compare with Flex's components)? Of those, which are easy to develop with while still providing a lot of flexibility in look and feel?

View 1 Replies

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies

Flex :: Flex 4 Changing Style Options With States

Apr 5, 2011

I'm interested in finding out the best approach to this issue, it's not technically difficult but there must be an elegant solution. Basically i have a form that features mostly text inputs, i would like to change the style of the input boxes based on the current state. I can do this in the mxml on each input...

[Code]...

View 1 Replies

Flex :: Testing - Null Object Reference With Automation Enabled Flex-application At Preloader?

Jun 10, 2010

We are trying to automate our flex application. After adding automation libraries to our project we get the following exception:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()

[code].....

We are using Flex 3.4 and maven2 to build the application.

View 2 Replies

Flex :: Detecting Different Quit Options In AIR Application On Mac?

Aug 26, 2009

I have an AIR application running on a Mac and I want to have the behavior of hiding the window when someone "closes" the app (e.g. hits the red "x" button or cmd-w). However, if someone hits cmd-q or chooses "Quit" from the dock context menu or top level menu, I want the app to actually close.I can preventDefault on the "closing" event sent by the application, however, this causes all "close" methods to just hide the window. The only way for someone to close the application at that point is ForceQuit (or through a separate interface I provide, like a context menu option on the dock icon).

I have also tried capturing the cmd-q keyDown event manually, but it doesn't get sent. Also, this wouldn'tor the case when people try to quit the app using the menu options.Furthermore, if I preventDefault on the closing method, it causes my application to cancel a shut down process immediately (which is a terrible user experience).Is there a way to detect different methods of closing an AIR application? I want to be able to tell the difference between these closing methods and react to the appropriately.

View 2 Replies

Flex :: Locale Nl_NL In My Compiler Options?

Nov 15, 2009

I have to change the "Yes" and "No" buttons in an Alert.show(..), to another language (Dutch, for instance).
Is there a (easy) way to do that?

I forgot to mention - I have a -locale nl_NL in my compiler options, but it is still Yes/No

View 1 Replies







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