I have a class with a method name, and now i have a Flex MXML… how would i call the id of the component in my ActionScript class…
Java – Basics in Flex and ActionScript
apache-flexjava
Related Topic
- Java – How to call one constructor from another in Java
- Java – How to read / convert an InputStream into a String in Java
- Java – How to get an enum value from a string value in Java
- Java – How to break out of nested loops in Java
- Actionscript – How to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3
- Java – How to create a memory leak in Java
- Java – What’s the difference between @Component, @Repository & @Service annotations in Spring
- Java – Proper use cases for Android UserManager.isUserAGoat()
Best Answer
You don't actually "call the id" of a component, though you can reference it simply by using the id in your ActionScript code, e.g.
where myMap is an ArcGIS map object (taken from here: http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html; click the Source Code tab to see the example).
I strongly recommend looking at all of the information Adobe has put together to learn about Flex. They have an excellent site with tutorials, coding samples, etc., that should get you up to speed pretty quickly. It's at http://www.adobe.com/devnet/flex/.