Making dynamic app

Hi, I am trying to use external XML file to display images
and text. I use XML object to hold my XML data. But I don't know
how to bind it with mx tags:
Here is the XML file:
<Slides>
<slide id="1">
<image>images/womanInExer.jpeg</image>
<headingText>Exercise for
Beginners</headingText>
<descText>Learn how to get started on your exercise
program from your Health.com</descText>
</slide>
<slide id="2">
<image>images/magnifyingMan.jpeg</image>
<headingText>Think again</headingText>
<descText>about your Health and
Fitness</descText>
</slide>
<Slides>
Here is the Application:
<mx:HBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="680" height="300" creationComplete="getXMLData()"
currentState="slide2">
<mx:Script>
<![CDATA[
private function xmlDataHandler(event:Event):void
var loader:URLLoader = event.target as URLLoader;
myXML = new XML(loader.data);
var arr:ArrayCollection = new ArrayCollection(loader.data);
imageData = arr.event.Slides.slide.image;
private function getXMLData():void
var loader:URLLoader = new URLLoader();
var request:URLRequest = new
URLRequest("headerAnimData.xml");
loader.load(request);
loader.addEventListener(Event.COMPLETE, xmlDataHandler);
</mx:Script>
]]>
<mx:HTTPService id="imageService" url="headerAnimData.xml"
result="xmlDataHandler(event)"/>
<mx:states>
<mx:State name="slide2" id="a">
<mx:SetProperty target="{headerImage}" id="aImage"
name="source" value="{myXML.slide[1].image}" />
<mx:SetProperty target="{headingText}" name="text"
value="Think again" />
<mx:SetProperty target="{descText}" name="text"
value="about Your Health and Fitness" />
</mx:State>
<mx:State name="slide3" id="b">
<mx:SetProperty target="{headerImage}" name="source"
value="images/oranges.jpg" />
<mx:SetProperty target="{headingText}" name="text"
value="Eat Healthy" />
<mx:SetProperty target="{descText}" name="text"
value="Good nutrition and a balanced diet will help you and your
child grow up healthy." />
</mx:State>
<mx:State name="slide4" id="c">
<mx:SetProperty target="{headerImage}" name="source"
value="images/womanWithGlasses.jpg" />
<mx:SetProperty target="{headingText}" name="text"
value="Be Happy" />
<mx:SetProperty target="{descText}" name="text" value="Be
happy and try to make other people happy as well" />
</mx:State>
</mx:states>
I am not sending the complete code. I just want to set value
of properties using XML data.
headerImage is an <mx:Image ...>
headingText is an <mx:Text..>
descText is an <mx:Text...>
Any help or suggestion will be greatly appretited.
Thanks,
Regards,
Wahab

use ajax
best,
Shocker

