Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:42:02+00:00 2026-06-12T19:42:02+00:00

in Flex 3.2 Having troubles converting remote object result to specific object on client

  • 0

in Flex 3.2 Having troubles converting remote object result to specific object on client side in modules.

For example I have VIPSAdmin module.

it has function

private function doResult(event:ResultEvent):void {
var data_:Array = ArrayUtil.toArray(event.result); 
var result:ResultDTO = data_[0] as ResultDTO;
if(!result.isError()) {
    trace(result.result);
    vipsAdminDTO = result.result as VIPSAdmin;
    compId= vipsAdminDTO.compId; // second time dying here
}

}

Function invoked when I get data from remote objet.

First time all great,when I unload this modeule and load it again:

data_[0] as ResultDTO;

Performs fine, but

vipsAdminDTO = result.result as VIPSAdmin;

vipsAdminDTO always null!

Even when

trace(result.result);

produces [object VIPSAdmin]

What a heck I missing here!? Looks like it just cannot do

result.result as VIPSAdmin;

even when trace and debug says it is instance of VIPSAdmin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:42:03+00:00Added an answer on June 12, 2026 at 7:42 pm

    I’ve figured out what is the problem, problem is that when I first instantiate something in module then in main app, somehow classes are not alined even that they are identical !

    So solution is to make a fake instance in application class first, then if you use that same class to make an instance in module it will work!

    I do it very simple in my main application class I just added:

    VIPSAdmin;
    

    This seems to create some sort of ghost instance, which I belie will be pickup by GC later, but will build tables of instances properly! Which solved my problem.

    Not sure if this is appropriate solution ! but it sure works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some trouble with the flex Tree control. I have a control
I'm having issues with implementing a flex button component: I have applied a CSS
I am having a strange issue in my flex app. I have a Video
I am having a strange QNX problem here in Flex (Adobe AIR), I have
I'm looking to use Flex for a University module, however I'm having some trouble
I'm having some troubles with Flex with regards to changing controls on different viewstack
I'm having problems with asynchronous sequences on Flex/ActionScript. Here is an example: private function
I'm having a strange problem. In Flex 4, I have a Spark DataGrid and
I'm having trouble finding any resource for adding ctrl-z undo capability to a Flex
First off, if there is a true, official way of having flash/flex's NetConnection s

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.