Flex :: What Is Faster - Plain Or Strongly Typed Objects

Feb 15, 2010

So is
public var user:Object = {};
user["firstName"] = "Bill";
user["lastName"] = "Cosby";

Slower than if I have a value object like User?
var user:User = new User();
user.firstName = "Bill";
user.lastName = "Cosby";

View 2 Replies


Similar Posts:


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 3 :: Create A Strongly Typed Class At Runtime?

Jan 10, 2012

How would I create a strongly typed class at runtime (so to be able to create instances of it)? It can't be a proxy.

Additional Info: For example, say I want to create a Person class with first and last where both are Strings.

Context This is for an application that lets you create the data model and custom components at runtime. This is only part of it. I need to be able to have strong typing. If that means going to the server and creating a new SWF on the server with the value objects then loading in the definition at runtime then I would but that is a lot more work if there is an alternative.

View 1 Replies

ActionScript 3.0 :: Loop Through A Strongly Typed Object Attribute

Nov 20, 2009

Is there a way i can Loop through the attributes of a strongly typed Object or just convert a strongly typed Object into a generic Object.I tried typecasting a Strongly typed object created using LCDS into a Object.But it just returned me a typed Object.

View 1 Replies

Flash :: Passing Strongly Typed Object To Method Expecting An Interface

Jul 26, 2011

I'm running into difficulty passing a strongly typed object, AttractView, to another method, addView() which expects an IWizardView interface that AttractView does implement. When I pass it as-is (as shown below), I get the compile error CaptureApplication.as, Line 120 1067: Implicit coercion of a value of type AttractView to an unrelated type IWizardView. Casting to either IWizardView or BaseView before passing yields a similar error at run time.

[Code]...

View 2 Replies

Php - Flex Is Deserializing Generic Objects From Zend AMF Instead Of Strictly Typed Objects

Mar 4, 2012

I'm using Zend AMF to send my remote objects to Flex. I've defined a Constant class and created getASClassName() method. Then I've created Action script class in flex.

Objects are send successfully, but they are deserialized to generic Objects in Flex instead of specific ones. EDIT: On network monitor in Flex I can see that AMF value is set to com.my.project.valueobjects.Constant. Although array from event.result contains Objects.

[Code]...

View 1 Replies

Flex :: Collection Of Typed Objects?

Apr 13, 2011

For example in Java you can do:List<Person> where Person is the object type.In AS3/FlexArrayCollection which takes any object type. Is there any way to create a list/collection of declared objects in AS3/Flex (or is it impossible due to weakly typed language)?

View 2 Replies

Flex :: Sending AMF Typed Objects Back To PHP?

Oct 29, 2011

I succeeded in sending typed objects from a PHP application to a flex front-end using Zend_AMF as per this question. The problem I am facing now is that I would like to send a typed object from flex to PHP and on the PHP side, be able to receive it as a typed object instead of stdClass.