Similar Messages

  • What kind of programming background do you need to start making iOS apps?

    I have zero knowledge of programming. I have done programming about 7 years ago and it was extremely basic stuff and mostly to do with C. I have learnt BASIC language (wonder if its even worth mentioning) in school!! But, I really want to program. Even if it takes a long time. How do I get started??

    Your question "What kind of programming background do you need to start making iOS apps?" does not have a single answer. Thanks to the internet, nowadays its possible to start from zero. You can find an answer for even the most basic question on the internet. It just a question of time and effort. If you have
    the time
    no pressing deadline and a
    high frustration tolerance
    just go ahead and do it.
    Regards - Roe

  • [SOLVED] Having trouble making QT apps use GTK theme

    Hello everyone, I'm having trouble making QT apps use my GTK theme in openbox.
    Some apps seem to work just fine but others don't.
    ^Such as above, as you can see VLC is working, as is qtconfig, but k9copy and k3b are not.
    I've did the suggestions that are listed in the wiki. (http://tinyurl.com/ybhb7yr)
    And even rebooted after I did them, still no go.
    My .gtkrc-2.0 file simply contains:
    gtk-theme-name="Clearlooks_blackblue"
    gtk-icon-theme-name="Tango"
    Does anyone have any ideas why it's not working with k9copy and k3b/how to fix it?
    Thanks.
    Last edited by tgblb (2010-03-22 02:39:31)

    anonymous_user wrote:k9copy and k3b are KDE apps not Qt.
    Yes, but don't they use QT?
    And if not, what do they use? lol. And is there anyway to make them use my GTK theme?

  • Dynamic App Launcher tiles

    Hi ,
    I am using a dynamic app launcher tile in the fiori launchpad. I am using Odata in the Service URL parameter, but i see that only number is getting bound to the tile where as other parameters like title,information are not getting bound to the tile even though they are passed from the odata.
    Please let me know is it only number that can be bound or we should be able to bind other parameters as well.
    Thanks & Regards,
    Seshu

    Hi Pat,
    Initially, We used filters in service URL. Which didn't work properly. Then we replaced filters with Single Entity. And worked correctly.
    For example
    /sap/opu/odata/sap/ZXXXXX/Collection?$filters=title eq 'System' and subtitle eq 'Manage'
    will not work. Its gives only number on tile. but not other information.
    /sap/opu/odata/sap/ZXXXXX/Collection(title='System',subtitle='Manage')
    Worked well with us.
    Note: Both returns the same output and single entry(entity). But the way we provide the URL in FIORI customization is really matters.
    Refer to
    OData Structure for Dynamic App Launchers - User Interface Add-On for SAP NetWeaver - SAP Library
    for format of data for tiles.
    Regards,
    Seshu

  • Stopping user from making in app purchases on a live iPhone app

    Hi
                   I am trying to stop user from making in app purchases on a live iPhone app. What i have done is i made  Cleared for Sale: No in itunesconnect product id and Status is changed to Status: Developer Removed from Sale. But still i am able to do in app purchase in the app. Any idea why is it? anything i should do? Last Thureday night i have done this changes in itunes connect. i don't want to delete the product id from the itunesconnect.
    Thanks
    Anish

    Hey Michael,
    Is that the only way to stop in app purchase? delete the product ids from the itunes connect?
    Thanks
    Anish

  • Using library images when making phone apps in AIR

    Gidday guys
    A lot of the tutorials I'm getting through practice embedding their images when making phone apps, and put these images in their assets folder.
    I'm wondering - is it not OK to simply use images as symbols from your Flash Pro library?
    I'm not refering to splashscreens or icons - rather images that make up the app's functionality.
    I thought it may be something to do with supplying multiple images for different screen res', but I'm planning on designing at 640x960, and using...
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    ...to take care of different resolutions.
    Thanks for your help.

    Yes - I do this with my desktop AIR app.
    What I'm wondering though is it OK to do this for phone apps, or is there some advantage to emedding the images and putting them in your project's assets folder? eg phones being able to cache images from assets, but not if the images are built into the swf.

  • Guys i need to get m itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    guys i need to get my itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    If you've tried to buy something and your've been charged for it (and it's not a temporary store holding charge) but haven't received it then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    Hello-- I'am thinking off making an app to the iphone, but i'am not sure aboutsomething. the app should get some alarms from a specific phone number, and my question is, can i make an app that can receive message from a specific phone number ?

    This needs to be asked at http://developer.apple.com/

  • If i am making an app, and copy something from a site that may is copyrighted and make money on it will that be illigal ?

    If i am making an app, and copy something from a site that may is copyrighted and make money on it will that be illigal ?
    Just like 10 best jokes etc.

    That would be a copyright violation.
    If Apple requests it, you have to be able to show documentation that shows you have the right to use the content in your app.

  • TS1702 problems making in app purchases

    I have had continual issues making in-app purchases. The problem will get fixed then it will not work a couple days later. It's very aggravating. I'm totally frustrated with Apple.

    What happens when you try to buy them, does the 'buy' button not work, do you get any error messages ... ?
    If you are getting a message to contact iTunes Support then you can do so via this link and ask them for help (we are fellow users on here, we won't know why the message is appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption . If it keeps appearing and you keep having to contact iTunes Support then include that when you contact them and see if they can do anything to stop it recurring.
    If it's a different problem ... ?

  • Making dynamic table header

    Hi,
    I want to know how to put some value on a table header dynamically.
    Regards
    Hawker

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Dynamic app icons

    Hi All,
    Perhaps this question is not in the right forum. Please redirect me if it isn't. Can anyone tell me why it is that only the calendar icon uses a dynamic function (ie the month and day change to reflect the actual date)? It would be very useful and productive for the Weather icon to use this function as well. In fact, some other apps that could benefit include: Clock, Pennies, and Currency. Perhaps this has something to do with the "limited background processing" to conserve battery power.
    Any thoughts?
    Randy

    I think widgets on the lock screen would be cooler. But real time calender and weather icons are good too.

  • Making dynamic form flow on to next page

    Hello,
    I am trying to make a dynamic form that is expandable. I have succeeded in creating expanding fields, but have been unsuccessful in convincing those fields to flow on to the next page (which I have added). I have set all the content for my fields to flowed and have allowed page breaks in all of them. I suspect there might be a pagination issue, but I have not found any solid information about how to use it correctly. If I select any option other than the default in pagination (while the subform at the bottom of the page is selected), the whole form disappears. I realize I may have some inherent flaws in my design and will perhaps need to start over, but if anyone had a list of requirements for making things flow to the next page (after a set margin at the bottom of the page, i.e. at 1" from the bottom, the field entry splist, and continues at 1" from the top of page 2), I would be grateful.
    Thanks!

    Hi,
    I wondered if you might be able to help me solve another flow issue? I've got my form working quite well now, but I', having an issue with the text fields. My fields have captions that ask a question, and the response should be in the field. I wondered if there was a way to make the text fields wrap onto the beginning of the next line as they expand, rather than going onto the next line at the limit of the text field. For example-
    What is your favorite color?: (the response continues here and goes all the way to the end and on to the next
    line and continues here.
    rather than-
    what is your favorite color?: text text etc etc
                                              text text text etc etc.
    Does that make any sense? Is it possible? Should I throw this to the forum?
    Thanks!

  • Im 14 and Making an app

    Im 14 and im making an iPhone or an iPad app. I just cant think of any ideas it would be gret if you could help me out!

    I suggest you ask on the Developer forum under OS X technologies, not here. that's where such questions belong.
    http://discussions.apple.com/category.jspa?categoryID=164

  • ADF- managedbean creation error while making dynamic menus.

    im a lil new here so plz excuse and help!
    scenario:
    to create dynamic menu for two tabs : general..
    general has a subtabmenu in form of menubar wid items: country, city,...
    i created dynamic menus for my application.wen i ran my page i got this error:
    SEVERE: Managedbean menuItem_General could not be created Can't get value from value binding expression: '#{resources['erms.menu.gen']}'
    (erms.menu.gen is an entry in UIResources.properties)
    now, i followed the exact same process as mentioned in the SRDemo application, in adfdevguide!
    also double checked that
    i. resource adapter is configured in faces-config.
    ii.menu model and menuTreeModel are configured with thier default adapaters in faces-config.
    iii.resource bundle specified in jsp page.
    can sum1 plz refer
    1.wat is the reason of this error? wat are the things dat shud hold true in order to run these dynamic menu? which files shud b specified where?
    2. in wat order are the managedbeans created ? is it in order they apprear in faces-config file or in order they are used in the jsp page?
    3: is it possible that u click on a menuTab item and it displays its particular menubar's items while staying on the same page? or
    u click on a menubar item and it displays its particular dropdowns while staying on the same page?
    is it posible wid ADF or javascript shud b used?
    best regards
    Rabs

    im a lil new here so plz excuse and help!
    scenario:
    to create dynamic menu for two tabs : general..
    general has a subtabmenu in form of menubar wid items: country, city,...
    i created dynamic menus for my application.wen i ran my page i got this error:
    SEVERE: Managedbean menuItem_General could not be created Can't get value from value binding expression: '#{resources['erms.menu.gen']}'
    (erms.menu.gen is an entry in UIResources.properties)
    now, i followed the exact same process as mentioned in the SRDemo application, in adfdevguide!
    also double checked that
    i. resource adapter is configured in faces-config.
    ii.menu model and menuTreeModel are configured with thier default adapaters in faces-config.
    iii.resource bundle specified in jsp page.
    can sum1 plz refer
    1.wat is the reason of this error? wat are the things dat shud hold true in order to run these dynamic menu? which files shud b specified where?
    2. in wat order are the managedbeans created ? is it in order they apprear in faces-config file or in order they are used in the jsp page?
    3: is it possible that u click on a menuTab item and it displays its particular menubar's items while staying on the same page? or
    u click on a menubar item and it displays its particular dropdowns while staying on the same page?
    is it posible wid ADF or javascript shud b used?
    best regards
    Rabs

Maybe you are looking for