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 )
public = models.BooleanField( default=True )
...
Thus, I end up with a field called "public". This doesn't jive in ActionScript be...
i want to load my home page as quickly as possible.There are 5 or 6 panels.But all of the should not be loaded on first load.
I want only 2 or 3 panels on load and others load on button clicks or any user event.
what perfomance enhance methods I should take?
...
in my flex .swf file I check for "#/1" at the end of the URL in the browser address box (and if its present, use a local Flex SharedObject to restore a previous state). if "#/1" is not present, I call SWFAddress.setValue("1") which has the effect of appending "#/1" on the end of the URL in the browser address box, if that top level URL...
I want to load data from my web server, I want it be the AJAX/Comet way, my web-server long holds the request, response it until something happened. Thus, I wrote some as3 code like this:
private function load(): void {
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
...
Component: mx.controls.RichTextEditor
Platform: Flex 4
Player: Flash 10
Scenarios:
A user selects text a clicks a button
that I can easily add to the
RichTextEditor. The selected text
becomes superscripted (or
subscripted).
A user clicks the button and future text is superscripted until the button is
clicked again.
The most funda...
It seems like it should be a simple concept. I need a vertical list. This list has an image with a checkbox and pathname of that image underneath it. The user should be able to check the checkboxes of the images they want to appear in their "shopping cart". The images, checkbox label, and list are populated by an XmlList. How can I do th...
I'm having some trouble with memory management in a flash app. Memory usage grows quite a bit, and I've tracked it down to the way I load assets.
I embed several raster images in a class Embedded, like this
[Embed(source="/home/gabriel/text_hard.jpg")]
public static var ASSET_text_hard_DOT_jpg : Class;
I then instance the assets this...
I'm using Flex 3.3, with hamcrest-as3 used to test for item membership in a list as part of my unit tests:
var myList: IList = new ArrayCollection(['a', 'b', 'c']).list;
assertThat(myList, hasItems('a', 'b', 'c'));
The problem is that apparently the IList class doesn't support for each iteration; for example, with the above list, this...
First of all, I don't want to visually arrange 3D models dragging them with the mouse, all I want is:
Given a room of certain dimensions (L,W,H) and given a set of elements like beds, chairs, etc (with L,W,H dimensions, of course) I want to automatically arrange those elements to take advantage of the space as much as I can. So I want ...
i'm pasting part of the the code here
<s:Parallel id="panelIn" target="{back}" >
<mx:Move xTo="-400" duration="2500" easingFunction="Bounce.easeIn"/>
<s:Fade alphaFrom="1.0" alphaTo="0.0" duration="2500" />
</s:Parallel>
this is the animation
protected function button1_clickHa...
I'm going to write an application with the Air/Flex-Framework. I'm looking for Best Practise and general Design Patterns for designing software especially in Air/Flex.
I have experience with this framework but never had the pleasure to write a piece of software from scratch.
For instance:
I stumbled across lots of software written in ...
I'm trying to send some data to PHP using HTTPService POST but for some reason it's not working.
The same example works with GET but not with POST:
private function start():void{
var param:Object = {};
param.date = "2010-10-10";
userRequest.send(param);
userRequest.addEventListener(ResultEvent.RESULT, result);
user...
When I set style color it changes both the text color for the selected item/component label and the text in the dropdown menu.
color
Type: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
I would really like the label to be white and the text t...
Hi,
I have a drawing that looks more or less like the attached image.
image
The orange square is the currently selected selected sprite.
The sprites are all draws from coordinates that i receive from XML.
var sprObject:Sprite = new Sprite();
sprObject.graphics.beginFill(itemList.c.toString());
sprObject.name = strName;
sprObject.gr...
I've a little problem, I don't really understand if I can use addEventListener more than one time on the same object (and same callback function) if this case can I have a problem of overflow, or simple flex is so smart to not add again in the same stack same function
for examples:
var t:CServiceObj = _rModel.userGetBoardJoined();
t.a...
Hi!
I'm about to replace my oldfashioned sessionbased server solutions with RESTful ones.
Where can I find information about design principles concerning security, authentication etc. when moving into this stateless domain?
I need to find solutions that work with different client platforms (Flex/Air, Browser, desktop and mobile apps et...
I'm trying to add an Image to a datagrid row, but I cant get anything to show.
I'm datagrid dataprovider is an xml file. If tried incorporating the item render inline as will as definining it in another file, and still now joy.
<mx:DataGrid id="nodeGrid" dataProvider="{nodes}"
creationComplete="datagridChange()" dataChange="data...
I'm really having a hard time accessing a data model I've defined in an Actionscript class in my Flex app. The following is my AS Class (Model.as):
package
{
import mx.rpc.http.HTTPService;
public class Model
{
private static var _instance:Model;
public static function getInstance():Model
...
Hi there!
What is the best practice for updating an object at Event.ENTER_FRAME?
here's the code:
addEventListener(Event.ENTER_FRAME, enter_frame);
protected function enter_frame(event:Event):void
{
//update the object in the exernal class
Extrn.updaterMethode(anObject);
// some logic
if(foo==bar)
{
// get a property from t...
I have a large flex application (the app) running on one server, and many small flex applications (widgets) running on another server, which are to be included in the app so that visually the user see's one continuous application. Due to proprietary third party software, this structure cannot be changed. I am looking for some way to al...