Here is the class in flex:
package com.mysite{
[Bindable]
[RemoteClass(alias="CTest")]
public class CTest {
public var stuff1:String;
[Code] .....

After some testing, I removed the namespace from the PHP object and moved it into the global namespace. This seems to have resolved the issue. I have tried setting RemoteClass to modules estingCTest and also modules.testing.CTest. $_eplicitType was then set to the same value for both tests. The result is that when I use modules.testing.CTest, this is the classname that Zend_AMF sees. If I use namespace notation, Zend_AMF sees modulestestingCTest, as all the slashes get stripped out. But how can I get this working with php namespaces?

View 1 Replies

.net :: Receiving Generic Typed Custom Objects Through AMF In Flex

Apr 27, 2010

Is it possible to receive custom generic typed objects through AMF? I'm trying to integrate a flex app with an existing C# service but flex is choking on custom generic typed objects. As far as I can tell Flex doesn't even support generics, but I'd like to be able to even just read in the object and cast its members as necessary. I basically just want flex to ignore the <T>. I'm hopeful that there's a way to do this, since flex doesn't complain about typed collections (a server call returning List works fine and flex converts it to an ArrayCollection just like an un-typed List).

The custom C# typed class
public class TypeTest<T> {
public T value {
get; set; }
public TypeTest () {
}}

The server method returning the typeTest
public TypeTest<String> doTypeTest() {
TypeTest<String> theTester = new TypeTest<String>("grrrr");
return theTester;
[Code] .....

Irritatingly if I change the result handler to take parameter of type Object it works fine. How to make this work with the value object?

View 2 Replies

Flex :: Coldfusion Returning Typed Objects / AMF Remoting

May 26, 2010

Is the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great.

I am hoping that this is possible in Coldfusion. Does anyone know whether you can set the type of the returned object in a similar way. This is especially helpful with large collections as the flash player will convert them to a local object of the same name thus saving interating over the collection to convert the objects to a particular custom object.

[Code]...

View 2 Replies

ActionScript 3.0 :: BitmapData.CopyPixels Method With Many Objects Be Faster?

Feb 7, 2010

I'm trying to know if you can copy the pixels of many objects in one BitmapData without a huge slowdown. The slow down is made by calling the method multiple times, thus making a lot of variable declaration and disposal for the garbage collector. If someone know how to either immitate the copyPixel method or have any other way of solving this problem,

View 4 Replies

Actionscript :: How Much Faster Is Blitting Than Using Vector Sprite Objects In Flash

Feb 18, 2011

I know there are different situations where one would be better than the other, but I'm comortable with a generalized statistic of... How much faster is blitting than using vector Sprite objects in Flash?

View 2 Replies

ActionScript 3.0 :: Does Better Faster CPU Necessarily Equal Faster SWF Compile Times

Jan 25, 2010

My question is, does a better, faster CPU necessarily equal faster SWF compile times? Or does it rely on something else (OS, memory, etc). I only use AS3 and some of my projects take a while to compile. If certain hardware can guarantee me a faster compile time, it'd be worth including those things in my shopping list.

View 2 Replies

ActionScript 2.0 :: Preloader Rotation - Faster And Faster When The Percent Loaded Goes Up

Sep 26, 2005

I can make a normal preloader, with a bar and percent shown and so on... But I want to make a little thing in the middle of the preloader that rotates faster and faster when the percent loaded goes up. This is what I thought would work:

[Code].....

View 2 Replies

Actionscript 3 :: Read Plain Text But 'text/plain' Is Not Available Either?

May 16, 2011

I would like to embed a css file using

[Embed(source = 'mystyle.css', mimeType = 'text/css')]
private var _css:Class;

but 'text/css' is not a supported transcoder. Is there a list of transcoders that someone can point me to? I really just need it to read plain text but 'text/plain' is not available either.

View 1 Replies

ActionScript 3.0 :: Timer Run Faster And Faster

Jun 1, 2010

[code]in my original code..function "test" will change the x axis of the images by Timer..I wanna the x axis of the images can be changed after every two seconds..but when I run it..it's obvies faster and faster every time when the Timer dispatch the TimeEvent the delay always shorter than the last time.

View 7 Replies

Javascript :: Flex Vs JQuery Vs GWTvs / Closre Vs Cappuccino Vs Plain JS And HTML5?

May 19, 2010

I'm creating my first web application and I'm really confused as to what technology to go for. My application needs to look serious (like an application), it doesn't need many colorful graphical interfaces. It only needs a toolbar, a tab bar, a split panel (preferably 3 columns), an easily-formatable text field, and a status bar. It will connect to a MySQL database through PHP (unless I go for GWT). Users will upload files. My evaluation of the options:

Flex: Probably the easiest to develop but I'm pretty sure my application is something one would use on an iPad and with Flash's future on the iPad still unsure, I don't want to take the risk, otherwise Flex would've been my choice. jQuery: I've heard a lot about it and a lot of people recommend but I don't know how easy it is to use and how customizable the look of my app is. GWT: The problem with GWT is that it doesn't have many widgets. Another problem is that I'm gonna have to host the files in AppEngine's datastore and transfer them back and forth to a web server that will do operations on them (I need to process them) which adds more traffic and slows the process which worsens the user experience. Closure: It has a nice toolbar and a nice text field. I'm not sure how easy it is to use. Plus, I read an article that makes it sound really bad.

[Code]...

View 4 Replies

Flex :: Send Typed Object From FMS To Client

Jan 2, 2010

I have following object in the FMS

User = function(userName,userId)
{
this.userName = userName;
this.userId = userId;
}

I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client.

[Code]...

View 2 Replies

Flex :: Initialize Two-dimentional Typed Vector?

Aug 15, 2010

How can I initialise two-dimentional typed Vector is AS3? Now I can get working only this:

private var _mainArray : Array = new Array( MyConst.DIMENTION );
public function MyArray()
{[code].....

View 1 Replies

Actionscript 3 :: Displaying Content From BulkLoader Which Is Typed As MovieClip In Flex App?

Dec 24, 2009

I am using bulkLoader to load dozens of SWFs into my Flex app, and all of SWFs are static (1 frame only). 'Everything' works fine, however, I'm not sure how to handle data from bulkLoader... I am getting MovieClip types for all of my SWFs, and I am not sure how to tell to Image or SWFLoader classes to use some of those MovieClips as source.

View 1 Replies

Flex :: 4 - Make Adobe Run Faster?

Sep 8, 2011

Compared to native apps, my Flex application runs like a hog born by a snail, especially on mobile devices. What tricks can I employ to optimize it's performance

View 3 Replies

Xml :: Faster Way To Change Xml To Array(grails To Flex)?

Apr 22, 2010

I have a large xml passed from grails to flex. When flex receives the xml, it converts the xml into an associative array object. Given the large xml file, it takes too long to complete the loop, is there any way in flex to make conversion faster? Below is my sample code.

[Code]...

View 1 Replies

Flex :: Make Web Application Load Faster?

Feb 24, 2011

I made a Flex 4 web application. Upon testing locally, I already got satisfied at how it looks like. However, the swf's file size grew to around 6mb in size so when I uploaded it to my website and viewed it, it takes forever to load on a computer with quite slow internet connection. So my question is, how do I make it load faster? Should I:

separate it into chunks? If so how do I do it.

not put the embedded images inside the SWF but instead, store it outside in a folder? If so, how do I make it load on the background while the user is interacting with the primarily loaded parts of the web app?

View 2 Replies

C++ :: Transmit Data From C++ To Flex / Air Faster Than Sockets?

Feb 1, 2012

I have a C++ application which sends images to a Flex/Air front-end via TCP sockets. All this data transfer occur in the same host, so the socket connects to a localhost server. The problem is that the Flex/Air takes a really long time to read the entire image from the socket. The server sends the image quite fast, but the Flex/Air reads this image in tiny parts. The whole image has about 300MB and the Flex/AIR reads only about 1KB each iteration. So the flex keeps calling the socket data callback, which is causing the application to slowdown.

Is there any synchronous sockets to use with flex, or some kind of socket which can read the entire data all at once? If sockets aren't the best choice, is there any other faster options? My socket class looks like this:

[Code]...

View 2 Replies

Actionscript 3 :: Flex Is Smaller Varialble Name Is Faster Then Longer Names?

May 21, 2010

We are in process of optimization of Flex AS3 Application.

One of my team member suggested us to make varible name length smaller to optimize the application performence.

i.e.var IsRegionSelected:Boolean = false; //Slower
var IsRS:Boolean = false; //faster

View 5 Replies

Php :: Flex - Convert Actionscript Rich Text To Plain Text?

Jun 2, 2011

I have a flex (flash builder 4) application with a rich text editor control. I am storing this rich text output in a database via zend amf <--> php.

Now I want to display the first part of that text in a data grid. To do so it seems it might be easiest to get the plain text version.

I am hoping I can somehow convert it to plain text in PHP before I pass it back to flex?

View 1 Replies

Flex :: Adobe Alchemy Tool Create Faster Running Flash Byte Code Than The Compiler?

Dec 8, 2009

I have seen a few blog entries on this and have had a discussion or two with my team mates but I would like to see what the stack overflow community thinks.

So why does the Adobe Alchemy Tool create so much faster running flash byte code than the flex compiler?

Also, when will the flex compiler be able to make similar performance gains? Will it require programmer specific use of special Array's or something of that nature to get the same performance?

View 2 Replies

Flex - "Double Typing" - With OSX Lion And Flash 10.3.. Every Character Typed To It, Appears Twice?

Jul 21, 2011

We have a small flash application that has an text box.

under OSX Lion, with flash < 10.3.. it works fine

with OSX Lion and Flash 10.3.. every character typed to it, appears twice.

View 3 Replies

Flex :: Objects Drawn By Flash Graphics Class Exist As Objects?

Jan 16, 2011

Internally Flash obviously keeps a list of the primitives drawn using Graphics so I wondered if you have many such primitives in a Sprite, can you re-position/remove/alter individual items rather than clear and re-draw everything? Or is this deeper into the bowels of Flash than you're allowed (or recommended) to go?

View 4 Replies

Flex :: Converting Array Of ObjectProxy Objects To Custom Objects?

Jun 10, 2011

I have a service which returns an Array of ObjectProxy objects. I would like to cast this to a custom object (a value object) and create an ArrayCollection. How can I do this?ited:I am using Django and PyAMF for the backend. I had to write a custom SQL query and I am wrapping the resulting records in ObjectProxy and sending the whole result as an ArrayCollection.Here is my client side code:

[ArrayElementType("SessionVO")]
[Bindable]
private var _list:ArrayCollection;

[code]....

View 2 Replies







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