Is there any way to send value to my attribute through event handler method

While I give value to the img array it does not print while I call object for this class. Is there any way that I could give value for img attribute
// Attribute
public var img:Array;
// Constructor
public function ReadXML(myfile:String) {
            img=new Array();
            xmlFile=myfile;
            var loader:URLLoader=new URLLoader;
            var url:URLRequest=new URLRequest(xmlFile);
            loader.addEventListener(Event.COMPLETE,onXMLLoad);
            loader.load(url);
// Event handling Method
        function onXMLLoad(event:Event):Array {
            var xml:XML=new XML(event.target.data);
            //trace(xml);
            //trace("Number of Contacts : " + xml..person.length());
            //trace("First contact’s favorite food : " + xml.contacts.person[0].@favoriteFood);
            img["height"]=100;
            img["width"]=200;
            return img;

what are you trying to do?
if img has anything to do with an image, explain.
if img is supposed to be an associate array, use:
var img:Object;
img=new Object();
etc

Similar Messages

  • Is there any way to send IDOC in one line through JMS Adaptor?

    Hi Frnds,
    I have an issue with JMS adaptor and it is as folllow:
    I configured JMS sender Communicaiton Channel and its working fine but client wants header and item records in one line with out any lines in between these records. Is it possible to send Header and Item records in one line through JMS Sender?
    Thanks
    Rajeev.

    Rajeev,
    The XSL is generally created via an XML development tool and then imported to the design as an Imported Archive.  Then in your Interface Mapping select a mapping program of type XSL and choose your XSL mapping.
    FYI - Here is a simplified version of Michals blog.
    I have created cdata.xml as input.
    <?xml version="1.0" encoding="UTF-8"?>
    <aa>
    <bb>1</bb>
         <cc>1</cc>
         <cc>2</cc>
         <cc>3</cc>
    </aa>
    The XSL mapping program cdata.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">
              <inside>
    <!--               <name> -->
                        <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
                        <xsl:copy-of select="aa"/>
                        <xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
                        <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    <!--               </name> -->
              </inside>
         </xsl:template>
    </xsl:stylesheet>
    And the result
    <?xml version="1.0" encoding="UTF-8"?>
    <inside><![CDATA[<aa><bb>1</bb><cc>1</cc><cc>2</cc><cc>3</cc></aa>]]></inside>
    The strikethrough is an interpretation of the forum editor.
    The actual result is square bracket <aa><bb>1</bb><cc>1</cc><cc>2</cc><cc>3</cc></aa> square bracket
    Using the above code you can test this and see for yourself
    The idea would to pass the single string to JMS.
    This should get you over the line.  Also refer to XI / PI help to clarify XSL mapping.
    Regards,
    Mike

  • I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone.

    I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone from this ipad. Everytime I try to send a message to a person that does not have an Apple product ( Iphone or Ipad ) it comes up saying contact is not registered for iMessage and wont send it. I can only send them a message from my iPhone 4 instead. Do I have to install a new App from the App store to send these non iMessage cell users a message?

    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Is there any way to pass value from one SWF to another ?

    I am doing project using flash, now I cant pass a value from one SWF to another, is there any way to pass value from one SWF to another.
    thanks

    Hi,
    Just to confirm here do you simply want to communicate between two SWFs without involving Flash Media Server. If this is the case one good way of doing it is to use a local connection. It can be used for direct communication between two separate instances of the flash player. However if you want to involve multiple clients sharing a common variable then you may have to use Shared Object for this. Please let me know what is the actual use case, is it multiple clients sharing a common variable or different player instances communicating between themselves.
    Thanks,
    Abhishek

  • Is there any way to send sms in MIDP1?

    Is there any way to send sms in MIDP1 which doesn't support WMA (MessageConnection, TextMessage, ...) ?
    It seems it should, because in MIDP 1.0 documentation is note about sending sms using protocol sms://destination:port and that it returns DatagramConnection but there is no example and I really don't know how to create new Datagram to send TEXT message. It can only be created from array of bytes so it seems it can only send binary messages (?!).
    Plz help me...

    what special API where i can get it any link or information about that APi
    regards
    abdul rafiq jani
    Applitech Solution Limited

  • Is there any way to send email messages to Ipages

    IIs there any way to send email messages to Pages please

    Tap and hold or double tap to highlight a word in the email.  Drag the handles to capture what you want.  Tap copy.
    Now paste that into Pages by tapping and holding until you see the paste button.
    See p. 26 of the User Guide.

  • Is there any way to send notification to site administrator in case an outage occur on o365

    is there any way to send notification to site administrator in case an outage occur on o365

    Hi MGPZ,
    check the following URLs and let me know if helpful
    http://community.office365.com/en-us/f/148/t/222609.aspx
    http://technet.microsoft.com/en-us/library/office-365-service-health.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Is there ANY way to send something through Bluetooth to an android phone?

    Is there ANY way to send something through Bluetooth to an android phone?

    I think I sorted it out:
    On your Mac, go to the Bluetooth preferences panel after pairing your (your android phone) to the Mac.
    Select (your android phone) in the left-hand menu, then use the little cog to pull down a list of options.
    Select "Edit serial ports..."
    Click the '+' icon, and in the Port Settings section, select OBEX Object Push.
    Protocol should be automatically set to RS-232. Click "apply" (and probably "require pairing" to be nice n secure) et voila!!
    so far, so good

  • Is there any way to send some one a password protected pdf that only they can access/view with a password?

    Is there any way to send some one a password protected pdf that only they can access/view with a password?
    Thanks!

    Hi wonderingtoday,
    Yes, you can! If you have Acrobat, you can assign an "Open Password" to the PDF, so that only people who have that password can open the PDF. If you don't have Acrobat, you can try it for free for 30 days. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • And is there any way to send sms in MIDP1?

    And is there any way to send sms in MIDP1 which doesn't support WMA (MessageConnection, TextMessage, ...) ?
    It seems it should, because in MIDP 1.0 documentation is note about sending sms using protocol sms://destination:port and that it returns DatagramConnection but there is no example and I really don't know how to create new Datagram to send TEXT message. It can only be created from array of bytes so it seems it can only send binary messages (?!).
    Plz help me...

    what special API where i can get it any link or information about that APi
    regards
    abdul rafiq jani
    Applitech Solution Limited

  • Is there any way to send sms through j2me

    hi all,
    is there any way to send sms through j2me or any way to communicate with real device through emulator or from emulator to another emulator
    any sugesstions appriciated
    abdul rafiq jani
    applitech solution limted

    what special API where i can get it any link or information about that APi
    regards
    abdul rafiq jani
    Applitech Solution Limited

  • Is there any way to send an album without all the photos attaching and the file being huge? and the file being huge?

    Is there any way to send just a link to an album? (vs attaching everything and having a huge file?) Thanks!

    No.
    File -> Export and send them to a Folder on the desktop. Then do what you will with them from there.
    There is nothing to be gained by installing Picasa if you're using iPhoto.
    Regards
    TD

  • TA38622 is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    Hi, Santosh..., and welcome to the Community,
    I would recommend testing the SMS reply forwarding to your mobile number.  Depending upon the results and if this works for you, you could then contact Skype Customer Service to cancel and request a refund.
    In other words, SMS will be received via your mobile number, not via your Skype Number.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Is there any way to send more then 1 parameter to the listener function?

    Hi guys, so is there any way to send more then 1 parameter to the listener function?

    Hi,
    sure.
    The first variant is to add many parameters to event.
    The second variant is to extend calling callback functions.
    For example,
    public function addCallBack(eventName:String, callBack:Function = null, ... rest):void
         // save callBack function and event type and other args (rest)
         addEventListener(eventName, myHandler);
    private function myHandler(event:Event):void
         // get function and args by eventName
         fnc.apply(null, [event, args]);

  • Is there any way to insert a sharp into excel through OLE?

    Dear Expert,
    Is there any way to insert a sharp into excel through OLE ?If have , Would you please give a sample code?
    BR Edward

    Hi,
    Check this link..[OLE2, Excel, WinWord |http://translate.google.com/translate?hl=en&sl=ru&u=http://www.sapnet.ru/] you can find the code snippets.

Maybe you are looking for

  • How can I get a legally unlocked iPhone 3G in US?

    How can I get a legally unlocked iPhone 3G in US? Where, How, And what is the total price. Thanks!

  • Setting var with image map onMouseOver

    i have an image map, and i need for as the user mouses over or clicks each mapped coordinates, a specific variable (mapclick) is set to a string to be output below the image map. i'm going in circles and really not making progress with my ideas, so a

  • Dvorak as the default keyboard

    I just bought a new Macbook and I chose the Dvorak layout with the Qwerty-apple key option as my default during the initial setup. I found that this allowed me to use Dvorak in the password input menus, but then I also saw that some keys didn't trans

  • Query on button

    hi expert   i create three text box and one button on form.now i want to add all edit text  box text in database when i clicked the button how i write  sql query on butoon

  • Snow Leopard and Safari 4 breaks Google Finance Charts

    Ever since i upgraded to Snow Leopard, the Stocks Charts in Google Finance stops updating (although the price still changes). I have to manual click refresh to get the latest daily charts, which is suppose to update every 2min based on my setting. I