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


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

IDE :: Searching PARTIAL Attribute Value Of XML?

May 12, 2009

I have gone thru the Kirupa's tutorial "Using XML in Flash CS3/AS3", and it helped a lot in my project. Now, I have a question in XML searching. If an attribute's value is say title="kirupa tutorial" and a user wanted to search only the word "kirupa", then how can i get this node of xml, which title is "kirupa tutorial"..

@title == "kirupa" only works when the whole word matches the value of "title" attribute, but i want to search a partial word.

View 8 Replies

C# :: Read Partial Results From URLRequest?

Mar 17, 2011

I'm working on a batch process script that's executed from Flex. The batch script is in a .aspx Page and returns partial results through the following class:

public class ResponseLogger
{
private HttpResponse _response;
public ResponseLogger(HttpResponse response)

[Code].....

In my Flex application I'd like to show the result as soon as it's flushed on server side. Can this be done using Actionscript?

View 1 Replies

ActionScript 2.0 :: Partial Fade On Click?

Jul 22, 2011

I need a button, or movie clip, to fade partially when clicked.This code worked but caused everything else on the screen to fade too. And I don't know how to fade down to 20% instead of 0?I am a newbie so please could you give a specific code example.

Code:
on (release) {
this.onEnterFrame = fadeOut;

[code].....

View 3 Replies

ActionScript 3.0 :: Drawing A Partial Circle?

Nov 29, 2010

I'm moving on with my optics system in Box2D (which seems to run into its share of kinks and platform limitations, but that's a subject for another time) and I expect to have the need for a way to procedurally draw sprites for varying shapes of lenses.Really, the critical component of this process seems to be the ability to draw partial circles. By this, I mean a part of a circle if it were divided from the whole by a straight line through the circle's interior.

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

ActionScript 3.0 :: Filtering XMLList By Partial String?

Nov 20, 2008

I have an XMLList from a feed that takes the form shown belowand has about 90 'contact' nodes within it.I can use E4X to filter the list by a node value and displayall contacts from the uk say but now I am trying to search by nameas the user types in to a text field and am stuck.What I want is that each time a character is entered in thesearch field a list is created that contains only objects whosfirstName node value contains what the user has entered. This mightbe a full name or just the first few letters.I managed to do this easily with an array of data by usingArray.filter() and String.search() but with an XMLList I am stuck.I could create an array I suppose but that seems dirty when the

View 4 Replies

Actionscript :: Partial Re-colorizing A Bitmap At Runtime?

Dec 9, 2010

I'm drawing some cars. They're Bitmap's, loaded from PNG's in the library. I need to be able to color the cars-- red ones and green ones and blue ones, whatever. However, when you paint the car green, the tires should stay black, and the windows stay window-color.

I know of two ways to handle this, neither one of which makes me happy. First, I could have two bitmaps for each car; one underneath for the body color, and one on top for detail bits. The underneath bitmap gets its transform.colorTransform set to turn the white car-body into whatever color I need. Not great, because I end up with twice as many Bitmap's running around on screen at runtime.

Second, I could programmatically search-and-replace "white" with "car-body" color when I load the bitmap for each car. Not great either, because the amount of memory I take up multiplies by however many colors I need.

What I would LIKE would be a way to say "draw this Bitmap with JUST THE WHITE PARTS turned into this other color" at runtime. Is there anything like this available? I will be less than surprised if the answer is "no," but I figure it's worth asking.

View 3 Replies

Actionscript 3 :: Changing Partial Text Color

Oct 19, 2011

I've got a string in AS3 composed of two elements that is dynamically assigned to a textField. I want to make one element one color and the other a different color. Code below: allInfoForSchedules = data[j].weekDay + " " + data[j].scheduleType + "."; I can make the entire string change color but not just one part of it.

View 1 Replies

ActionScript 2.0 :: Partial SWF File Won't Load On Site?

Jan 20, 2010

I have made revisions to my SWF file and only part of the SWF loads. I have included the path for the .FLA

[URL]

I have checked and rechecked the AC_RunActiveContent.js (attempted to update and that failed)

I get this error when I attempt to Run command to update the AC_RunActiveContent.js "At line 5 of file "AC_RunActiveContent.js": ReferenceError: navigator is not defined".

View 0 Replies

ActionScript 3.0 :: SetTextFormat Not Working For Partial Strings?

Sep 22, 2011

I'm trying to set only a portion of a string to use a particular text format and it does not seem to be working. I'm calling setTextFormat() after setting the text of the TextField like this:

myTextField.setTextFormat(newFormat, 7);

change the format for the remaining characters after the 6th. The textfield seems to use the default text format for the entire text however.

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

ActionScript 1/2 :: Updating A Partial Html Text Part?

Jun 22, 2009

Does anyone know if it is possible to update a piece of text in an textbox where html is enabled?
 
For example if the text inside an html textfield is:
 
Line 1 Lorem ipsem, <b>Lorem</b> ipsem,
Line 2 Lorem ipsem, Lorem ipsem,Line 3 Lorem ipsem, Lorem ipsem.
  
And if i replace the text on line 2 and make it bold without effecting line 1.

View 3 Replies

Data Integration :: Only Partial Dynamic Text Appearing?

Sep 11, 2007

Does anyone know why the first part of my CSS formatted is the only part that shows? I know the rest of my text is formatted correctly because I can erase the first part, and only show the other portion. I just want to be able to load a decent size set of text into a text block I am making with a scrollbar.

View 1 Replies

ActionScript 2.0 :: Partial Scroller (depending On Stage.height)?

Jun 7, 2011

I'm trying to find a way to do a scroller that scrolls only 'till the targets bottom reaches the Stage.height.I tried to attach some images explaining but :

Quote:

To be able to post links or images your post count must be 50 or greater. You currently have 10 posts.

Please remove links from your message, then you will be able to submit your post.

View 1 Replies

ActionScript 2.0 :: Partial Input Text Formatting At Runtime?

Mar 16, 2007

format partial parts of an input text box at runtime. I have seen a few "text editors" around which are built in flash so i am assuming it is posible but i would like to know the extent of developement on this. My idea is much more simple than the text editor.

Basically i just need to be able to change the format of a specific word or two in a string, which the user has entered in the user input box, on specific words..

for example. image writing some text in MS word, and the last word written is wrong "spelled incorectly" it is then immidiately underlined.. this is the effect i'm after. i have the code working producing errors in a seperate output box. but i need it to change the input text dynamically at run time.

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

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

Flex :: Unit Testing - Create A Partial Mock Using Mockto?

Jul 13, 2010

Is it posible to create a partial mock using mockito-flex?

View 1 Replies

ActionScript 3.0 :: Saving Progress (inventory Items Or Partial Actions Taken)

May 21, 2010

I am learning flash, and to do so I'm writing a little adventure game. My current issue is with saving progress; namely, having the game remembering what was done on previous frames. I've experimented with Booleans, who work nicely for small stuff, but it's proving more difficult to save things like inventory items or partial actions taken.

Google pointed me towards SharedObject, which would save data regardless of frame, handy! It seems to have the side effect of remembering the data even when closed though, meaning I have to erase it before every test. So now I'm thinking of turning it into a proper save & load system, like in a real game. But now I'm left to wonder, is SharedObject really the best way for me to save progress made in individual rooms? It's really simple stuff like redKeyTaken = true or greenDooropen = false (wheres then the movieclips of redkey or greendoor jump to their correct frames) What would you guys recommend for keeping track of individual room(frame) status? Keep using SharedObject and just flush at every action, or is there a better way?

View 4 Replies







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