.net :: Reduce Number Of Remote Objects?

May 4, 2011

I am making a flex application with .NET at back end (connection using WebORB and remote objects). I have five drop-down boxes in Flex component, each having unique values from different tables (e.g. city name, county name, user name, etc.).On page load (or can say creation create) I need to display these values so that users can select from the list. I was trying to get data using five remote objects (one for each drop down box.). I am wondering if there is way to get all data in one remote call.

View 1 Replies


Similar Posts:


Actionscript 3 :: Reduce Number Of Decimals?

Aug 3, 2011

In AS3, from a division I get a number like this one: 0.9130406010219044.Is there any way to reduce the number of decimals (aside from multiplying that number for one million)? Is there a way to reduce the numbers BEFORE the division is performed?

View 5 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flex :: Parallel Calls To Remote Objects

Nov 29, 2009

I have the following application in flex. I want to call two different remote objects in parallel.

[Code]...

Now what the methods do is to print sth. when they are called, then wait 8 secs and print sth. after that. When clicking each button seperatly, it works, both methods are started in parallel. However, calling both method the same time, leaves one service to wait with its call while until the other is executing. How can I avoid that?

View 2 Replies

Performance :: Multiple Remote Objects - Best Practices

Oct 3, 2011

I have an application with about 20 models and controllers and am not using any particular framework. What is the best practice for using multiple remote objects in Flex performance-wise?

1) Method 1 - One per Component - Each component instantiates a RemoteObject for itself
2) Method 2 - Multiple in Application Root - Each controller is handled by a RemoteObject in the root
3) Method 3 - One in Application Root - Combine all controllers into one class and handle them with one RemoteObject

I'm guessing 3 will have the best performance but will be too messy to maintain and 1 would be the cleanest but would take a performance hit.

View 3 Replies

ActionScript 2.0 :: Remote Access Of Functions & Objects?

Sep 18, 2009

How do I access actionscript programs, such as functions, from remote as files without using the #include command?

View 0 Replies

Flex :: What AMF Servers Support Remote Shared Objects

Mar 29, 2010

I'm planning on building a Flex based multiplayer game, and I'm researching what will be required for the server end. I have PHP experience, so I started looking at ZendAMF.

Now in this game, I'll need the concept of rooms, and real time updates to clients in those rooms, so it looks like I'll be using remote shared objects (correct, yes?). I'm not seeing where ZendAMF can support this.It seems to indicate that ZendAMF isn't going to do what I want. WebORB for PHP seems to be the only PHP based solution that does messaging, but on that page it doesn't mention "real-time" next to it like the Java based ones below it do.

View 3 Replies

Java :: Remote Object(flex) And ArrayList Of Custom Objects?

Jan 24, 2012

I have a custom java class which has an ArrayList and corresponding to it have a custom vo class which has ArrayCollection (in Flex).I want to return data from Java to flex.Every variable in java is getting mapped to vo perfectly except for ArrayList.When trying to retrive When trying to retrive exposureUSDList (which is an arrayList) in flex I am getting empty ArrayCollection. It is not getting mapped properlyPlease find my code below:

