How to compare 2 objects of the class

Hallo. I have 2 objects of Type i_DomandaRisposte. It's the object class:

package MyProg.vo
{
import flash.utils.ByteArray;
Import mx.collections.ArrayCollection;

[Bindable]
[RemoteClass(alias="MyProg.i_DomandaRisposte")]
public class i_DomandaRisposte
{
public void i_DomandaRisposte() {}

Public var Tip: String;
public var tipologia_risposta:Number;
public var numero_visualizzazioni:int;
public var numero_selezioni:int;
public var ordine:Number;
public var img:Array;
public var traduzioni:Array;
}
}

If I have 2 instances of this object, which is the best way to compare this case 2 and understand if, in each property, there is the same content?... As you can see there are strings, Int and table. I need to check that the int values, string values, and all the contents of the table are the same... How can I do?... I hope you understand my request.

THX

Max

Hi Maximist,

You can try to use the method using ByteArray.

Here are some links for reference:

Hope this will help you

Thanks and greetings

---------------------------------------------------------------------- -------------------

Pooja Kuber | [email protected] | www.infocepts.com

---------------------------------------------------------------------- -------------------

Tags: Flex

Similar Questions

  • Objects of the class defined by the user for an element of the ADF (button, inputfield)

    How to set a class object defined by the user for objects of the ADF?
    My requirement is that when I make a change to the object of the class, it should get reflectected to all instances on my page.
    For example:-I'll have the class object clsInputField, and all my fields entry in my pages are based on this object. So when I change clsInputField it should get reflected to all my controls based on this class object.
    Help, please!

    It's the classic use of a library of component declarative ADF.
    Put your postal code entry filed in an adf library, as well as any other code you will need to manage the entry, pack it as a library of the adf and reuse the item (and its formatting, validation) on each page as you like.
    If you change the component changes are global to all instances of the component.

    Take a look at this demo

    Timo

  • How you cloud an object on the pdf

    How you cloud an object on the pdf

    Hi steveg8884273,

    You can use the drawing tools & markup in the comments Acrobat Help toolbar | Commenting in a PDF file.

    Kind regards

    Nicos

  • How to make an object follow the mouseX when clicked on

    How to make an object follow the mouseX if clicked? Help, please.

    You should think it through - your code does not match your very simple explanation of what you say, it should do so, and it should... click an element and follow the mouse.

    A game loop (ENTER_FRAME) could work, but in this case it wastes unnecessary treatment if the mouse does not move.  And in your code example, it does not expect the clicks.

    Use a MOUSE_MOVE instead of an ENTER_FRAME event listener.  Inside of the event by clicking on the handler function is where you must be defined the MOUSE_MOVE listener.  The MOUSE_MOVE listener Manager is where you assign rock1Cnt.x = mouseX.

    public void Main (): void {}

    rock1Cnt.addEventListener (MouseEvent.CLICK, mouseClickHandler);

    }

    private void mouseClickHandler(e:MouseEvent):void {}

    stage.addEventListener (Event.MOUSE_MOVE, followMouse);

    }

    private void followMouse(e:MouseEvent):void {}

    rock1Cnt.x = mouseX

    }

  • How to remove unused objects from the webcatalogs?

    Hi friends,

    How to remove unused objects from the webcatalogs?
    is there a utility like the removal of unused objects of the physical layer in RPD?

    Thank you

    Hello

    Click link responses to the left of the answers click on the catalog button manage manage catalog, you can delete the unused objects

    Concerning

    NGO

  • How to assign the new object to the class?

    So I don't know how to do this:

    var classexample:objectexample = new objectexample();

    But I try to make a game where you can select a character and that the object of the selected character assigned to the class, but I don't know how to do so that he can change. AFAIK I can assign only once and then that's it, I don't know how to change. Is there a way how?

    Example, I know that this does not work, but I would like to do something like this:

    {if(Character=="example1")}

    var classexample:objectexample1 = new objectexample1();

    }

    {if(Character=="example2")}

    var classexample:objectexample2 = new objectexample2();

    }

    Any ideas?

    I got it to work!

    All I had to do has been implemented the initial var of the object, so:

    var p1;

    Then, if the variable is changed in the selection of characters, all I had to do was:

    {if(p1_character=="character1")}

    P1 = new character1();

    }

    BAM!

  • How to import 3D objects in the project

    So, I was wondering how to import objects 3d, such as 3dsmax etc. .obj files I know that you need a program/extension for example, Away3D, but I don't know how to install it. I'm kinda a newbie to this. Help, please? Thank you.

    To use any library external ac3, you must download the source files first and then import it into your flash project:

    1: file > settings ActionScript > in the window Source Path, locate and add the folder of the main library.

    2: import the classes you want to use in the project use as3 code:

    Import src.away3d.away3D;

    Src.away3d.events import. *;

    etc...

    After that, you will be able to use the library but you need to know how to use before, as any application that you need to know how to use its tools. as we say that 3D libraries are difficult to use, even if you are an expert in ActionScript, if you have a lot to learn before you start doing some 3D in Flash otherwise project that you will be faced with many problems.

  • How to convert labview projects in the class diagram

    Hello

    I don't know if this option exsit in labview, but if she does will really help.

    How can I convert a labview in class diagram project?

    Hello

    Your windows to the Project Explorer, select the view menu and go to the "hierarchy of LabVIEW classes. This will then show you a diagram of your classes and their dependencies.

    Kind regards

  • Help! How do you keep objects in the same order in a doc page 20, when inserting a new object?

    I created a catalog of photos only, as objects.

    They are organized in alphabetical order, 4 images per page as a 2 x 2 grid, 20 pages.

    I want to insert a NEW object (image) in the middle of these 20 pages, and you want all objects after the move more than a place to make room.


    How can I get the objects after those inserted to shift, such that the text would be the case if you have inserted a text more in the middle of a paragraph?

    I can't understand how this (without just putting the images in a text box and online, but then I lose all the controls of the space)...

    Thank you!

    Laurent

    The only possibility would be a script. Scripting InDesign

  • How to declare instance names in the class file.

    I have created a dynamic TextField on stage as instance name is "tf". I converted this TextField as a class, the name is "MyText" in their binding options panel. And I also create New as file in the same folder name is "MyText".  How to report the TextField instance as a file name.

    Either you do not declare it (because it is already there), or automatically turn off "declare instances of the scene" and declare it as:

    public var tf:MyText;
    

    (assuming it is public and the class is "MyText" that extends TextField)

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to access a movieclip on the class of document of another class?

    Hello!

    Go further on my application, I felt in another problem. Although they have a lot of messages on the web in this respect, none of the solutions worked for me

    In my document class two containers (Main.as) I ve. A void and another with a star that is imported to the library. Here´s the main class:

    package 
    {
         import flash.display.*;
         public class Main extends MovieClip
         {
              public var container1:Sprite;
                    public var container2:Sprite;
              var _star:star;
              public function Main()
              {
                   // First container
                   container1=new Sprite();
                   container1.x = 50;
                   container1.y = 200;
                   stage.addChild(container1);
                      _star=new star();
                   container1.addChild(_star);
    
                            //Second container
                            container2=new Sprite();
                            stage.addChild(container2);
                   
              }
         }
    
    }
    

    Right now I ve a star placed inside a container and the container is placed on the stage. I also created an additional container named container2.

    Now, I want to define a base class for the star. I named it as experience. Here it is:

    package 
    {
         import flash.display.*;
         import flash.events.*;
         public class Experience extends MovieClip
         {
              public function Experience()
              {
                   // constructor code
                   this.addEventListener(MouseEvent.MOUSE_CLICK,Clicked);
              }
                   public function Clicked(evt:MouseEvent):void
                    {
                          trace("Star was clicked");
                          this.parent.alpha=0; //travels back to container1 and sets alpha to zero.
                          //how can I access container2? this.parent.parent.container2 doens´t work!
                    }
    
    
            }
    }
    

    Inside of the "Clicked" function I want to access the container2 placed on the stage.

    I tried:

    this.parent.parent.container2.x=0;
    

    which gives me the error:

    1119: access of container2 property possibly not defined through a reference with static type flash.display:DisplayObjectContainer.

    I ve set the two containers as public. In this way the two is accessible off hand.

    In the meantime, I also tried to step to the constructor of the base class.

    The idea is to have the scene on the base class and so call containers directly from the stage.

    In the constructor of the main class, I add:

    home= this.stage;
    var pencil:Experience = new Experience(home);
    

    Then, in the base class I change the constructor and added something:

                                  .
                                  .
                                  .               
    private var _stage:Stage;
    
              public function Experience(home:Stage)
              {
                   _stage = home;
                                  .
                                  .
                                  .
    

    However, when I put as the class basis of the star movieclip class I get an error. If it works, but I want to put the class as a base class for this doesn´t approach meets my needs

    How can I do this?

    I hope you can help me! I want to use the classes but very delicate they´re!

    Thanks in advance for all,

    Best rgds

    You can use an event listener and the event dispatcher to listen to events to happen, something like this:

    star.addEventListener(MouseEvent.MOUSE_DOWN, callContainer2Function);
    
    function callContainer2Function(event:Event):void{
         trace("calling container2");
         //dispatch string event
         dispatchEvent(new Event("Calling container 2"));
    }
    
    container2.addEventListener("Calling container 2", container2Response, true);
    
    //When the container2 hears the string you dispatched, it will fire this function
    function container2Response(e:Event):void {
         trace("Container2 responding")
         //do your code
    }
    

    Hope that helps,

    ~ chipleh

  • How to send C++ objects to the body of SystemToast

    Hello

    I try to send my C++ object value to the body of SystemToast through QML property.

    I did the steps to save the QML C++ object via the setContextProperty method. This works because I am able to change the value (which is of type QString) to the text property of the label to a QML.

    When I run the app, the SystemToast opens with empty text.

    Any suggestions?

    Thank you

    This is related to the scope of the listitemcomponent, it doesn't have access to the cppObject because he has a different scope.

    You can generally save or create a feature on the listview which is accessed through the listitemcomponent.

  • How to select several objects on the layers panel in Illustrator CC

    I have a work of guge and I need to select a small group (about 10-100) of objects from 4000 bunk and then group objects ' em/split-to-layers for ease of use (this is an infographic of the human body for medical institute)

    There IS NO way by selecting in the Web because they are overlapping and sometimes not visible at all.

    in CS5 there was a function to select several objects to the icon selection Alt + click - move on the right in the Layers panel.

    Now the mode duplication towers - on when I try to run it.

    Then.

    Ho I select several object without having to click through thousands of them? (I need to drag-select)

    IM totally frustrated.

    As long there is no deliberately locked object, you can do the following:

    Drag on the lock column in the layer panel

    Object > unlock all (there is a shortcut for this)

    -> unlocked objects are selected

  • How to make an object on the master always appear in front on my pages?

    I can't seem to find a way to make an object on my master to always appear in front on my pages. I watched a video on lynda.com muse essentials and it says to select the master then select the object, then go to the tab object in the menu and select move to which I did and it just shows a greyed out layer1, on video, he showed moveto > master forefront

    Thank you

    Morgan

    Refer to a similar thread here - http://forums.adobe.com/message/5581528.

    You just need to move the content of your master page to the top layer of most in the layers panel. And the content of the pages of content in the other layers to be able to manage easily. This shoud keep the contents of the master page at the top.

    The option "move to" is abandoned since we launched a workflow overall better to arrange the objects using layers - http://helpx.adobe.com/muse/tutorials/layers-muse.html.

    Thank you

    Vinayak

  • How to prevent multiple objects with the same key being stored?

    Hello
    I use of DPL and I want to know if we have any way of preventing multiple objects with the same primary key is stored in the database or not.

    Thank you

    Hello

    Primary keys are unique - there may be multiple objects with the same key. Did you look in the javadoc for the PrimaryIndex and methods put ()?

    -mark

Maybe you are looking for

  • WIFI (MEP) Certificate Import failed

    Hello, I am trying to connect to the Wifi University Network (in Europe is "eduroam") and when I select Import the pem certificate file I get an error message stating that the import has failed and that is probably due to a damaged certificate file.T

  • How to transfer contacts from iphone 5 sec to 6 sec without restoring backups?

    I have iphone 5s which has 1800 more contacts, (icloud + google contacts). now I have another iphone 6s I planed to use with iphone 5s together. I installed my iphone 6s as a new iphone and use the same apple ID, now the problem is when two phones In

  • Hotmail log blocked many password attempts?

    I was wondering if anyone can tell me how long it takes for the account to be unblocked, so I can try again my password? I forgot my password, but currently have the good one but cannot connect, is this only a temporary block and I can try again? or

  • Black and white spots on the screen

    We have a model 1510 X projector.  Recently white and black spots appear on the projected screen.  They are now more and more people. What is a sign that the world must be replaced or another problem altogether.

  • How to buy a product code for windows 7

    Hello there I got a computer and it asks for a code of product for Windows