To access the data of a class

I want to change a class to use the data stored in a public Collection named myData ArrayCollection has been populated in an mxml file. I want to fill the variables newLat and newLng with data stored in myData. For example, if myData contains var1 and var 2, I want to be able to create the next loop, which appears to be illegal:

"SiHoop" wrote in message
News:gasigo$L0R$1@forums. Macromedia.com...
> I want to change a class to use the data stored in a public collection ArrayCollection
> named myData was populated in an mxml file. I want to fill
> the
> variables newLat and newLng with data in myData. For example, if
> myData
> contains var1 and var 2, I'd like to be able to create the next loop
> who
> seems to be illegal:

You can either pass data as an argument to the constructor, or a
property (preferred), or you can watch using a Singleton class.

Tags: Flex

Similar Questions

  • (Question LVOOP) How one access the data of another class in another class?

    Hello-

    Ass title suggests, how do I access another class (or is it class?) data from another (different) class?  I will attach a picture showing where my problem is...

    I was told this:

    http://zone.NI.com/reference/en-XX/help/371361H-01/lvhowto/setting_scope_classes/

    May contain some helful info, but I can still understand how to unbundle Renault of classes inside the component class data (as seen in the attached photo).

    I think there could be something simple I'm missing here when it comes LVOOP or OBJECT-oriented programming in general... If any of you are willing to help me, it would be much appreciated!

    Thank you!

    -pat

    Personal data are always private, you can never set public. Unbundle cluster function can be used only on the thread of class when he is in the class. If you need to access private data, you must create accessors.

    It of simple, just the class right click and select new, VI for access data members. He invites you to a dialog box to fill you with what you want to create, elements of data and if you want them available through property nodes (recommended). Once completed, this will generate the Afterward screw., you can use in any other VI. The nice thing about making them nodes of property is that you can plop down a property node and it thread class, and all the created accessor functions will appear in the list.

  • to access the data of the children with the static accessor of parent class

    I'm new to LVOOP. I'm trying to create accessors of data in the parent (static) class and use them in the child's class. I don't need them to be dynamic becase the accessors are identical for child and parent. Is it possible to access the data of a class without creating an accessor for each class?

    It is the dynamic method that I created that finally works. Once I found the VI "call Parent Method.vi' everything has worked.

    So now I created all my data as static accessors and my methods are dynamic (assuming that they do).

    Thanks for all the help.

  • To access the data that is loaded by the XML Loader class

    Hi guys,.

    I have trouble accessing the data loaded by external class.

    Here is my code:

    Main class:

    package {}

    import flash.display.MovieClip;
    nucleus of import. XMLLoader;

    SerializableAttribute public class Main extends MovieClip {}

    var projectSetupMainMenuXML:Boolean = true;

    public void Main() {}

    If {(projectSetupMainMenuXML)
    var mainMenuXML = new XMLLoader ("menu.xml");
    }
    }
    }
    }

    XMLLoader class:

    package base {}

    import flash.display. *;
    import flash.events. *;
    flash.net import. *;

    public class XMLLoader {}
    private var mainMenu:XML;
    private var urlLoader:URLLoader;

    public function XMLLoader (mainMenuPath:String) {}
    var urlRequest:URLRequest = new URLRequest (mainMenuPath);
    urlLoader = new URLLoader();
    urlLoader.addEventListener (Event.COMPLETE, completeListener);
    urlLoader.load (urlRequest);
    }

    private void completeListener(e:Event):void {}
    mainMenu = new XML (urlLoader.data);
    e.target.removeEventListener (Event.COMPLETE, completeListener);
    }
    }
    }

    Now, I want to create another external class (called MainMenu) which will be launched from the main class.

    This class should create the menu based on the loaded XML class.

    My question is, how can I make use of the loaded content through the XMLLoader class within the class MainMenu XML?

    Thank you.

    I think you have to use XMLLoader as a singleton - with the properties and static methods. In this way, you can load XML only once and make available XMl data to any object in the application.

  • How to access the data in the row (text of children) in a pragmatic control tree?

    In LabVIEW 2010, I entered the data in row a tree with pragmatism control using the Add item and providing the child text table and the child tag for the line. When a row in the tree control is selected, I can get the line label in the Value property of the tree. But how do I access the data in the child text table when the line is selected? I can't seem to find a tree control property or method which will return data back.

    What I'm trying to do is: once a line in a tree is selected and a button is pressed, if the line tag is valid, I want to transfer all the data in row in another tree the same formatting. For this I need the data for the tree line and the line that was selected. I don't find a way to get access to these data of the line when it was composed in the tree.

    Can someone tell me how to access pragmatically the child text or row data in a tree control from a selected line in the tree? I have the label of the line, but how do I access data?

    Thank you for your help.

    Looking through numerous examples, I found how to do this using the properties ActiveItemRow and ActiveColNum, but I can't find these documented properties anywhere using LabVIEW. Even research through aid could not do anything about them.

    Where these important parameters are documented?

    Why they do not appear in the help?

    Are there other ways to access the data in the row (child text) form a selected line in a tree control?

  • to access the data of hyperteminal using labview

    Hello Sir,

    I'm a problem to access the data of hyperterminal directly through LabVIEW. Whenever I go to hyperterminal and the text capture option allows you to select data and save it in another file. My application requires automatic access of hyperterminal instead of manually do each and bread time. Is this possible? I enclose a VI that I tried. Please give me a suggestion about the present.

    Do not use hyperterminal. Use the series of VISA. Look at the examples that come with LabVIEW.

  • How can I access the data associated with an event within the event handler function?

    Hello

    In my LabWindows code, I try to use a DLL that has been developed in .NET (c#).  I used the built-in labwindows Wizard that converts the DLL to a usable 'instrument'.  Almost everything seems to work, except that I have 1 problem.

    There is an event (defined in the DLL) that I am able to detect.  I know that the reminder of the event is called at the right time.  But the problem is that in this function, I can't access the data that is supposed to be attached to the event.  It worked fine in c#, but I don't know how to do in LabWindows.  Here's what looked like in c# event handler function:

    void AppLoaderEventCallback (CommonLib.CommandResult MyResults)

    {

    MyResults is used in the body of this function

    }

    But in LabWindows, I can't seem to access the MyResults data structure.  Here's what I do:

    public static int CVICALLBACK AppLoaderEventCallback (CommonLib_CommandResult MyResults)

    {

    I can't access MyResults here

    }

    Can you help me with this?  I'm doing something wrong?

    Thank you very much for your help.

    -Mike

    I think that your statement of callback function is perhaps not quite correct. Look using the parameter "callback function" function Panel of the generated __Create function associated with this event. This shows the declaration of the callback function - make sure that your callback function is declared in the same way.

  • Cannot access the data on Western Digital My Book Essential.

    Original title: Western Digital My Book Essential

    Cannot access data stored on My Book Essential 3 TB.  Desktop computer no longer recognizes.  Laptop sees it, but I can't access the data.  Cord replacement binding have at the least visible on laptop & office 'discover' for a long period of time.  An hour pending with Western Digital with no live person on the line.  Am now thinking the drive can't be fixed and Western Digital is not actually support.

    If I buy a replacement, how to make the data from the old to the new?  All suggestions will be useful.

    Moved from IE

    If you do not see the data, you can not transfer it. Keep trying with Western Digital.

  • To access the data from database to a remote computer

    Hi all

    Can someone tell me how to access data from a database, sitting on another computer? I use the Sqlite database. It works fine in my computer. But I don't know hoe to put the database in another computer (server) and access the data from there. In my program, it is essential to do this for a simultaneous use for different users. Someone please help.

    Kind regards

    Cindy.

    I found the solution... http://ConnectionStrings.com/

  • Multiple column trees: how to access the data in columns? There is a bug?

    Hello

    I have a strange problem. I use tree column multi like this:

    In this case, I have the tree column and two other custom columns.

    Now, how to access the data in the SECOND column?

    We can write all the data in a row thanks the EditElementTree:AddElement:ChildText, because it is an array of strings.

    However, when I want to read the data, I use ActiveCelltring, meaning that a SINGLE string and not a string table oO (so I only have the value of the first column and never others.

    So, I can do what I want? Is this a bug?

    Thank you very much

    R0b1n

    OK, I have the solution.

    We play with the ActiveColumnNumber attribute, to read the values of different...

    I left the message, it may be useful for later someboby

    R0b1n

  • Access the data on the hard drive

    My hard drive on my laptop failed.  I replaced and reinstalled windows vista, but I could not access any data on the old hard drive.  I was able to install it as a backup of my desktop computer hard drive and I can see the directory structure, however, whenever I try to access the data in My Documents, I get an error G:\users\moe\documents\my is music is not accessible access is denied.  Any ideas how I can access this information, assuming that it is not a physical problem with the hard drive.  I have the password of windows I used to access the computer, but I don't know how to use it since this drive is not the one I am running windows from.  The computer that I use to access the data on the hard drive is on windows XP, if that makes a difference.

    The computer tries to access the old hard drive and the old hard drive are XP.  It is a forum for Vista.  All the procedures I have on this issue are only for Vista.  You should repost your question in the right place.

    Please repost your question in the Forums XP: http://social.answers.microsoft.com/Forums/en-US/category/windowsxp where XP experts will be happy to help you to gain access.  I don't know it's just a simple issue of permissions and/or property which can be easily solved with the correct procedures.

    I hope this helps.  If you later need help transfer of data to the Vista machine, then come back here and we will help you.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • my hard drive is on, but cannot access the data on it

    It is connected to the computer but I can't access the data on my hard drive is recognized. I went to the Device Manager it is there as a gateway usb device and it also says it has 0 MB on it but I have now, there is data on the hard drive. I don't know what to do because I can't move my family photos to this topic. I would like to get things out of here before I have to go to the extreme of formatting it again. Help, please.

    I realized what it was, I had to take the hard drive from the case and hang it in my lap and it works very well. the external hard disk is bad. I don't know how or why but it's bad

  • To access the data from the old hard drive connected to the HP Pavilion 500-242ea

    Recently I bought HP Pavilion 500-242ea (Windows OS 8.1) as my old pc died. I connected the old hard drive via the Usb Adapter kit. The old drive appears in the Device Manager and file Explorer and disk management in drive F, but shows no volume. I know that the old drive is not complete and the drive works as I put the disc in and they charge. When I click on the old drive-F car - in the message "Please insert the disk" leader explore appears. Anyone know how to access the data on the old drive which has the cable IDE.

    Please help need to copy the old drive imporatant files.

    Thank you

    Just had to ask, you know the difference between the hard drive and CD/DVD drive?  Don't get angry, read this.

    You said "I know that the old drive... works as I can put disks and they load. When I click on the old player disc-F-in the message "Please insert the disk" leader explore appears. »

    Anything that involves a CD/DVD drive. You can't put a disk on a hard disk.

  • VDP: Cannot access the data store

    Hello!

    I have a problem.

    Every day I see error for one of my servers in "reports":

    2016-07 - 05T 06: 00:47.971 + error 06:00-[7F2F3FA5E700] [Originator@6876 = transport sub]

    Cannot use hotadd mode to access the FileSrv1/FileSrv1_1.vmdk [Cisco2-datastore]: can't get using this method.

    (Mounting VM using vm-3198 transport hotadd failed: cannot access the data store for one of the drives of the Machine virtual FileSrv1..)

    At the same time, I havn't this error for the other servers.

    "FileSrv1" has not has installed "VMWare tools". After the instalation "VMWare tools" on this server, the problem is resolved.

  • VSphere ESXi Update 1 to access the data on a USB key.

    I have ESXi Update 1 installed and you want to access the data on a USB key.

    (1) someone could let me know if plug a USB memory stick directly the ESXi server hardware is supported in update 1?

    (2) and/or could someone let me know how I can access files on a sick memory that is attached to the computer on which I have installed client vSphere on (I'm then going to the VM to the server ESXi from this PC).

    I want to just access the files (ona USB key) in the VMs (update information Lic) operating system. Is this possible?

    You will not be able to do, vSphere does not allow access to USB devices.

    You can try VMDirectPath with your USB PCI controllers, but anyway are still not supported.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Master virtualization technology

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

Maybe you are looking for

  • Installed a new button from the home screen, I shouldn't have to update software?

    Hello My home screen button and screen had cracked and I've just fixed. I was told by the repair iphone specialist do not update my phone more because the phone could brick because of the new button on the home screen that has installed. My impressio

  • Import the playlist music to Windows Movie Maker.

    Original title: import music from my Playlist. I tried to import the music from my playlist (which is on my desk) to windows movie maker, but sometimes it does not support the file.  Any ideas anyone.  I'm stuck - solid, have tried repeatedly, lift t

  • snow leopard 10.6 scan problem with HP F4480 printer

    Hi, would appreciate help with this. the printer works fine, but when I try to scan it tells me scanner not found - have tried to download the drivers without success, tried to use press scan on the printer - no luck - looks like I'm not the only one

  • Ports SATA III Motherboard Chicago

    On my HPE h8-1240ef, the motherboard of chicago (using the Intel H67 Chipset) has 6 SATA Ports: thru SATA5 SATA0. Who are the two that are SATA III (6 Gbps)? Thanks for your response

  • Order of the ASA of the rule

    Hello I have a question: witch order cisco ASA 5520 cheque rules? 1 course 2 NAT 3 ACL Kind regards Mary