Flex Code:
package com.example.vo
{

[code].....

View 1 Replies

Flex :: Develop The HTTPS Application Using Java - Remote Objects Or HTTPServices

Feb 8, 2010

I need to develop the HTTPS application using Flex and Java. But i have idea about remote objects or HTTPServices. which one is the best for developing HTTPS application.

View 1 Replies

Media Server :: Stream Priorities - Live Audio And Video / Remote Objects

Jul 14, 2010

I currently have two connections with two separate streams. They both hit the same fms 3.5 server. One connection transfers live audio and video. The other one is used for remote objects. Sometimes when viewing the audio and video stream with a slower internet connection, the stream for the shared objects disconnects. I think it is a bandwidth issue. Is there any way to set the priority of the streams? I think this should allow me to set a higher priority for the shared object connection so it won't disconnect.

View 3 Replies

Flex :: Use DTOs Or Domain Objects When Connecting To Blazeds/java/jpa Using Remote-services?

Jul 24, 2011

I am working on an Adobe Flex front-end with a Java back-end using JPA for persistence. he protocol I am using is remote objects (AMF) implemented with BlazeDS.I started out with a service-facade and entity DAOs, but without any specific DTOs. The same POJOs, the domain objects, were passed in the service-facade as those used as DTOs passed to the Hibernate DAOs.However, the latest few days I have been thinking whether this is a good approach or not. The latest article on the subject I read was this one:Interesting JPA Pattern blogThe situation:Say I have POJO Book with a unidirection ManyToOne relation with the POJO Category (i.e. each book may only be associated with one category, but the same category may be associated with many books). I see some alternatives:Alternative 1:I expose a method/operation addUpdateBook(Book book). In the implementation of this operation I add/update both the book and the referenced category.

View 1 Replies

Java :: Fetching Remote Objects Add "_$$_javassist_x" To Type?

Jan 5, 2010

we have a client/server app (Flex and Java) that uses BlazeDS to do remoting. This allows us to exchange and map types between client and server. For some reason a User type we are retrieving from the server is not sent as "User", but as "User_$$_javassist_x", where x is an integer.

The other types we are sending over all work fine, even the User type used in a different service class.

View 1 Replies

ActionScript 3.0 :: Count The Number Of Objects

Dec 27, 2011

I was just looking at ths tutorial [URL]...watch_response and I also programmed it myself. I was wondering, if I had more than two objets how can I count how many of a certain object were dragged into the otheer object(in this case the shopping cart).

View 9 Replies

ActionScript 3.0 :: Count Number Of Objects?

Dec 27, 2011

[url]... I also programmed it myself. I was wondering, if I had more than two objets how can I count how many of a certain object were dragged into the otheer object(in this case the shopping cart).

View 8 Replies

ActionScript 1/2 :: Tracking Number Of Objects In MovieClip

Feb 7, 2011

How to track the no. of balls inside my movieclip (ball7)? And put as dynamic text (winner_txt)?
Inside my movieclip has no layer, ball layer.
No layer: each individual one frame is labelled "0b", "1b" and continues..
Ball layer: first frame empty, 2nd frame 1 ball, 3rd frame 2 ball.. and continues..
Tried using:
var no = _root.ball7_mc._currentframe
_root.winner_txt = Number(no);

View 7 Replies

Flash :: Load A Certain Number Of Objects To Stage?

Oct 31, 2009

I commented my code below to reflect what I am attempting to do here. Flash is throwing me a 1084 error at the moment but I cannot spot my issue. I expect that it is something to do with the this['circle'+i] statement.

var boxOne = new box();
stage.addChild(boxOne);
boxOne.x = stage.stageWidth/2;

[Code]....

View 1 Replies

Actionscript 3 :: Loop Through / Count Number Of Objects?

Nov 21, 2011

Why does trace(length) return 1? I expected it to be 3.

How would I loop through each screen object?[code]...

View 1 Replies

Flex :: App With Large Number Of UI Objects Is Slow

Jun 10, 2009

I'm building my first Flex custom component, in Flex 3. It is a data table based on the 'Grid' container class, with a simple text Label in each cell. (DataGrid and AdvancedDataGrid were not appropriate starting points for my needs.) The component works quite well using smallish tables, but I tried stress-testing it using a larger table, and have been disappointed by the results.

The component creation process has some slow spots, but those are in my power to optimize and aren't my primary concern. What worry me more are what appear to be limitations in the Flex framework itself.

This 'large' sample table has a bit over 7000 cells in it. This is largish, but still 1-2 orders of magnitude less than the biggest I need to accommodate. In standard Grid structure, the main portion of the component consists of a Grid with 400 GridRows of 16 GridItems each, plus a few other smaller ancillary Grids.

Once the table renders, I find the following:

Mouse-related events are slow to fire. Specifically, I have rollOver/rollOut event handlers registered on each table cell, to let me highlight the cell under the pointer. On a small table, I could move the mouse over the table very quickly, and the highlighting would follow the pointer in real-time. With the larger table, the highlighting is very jerky, changing only about twice per second, skipping over many cells.If I place the mouse cursor over the component and leave it there, my CPU is pegged (one processor core, anyway), and stays that way until I move off of the component, when it drops to idle. My component isn't doing anything at all at this point.

It feels like Flex simply cannot scale to support component trees that are this large. I shudder to imagine how it would behave with 100,000 cells. Perhaps I'm pushing the Grid beyond its intended use, but having an object per table cell doesn't seem like an unreasonable model, and ~14,000 objects in the tree (a GridItem and a Label per cell) seems pretty modest.

View 5 Replies

ActionScript 3.0 :: Get Number Of Specific Objects In Array?

Feb 6, 2010

How could I get a number of all same objects in array (lets say I have five "Grass" objects and ten "Wood" objects. Now I want to get the number of Wood objects.

View 6 Replies

ActionScript 2.0 :: Return Number Of Objects On Stage?

Feb 1, 2011

I want to be able to return the number of specific movieclips on the stage.

For instance, i could have multiple movieclips like so on stage.[code]...

Is there a way to return the number of 'myMovie' movieclips that are on stage (4 in this example)? I guess this will involve using a 'for' loop and returning the number?

View 3 Replies

ActionScript 3.0 :: Creating Random Number Of Objects?

Apr 25, 2011

I have an object calls "level" and I want to create random number of objects with random position on the stage.

I've reached how to create random position but I still have only 1 object "level" on my stage.

View 8 Replies

ActionScript 2.0 :: Cs4 : Control Number Of Objects Falling At The Same Time?

Oct 25, 2011

I have a fixed amount of words. Lets say 20 words. I want each of these words to be put into symbols - so i have 20 symbols (box1...box20). Now i want the boxes to fall from the top of the screen and until they reach below the screen. But (and this is where i'm lost) I want to have them fall at different speeds AND I want to control how many boxes falls at a time. Starting out with one box and when this box is out of the screen I want to control the amount of boxes/symbols entering the screen next.

A function telling that next there should be i.e. three boxes entering and falling/floating across the screen (from just above the top of the screen untill they all have reached the bottom). And i want to be able to call a function which starts X boxes - even before the existing boxes in the scenes has dropped). It would be nice to have a function, ie. fallBox(3) , which may be called at any time.

View 5 Replies

ActionScript 3.0 :: Why Underscore / Number Placed After Class Name Of Asset Objects

Jul 31, 2009

I am having a strange issue where I have created a MovieClip in the IDE and given it a class name ( MyObject ) and exported for actionscript...this object is created in an external class. This object has a few MovieClip symbols inside, ( MyButton ) and ( MyOtherButton ). After creating a mouse-over event for MyObject and catching the target ( either MyButton or MyOtherButton ), in the listener function, I trace the event.target in hopes that it will output "Object MyButton" or "Object MyOtherButton" but instead, I get "Object MyButton_6" and "Object MyOtherButton_2"...

View 2 Replies

ActionScript 3.0 :: Reducing Number Of Eventlisteners And Objects On Stage?

May 23, 2010

I am creating a site with lots of big scrollable text-boxes in it. Each text-box object contained some text, and two buttons to scroll up/down with. The scroll buttons each had an event listener so the text moved when you clicked them.

These text-boxes were stacked on-top of each other with all except one having an alpha of 0. If I wanted to change which text-box is active I move it to the front and call a small TweenLite animation.

To the left (outside of the text-box objects) I have an object similar to a menu. It also has about 12 or so event-listeners (one for every button). This turns out cause A LOT of lag an it's very troublesome for my laptop to run it. What I need help with doing is to reduce the number of event-listeners on the stage and also the amount of text-boxes.

What I was thinking was to add the text-boxes using AS so I only have 1 on the stage at a time but I couldn't figure out how to do it. I also thought it might be better to just use 1 big event-listeners and from mouseX and mouseY decide which button the user is trying to push.

View 2 Replies

ActionScript 3.0 :: Any Number Command / Removing Objects From Arrays?

Apr 18, 2011

I've got an array of coins, which are called within the array coin1, coin2, coin3, coin4 etc. I'm trying to reference them to say if the character hits coin 2, then coin2 will disappear. Here's my array (so far):
ActionScript Code:
var coinArray:Array = [coin1, coin2]; //an array which contains all of the coins

And here's the script I'm working on:
ActionScript Code:
function coinCollect(evt:Event){
if (collisionTest (character, coin/*[n]*/){
var i:int = /*the number from coin[n]*/ - 1
remove coinArray[i]
}}

But I'm missing some major things, mainly how to reference which coin has been hit, and how to take the number from that coin and take 1 from it to reference it's correct position in the array? (the code in /* */ tags represents things I'm not sure on the code of).

View 2 Replies

ActionScript 2.0 :: Duplicating MCs Based On Number Of Objects In XML Document

Mar 3, 2005

Any good tutorials on dynamically duplicating movie clips (and working with them, loading into them) based on information (the number of object tags..) in a xml document?

View 2 Replies

ActionScript 2.0 :: Duplicating Mc's Based On Number Of Objects In A Xml Document?

Mar 3, 2005

dynamically duplicating movie clips (and working with them, loading into them) based on information (the number of object tags..) in a xml document?

View 2 Replies

Flash :: Keeping The Number Of Objects And Event-listeners On Stage As Low As Possible

May 23, 2010

I am creating a site with lots of big scrollable text-boxes in it. Each text-box object contained some text, and two buttons to scroll up/down with. The scroll buttons each had an event listener so the text moved when you clicked them.

These text-boxes were stacked on-top of each other with all except one having an alpha of 0. If I wanted to change which text-box is active I move it to the front and call a small TweenLite animation.

To the left (outside of the text-box objects) I have an object similar to a menu. It also has about 12 or so event-listeners (one for every button).

This turns out cause A LOT of lag an it's very troublesome for my laptop to run it. reduce the number of event-listeners on the stage and also the amount of text-boxes.

What I was thinking was to add the text-boxes using AS so I only have 1 on the stage at a time but I couldn't figure out how to do it. I also thought it might be better to just use 1 big event-listeners and from mouseX and mouseY decide which button the user is trying to push.

View 1 Replies

Actionscript 3 :: Animating A Number Of Lines Linking Pairs Of Objects?

Oct 7, 2011

I am trying to put together a match activity where word in one column are linked by a line to definitions in another column. Once all words have been linked to their definitions, you end up with a series of crossing lines so, so I want the definitions and their line to move so that each is level with their connected word and the lines have unravelled. I've got as far as connecting the words to their definitions using a line (as a sprite) and the definitions can then be moved using tweenlite -but I have no idea how I move the lines with their definition. Here is a much simplified section of code to give you an idea of what I am trying to do

import com.greensock.*;
import com.greensock.easing.*;
var wordArray:Array = [word1, word2, word3, word4];

[code].......

View 2 Replies

ActionScript 3.0 :: Create An Array Consisiting Of 4 Vector3D Objects And A Number?

Mar 8, 2009

I always thought this (mixed arrays) was possible, but now as I want to use it it won't work. I'm trying to create an array consisiting of 4 Vector3D objects and a Number. Yet Flash won't let me create such an array like:

Code:

var myArray = new Array(new Vector3D(1,2,3),new Vector3D(2,3,4),new Vector3D(3,4,5),new Vector3D(4,5,6),new Number(0));

Am I missing something here with the creation of the Array or is it just not possible and will I have to use an "Object" instead. Of course I could also just store my Number in the .x a fifth Vector3D-Object but this doesn't seem very practical to me.

View 7 Replies







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