PSP Flash 6 | XML data storage

hi all
I cannot get XML working with the PSP, anybody know how to
get XML working, is there anything to watch out for?
I have checked every xml keyword that I have used and they
are all included in the Flash 6 specification.
regards
john

Flash 6, I am developing in Flash 6 not 7. NF3 6

Similar Messages

  • PSP Flash 7 | XML data storage

    Hi all
    I amtrying to get some XML working on the PSP. I am
    developing for Flash 7. The XML procedure that I am using is
    working fine on my PC. Anybody got any opinions or remedies for
    this problem.
    regards
    john
    http://www.javono.com

    Flash 6, I am developing in Flash 6 not 7. NF3 6

  • Custom Map in flash using XML data for dynamic map and point of intrest loading...

    Been some time since I have used Flash for anything...
    I'm working on a little project to dynamically build a map
    and set points of interest on the map. At this time I have the
    (mySQL) data being queried and formatted with PHP and pushing the
    data to Flash as XML.
    In starting the project I'm a bit lost... I mean I have my
    data and a good XML format but as it is I'm lost on parsing the
    data in Flash and assigning its values to movie clips or other...
    I've looked at the Loader Component and the XML Connector
    Component and find I can get that to work at all...
    My second though was to create a single movie clip on stage
    and give it an instance name of "Background" and have it load the
    URL of an image given in the attached XML doc... Node "a_zone" and
    the value given to attribute "image"... But this brings me back to
    square one of not quite understanding Flash and parsing XML... With
    this second idea I would use AS to create a movie clip, set it's X
    & Y cords and load an image to it based on the XML attributes
    listed in the "Gatherable" node (one for each node).
    Any suggestions, examples or related info is welcome...
    Thanks in advance!

    Okay, that really wasn't what I was looking for... But I did
    go back and RTM :-)
    Here's what I have... 1st frame:
    2nd Layer: movieclip with the instance name "currentPicture"
    The image loads into "currentPicture" from the URL given in
    the XML "a_zone" node attribute "image" just fine....
    But I'm not able to grab the attributes of each "Gatherable"
    node it seems... am I missing something or just not pointing to the
    right node?
    I keep getting:
    undefined
    undefined
    undefined
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"
    Error opening URL
    "file:///C|/apache2triad/htdocs/gatherer/flash/undefined"

  • XML data storage - How to handle symbol ' inside xml data from java code

    Hi
    I'm trying to store XML data in Oracle XML DB 10gR2 both through SQL and JAVA .
    I have a simple test table called xmltable with a primary key and a XMLType column
    My sql is:
    insert into xmltable values ('020', sys.XMLType.CreateXML(
    '<?xml version="1.0"?>
    <Mpeg7 xmlns="urn:mpeg:mpeg7:schema:2001">
    <DescriptionMetadata id="2005">
    <LastUpdate>2006-10-19T12:48:22.null+01:00</LastUpdate>
    <Creator/>
    <CreationTime>2006-10-19T12:48:22.null+01:00</CreationTime>
    <Instrument>
    <Tool>
    <Name>LAS MPEG-7 Services v1.0</Name>
    </Tool>
    </Instrument>
    </DescriptionMetadata>
    <Description xsi:type="urn:ContentEntityType" xmlns:urn="urn:mpeg:mpeg7:schema:2001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MultimediaContent xsi:type="urn:ImageType">
    <Image id="2005">
    <MediaInformation>
    <MediaProfile>
    <MediaFormat>
    <Content/>
    <Medium href="urn:mpeg:MPEG7MediumCS:2.1.1"/>
    <FileFormat href="urn:mpeg:IPTCMimeTypeCS:image/jpeg"/>
    <FileSize>2782043</FileSize>
    <VisualCoding>
    <Format colorDomain="color" href="urn:mpeg:MPEG7VisualCodingFormatCS:1"/>
    <Frame height="11604" width="8676"/>
    </VisualCoding>
    </MediaFormat>
    </MediaProfile>
    </MediaInformation>
    <MediaLocator>
    <MediaUri>oracle:bosch.informatik.rwth-aachen.de:1521/SMILEY/AMSDB.MEDIA_IMAGE/IMAGE[IMG_ID=2005]</MediaUri>
    </MediaLocator>
    <TextAnnotation>
    <FreeTextAnnotation>B?miy?n and Shikari areas</FreeTextAnnotation>
    </TextAnnotation>
    <Semantic>
    <SemanticBaseRef href="oracle:bosch.informatik.rwth-aachen.de:1521/SMILEY/AMSDB.OBJECT_XML/MPEG7_SB#/mpeg7:Mpeg7/mpeg7:DescriptionMetadata[@id='65']"/>
    <SemanticBaseRef href="oracle:bosch.informatik.rwth-aachen.de:1521/SMILEY/AMSDB.OBJECT_XML/MPEG7_SB#/mpeg7:Mpeg7/mpeg7:DescriptionMetadata[@id='148']"/>
    </Semantic>
    </Image>
    </MultimediaContent>
    </Description>
    </Mpeg7>
    Unfortunately I'm facing problem with the symbol ' at the tags:
    <SemanticBaseRef href="oracle:bosch.informatik.rwth-aachen.de:1521/SMILEY/AMSDB.OBJECT_XML/MPEG7_SB#/mpeg7:Mpeg7/mpeg7:DescriptionMetadata[@id='65']"/>
    <SemanticBaseRef href="oracle:bosch.informatik.rwth-aachen.de:1521/SMILEY/AMSDB.OBJECT_XML/MPEG7_SB#/mpeg7:Mpeg7/mpeg7:DescriptionMetadata[@id='148']"/>
    If I tried with double ' (not '' ) it works with SQL through SQLPLUS but not with java. Indeed I have to store the data through my application
    In java I get java.sql.SQLException: ORA-19102
    Many thanks in advance,
    Evanela

    Thanks for your answer. I downloaded the JDBC AddressBook application and I found it very usefull. I was able to populate a datalist from a datasource and show it in my application. My problem still remains in the sense that I am unable to show the KPI data in a "custom node" meaning I woul like not only to extract directly the database record to a datalist object but also put the information of a single record in a textbok and a gauge and keep control of paging. I think this is done with the parser in the other examples but I can not figure out how to do it with MySQL and the new Desktop screen designer. Should I use a clip object? or is that managed already by the desktop screen designer? or where can I find an example with the functionality I need?.

  • Servlet - xml data storage best practice

    Hello - I am creating a webapp that is a combination of servlets and jsp. The app will access, store and manipulate data in an xml file. I hope to deploy and distribute the webapp as a war file. I have been told that it is a bad idea to assume that the xml file, if included in a directory of the war file will be writeable, as the servlet spec does not guarantee that war are "exploded" into real file space. For that matter, they do not guarantee that the file space is writeable at all.
    So, what is the best idea for the placement of this xml file? Should I have users create a home directory for the xml file to sit in, so it can be guaranteed to be writeable? And, if so, how should I configure the webapp so they it will know where this file is kept?
    Any advice would be gratefully welcomed...
    Paul Phillips

    Great Question, but I need to take it a little further.
    First of all, my advice is to use some independent home directory for the xml file that can be located via a properties file or the like.
    This will make life easier when trying to deploy to a server such as JBoss (with Catalina/Tomcat) which doesn't extract the war file into some directory. In that case you would need to access your XML file which would be residing inside a war file. I haven't tried this (sounds painful) but I suspect there may be security access problems when trying to get the FileOutputStream on a file inside the war??
    Anyway.... so I recommend the independent directory away from the hustle and bustle of the servers' directories. Having said that..... I have a question in return: Where do you put a newly created (on the fly) jsp that you want accessed via your webapp?
    In Tomcat its easy... just put it in the tomcat/webapps/myapp directory, but this can't be done for JBoss with integrated Tomcat (jboss-3.0.0RC1_tomcat-4.0.3).
    Anyone got any ideas on that one?

  • Flash Changes XML data

    Hi all,
    Any reason why the attached code would yield this in a trace?
    <comments>
    <mastercomment1/>
    <mastercomment2/>
    <mastercomment3/>
    <mastercomment4/>
    </comments>
    Your thoughts are much appreciated...
    -SyddyS

    OK...
    Thanks for the help, Rothrock. Yep, we're in AS3. Here's the
    combo of fun that makes it happen:
    XML.prettyPrinting = false;
    XML.ignoreWhitespace = false;
    This lets the tabs that FCP seems to love so much shine
    through, and things are
    almost working. That combo of prettyPrinting (nice) and
    ignoreWhitespace allows an imported XML file to retain any tab
    characters it may have in it without converting them to spaces. The
    file now imports into Final Cut, and I have a brand spanking new
    title created dynamically by Flash.
    The one remaining hurdle to this project is that many titles
    have more than one line. When XML is exported from Final Cut, it
    codes the linebreak as &#13; (just in case it gets decoded
    here, that's ampersand poundsign 13 semicolon. If you type that
    particular combination into Google, it thinks you typed a linefeed
    :P ). Flash, being a slave to the All-Powerful Ampersand, turns any
    ampersand I may try and include in a node value into &amp.
    Final Cut, not surprisingly, has no idea what &amp means.
    Any way to get Flash to use an ampersand in an XML node? I
    tried using nodeValue, but that doesn't seem to work in AS3 as it
    did in AS2.
    Thanks,
    SyddyS

  • Using a flash drive for data storage - questions

    I take video clips whenever I travel and when creating DVD videos, want to intermix the clips with still images. Over a long trip, so many videl clips are created that it is required to download these to free up space in the camcorder. For me, a flash drive (or pen drive) is an ideal medium. However, I have found that even with a "fast" drive having a spec of 20MB/sec read and 18MB/sec write, the data transfer slows significantly when the transfer is of either video (.AVI) or music (.mp3).
    For example, I have a Sony flash drive with the above specs. Transferring straight data files such as word or spreadsheet documents, I measure the speed at approximately 12MB/sec. But, when I transfer video or audio, this drops to about 4MB/sec.
    When I look up transfer rates on the net, it gives one figure specifying this as "data transfer". I could find nothing to indicate the change, if any, in this rate if video or audio files are transferred.
    Does anyone have experience with this? Basically, I am trying to find the fastest 2 GB minimum flash drive at a reasonable price, but will I lose all of the speed as a function of the type of file.
    Thanks

    Yes, if these are normal data files and the flash drive is formatted for Mac OS Extended (Journaled) or FAT32.

  • Flash and XML data loading issue

    I have this SWF that loads 2 XML files that controls 2 different areas of the SWF.  I am using this code because I have stacked layers and when this was 2 seperate SWFs I couldn't use the SWFObject because of the wmode quirk in FF.  So my issue is when you first load this it seems to only load the slideshow (left side) and part of the right menu and then on refresh it loads the rest of the menu - how do I get it to load everything at once?  I have attacehed all of my files.
    <div id="LargeFlashContainerFlashMenu">     
                            <script language="javascript">
                                  if (AC_FL_RunContent == 0) {
                                       alert("This page requires AC_RunActiveContent.js.");
                                  } else {
                                       AC_FL_RunContent(
                                            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                                            'width', '940',
                                            'height', '265',
                                            'src', 'JGSB_HeaderRightNav_v05',
                                            'FlashVars', 'strNavContentXML=BICMenu.xml&strShowContentXML=settings.xml',
                                            'quality', 'high',
                                            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                                            'align', 'middle',
                                            'play', 'true',
                                            'loop', 'true',
                                            'scale', 'showall',
                                            'wmode', 'transparent',
                                            'devicefont', 'false',
                                            'id', 'JGSB_HeaderRightNav_v05',
                                            'bgcolor', '#000000',
                                            'name', 'JGSB_HeaderRightNav_v05',
                                            'menu', 'true',
                                            'allowFullScreen', 'false',
                                            'allowScriptAccess','sameDomain',
                                            'movie', 'JGSB_HeaderRightNav_v05',
                                            'salign', ''
                                            ); //end AC code
                             </script>
                             <noscript>
                                       <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="940" height="265" id="JGSB_HeaderRightNav_v05" align="middle">
                                            <param name="allowScriptAccess" value="sameDomain" />
                                            <param name="allowFullScreen" value="false" />
                                            <param name="movie" value="JGSB_HeaderRightNav_v05.swf" />
                                            <param name="FlashVars" value="strNavContentXML=BICMenu.xml&strShowContentXML=settings.xml" />
                                            <param name="quality" value="high" />
                                            <param name="wmode" value="transparent" />
                                            <param name="bgcolor" value="#000000" />
                                            <embed wmode="transparent" src="JGSB_HeaderRightNav_v05.swf" quality="high" bgcolor="#0099cc" width="940" height="265" name="JGSB_HeaderRightNav_v05" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                                       </object>
                             </noscript>
                   </div>

    ok I couldnt upload the files but I can send anyone who can help the zip with all files in it via email.

  • Flash xml data loading and unloading specs

    hi i am trying to get specification information that i cannot
    find anywhere else.
    i am working a large flash project
    and i would like to load xml data into the same swf
    object/movieclip repeatedly.
    as i do not want the previously loaded items to unload i need
    to know if doing this will unload the items from the swf or just
    keep them in the library so they can be reposted without reloading.
    i cannot find any supporting documenation either way that
    tells me that if i load new content into a clip (i am aware
    levels overwrite) if it will or will not unload this content.
    thanks in advance.
    mk

    this is awful for me -- i cant even get the clip to duplicate
    -- and i thought this would be the simplest solution to keeping
    everything cached for one page before and one page after current in
    the project.
    i have used a simpler clip to test the code and see if i am
    insane.
    duplicateMovieClip(_root.circle, "prv", 5);
    prv._x = 300;
    prv._y = 300;
    prv._visible = true;
    prv.startDrag();
    this ALWAYS works when i use the _root.circle file of a green
    simple circle
    BUT
    when i change it to my main movie clip (which is loaded AND
    On screen -- it just doesnt duplicate at all!) -- i've even
    triggered it to go play frame 2 JUST IN CASE
    I've even set visibility to true JUST IN CASE
    ie all i do is change _root.circle to _root.cur
    and .... nada.
    AND _root.cur IS DEFINITELY on the screen and all xml
    components have been loaded into it. (it is a slide with a dynamic
    picture and dynamic type and it 100% works)
    has anyone had this insanity happen before?
    is this an error where flash cannot attach movie or duplicate
    a clip that has dynamic contents???

  • Bringing xml data into flash

    I would like to know how to bring xml data into flash.
    Specifically images that someone can click on the thumbnail and
    view the larger image. please can anyone point me to some tutorials
    or sites that i can start to learn how to do this.
    thanks.

    Hi
    First of all, read every thing you can in Flash Help to get
    to know the different methods of loading XML.
    XML can be loaded with 'built-in' components or parsed in
    Actionscript, the Help files will explain both.
    Next - Google for 'XML Image or Picture Gallery' you'll find
    plenty
    Hope it helps

  • Local data storage with XML vs SQLLite

    Short version:
    I have a mobile app that gathers and stores a large amount of data. The current XML solution (all in one file) is having performance issues as the volume of data increases beyond a certain point.
    Can I be confident that using SQLLite and a local database will be a better option and improve performance?
    Long version:
    I have built a mobile app that is used by my client to collect data.
    When we started the project the amount of data was relatively small. Given that, and given the past experiences of my team, we chose to use an XML file to store the collected data. When the app starts it loads the whole xml file into a set of data objects in memory for use by the app. The data is not loaded again for as long as the app stays running. We then run a routine whenever the app wants to save to the HD that converts all of the data back into XML.
    The data is split into 'projects' and each project naturally has its own xml node. To improve performance when saving, each instance of the Project class stores its loaded node string. Then, when the save routine is called, if the classes data has not been changed it simply returns the original string instead of going through the whole process of re-compiling it.
    Of course this does not change the fact that whenever a save is performed, the whole xml structure must be saved back to the file on the HD.
    The app has now been used in anger for quite some time and we are starting to get reports of performance issues. The main culprit is during loading which only happens once but can apparently now take an exeptionally long time and causes problems during startup to the point where users think it has crashed.
    I am now tasked with trying to improve the data storage for the app. My original reaction was to try breaking down the xml into multiple files which can then we loaded and saved when needed instead of handling everything all at once. I am worried though about the implications of the app trying to handle in excess of 2000 xml files in some cases. It may not be an issue at all but it just stands out to me as something to be concerned about.
    So the best other option that I am aware of is to use SQLLite to save all the data into a local database. I have very little personal experience with sql and databases though so while a lot of the documentation and blog posts I see seem to suggest that this is the way to go for mobile apps with a large amount of data, I cannot be quite certain. The big issue is that I cannot afford to sell the idea of such a radical change (and more importantly the time it would take to implement it) to my client without being quite sure that this will be a valid solution to the problem.
    So my question to you, Flex community, is would you continue to use XML or is SQLLite the better way to go for large amounts of data? Do you think that I would see an improvement by using SQLLite? Additionally, do you have any tips or experience with a similar situation that might be helpful to me?
    Thank you
    Jamie

    I've been very happy using the internal SQLite database with Flex.  You should definitely get much better performance from it.  Just being able to load your data asynchronously if nothing else you should get a great benefit.  The sheer amount of data in your XML file that is being passed around is probably quite a hit (especially on mobile).  Breaking up the XML shouldn't be too crazy to do (as you're already doing it somewhat, I'd imagine, when you're accessing the information from within your app).  Give switching to SQLite a try, but I'd say that's a great place to start.

  • Automating multi-file Flash using XML file "run list"

    I've created a multi-file interactive Flash "demo" for a client. It's very much like a website (though he's not using it as a website) in the way that it is laid out in that there is a main index page which can then direct you to different product categories, which you can click on to see. Each "page" contains product (or product category) information, photos, block diagrams, etc. There is nothing animated in the Flash.
    My client also wants to be able to set it up so that the demo runs automatically from a configurable XML file. My ActionScript skills are pretty limited, but I've been able to using ActionScript 3 to load and read the XML file. Using a 'for' loop, I am able to read the XML file and return the path of each Flash file and the duration that each file should be displayed (my client requested that he be able to configure the duration of each page as well).
    I've set up a loader for each movie clip and a timer for the display duration. Unfortunately, the thing that is throwing me off is that when I attempt to load the movie clip (as the last item in the for loop), it reads the entire XML file, returns all of the clips and durations (I'm using trace to see this) before it loads the movie clip. As a result, the only movie clip that is loaded is the last one read from the XML file.
    As I said, I'm not very good at ActionScript, so everything that I've managed to cobble together has been from internet tutorials.
    This is my code:
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    var mcLoader:Loader = new Loader();
    mcLoader.contentLoaderInfo.addEventListener(Event.INIT, playClip);
    var mcCurrent:MovieClip = new MovieClip();
    stage.addChild(mcCurrent);
    var xml:XML;
    function playClip(e:Event):void
        trace("Function:playClip");
        stage.removeChild(mcCurrent);
        mcCurrent = MovieClip(mcLoader.content);
        mcLoader.unload();
        stage.addChild(mcCurrent);
    function xmlLoaded(e:Event):void
        trace("Function: xmlLoaded");
        xml = new XML(e.target.data);
        var cl:XMLList = xml.clip;
        for(var i:uint=0; i<cl.length(); i++)
            trace("Begin 'for' loop");
            trace("variable 'i' is" + i);
            var clipPath = cl[i].@path;
            var delay = cl[i].@duration;
            trace("Clip path is " + clipPath);
            trace("Display for " + delay);
            mcLoader.load(new URLRequest(clipPath));
    xmlLoader.load(new URLRequest("filerunlist.xml"));
    I removed the timer event because it, like everything else was getting repeated before anything got loaded, so I wanted to figure out out to get the clip loader (mcLoader) to load the movie clip for each file before I figured out where to put the time to ensure that each clip is displayed for the appropriate duration. I suspect that the timer event needs to occur in the 'playClip' function, but would take advice on that as well.
    Thanks to anyone that can help me figure this out.

    What you need to do in the xml parsing function is to simply store all of the data into an array.  You will then use that array one element after another via whatever timer control you set up, accessing each file in the order they are stored in the array.  You will not do any loading in that function, just data storage, and when you are done, the last line in that function, outside of the loop, will trigger whatever function you have that will start processing the first item in the array.
    Example, storing data objects in the array...
    var clipData:Array = new Array();   // store your xml data here
    var clipToShow:uint = 0;                   // use this later in the showClip function
    function xmlLoaded(e:Event):void
        trace("Function: xmlLoaded");
        xml = new XML(e.target.data);
        var cl:XMLList = xml.clip;
        for(var i:uint=0; i<cl.length(); i++)
            clipArray.push( { clipPath: cl[i].@path, delay: cl[i].@duration } );
        showClip();
    function showClip(){
         // do whatever to process loading clipArray[clipToShow].clipPath
         // and using clipArray[clipToShow].delay for starting whatever timer is involved
         // the timer event handler function will call this function when it is executed
         clipToShow += 1;   // increment the counter for the next clip in line
    If you are not comfortable/familiar with the object approach, then you could also store the clip and delay data in two separate arrays.

  • Prefered data storage method for AIR apps?

    So I'm starting on my AIR application journey, in the end I would like to develop applications for Droid.  I'm used to developing for the web and mostly use MySQL, I've been looking at SQLite and XML as data repositories.  I feel that for most of my applications at this point XML files would most likely do the job, but is there a prefered data storage method for AIR applications?
    EDIT:  I've been looking around for a primer on Flash & SQLite interaction if someone could point me in the right direction it would be very thankful.
    Thank you much!

    For document management, I believe simple file/Directory would be sufficient. have files under a file server, with your app do the proper indexing, concurrency etc from that file server folder, which shall properly stores and index the documents.

  • How to search XML data from a HTTPMultiService and display the result on the Spark List

    Hello all,
    I am totally new to Flash Builder and Actionscript and hope someone might be able to help me out. I basically create a mobile app with a single view. The view has a TextInput as a search box and a search button. I conntected a Data/Service using a local XML file and bind the Data to a Spark List. Innitally the List will show nothing until the user enter the search term and hit the button. The List suppose to show the XML data that match the search term.
    Now is my problem. I cannot make the List to show the data that match the search text. The List just shows ALL the data.
    Here are my MXML code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:shopping="services.shopping.*"
            title="Search">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function button1_clickHandler(event:MouseEvent):void
                    navigator.popView();
                protected function list_creationCompleteHandler(event:FlexEvent):void
                    getDataResult.token = shopping.getData();
                protected function seach_clickHandler(event:MouseEvent):void
                    getDataResult.token = shopping.getSearchData(searchTxt.text);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getDataResult"/>
            <shopping:Shopping id="shopping"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:actionContent>
            <s:Button height="79" label="Back" click="button1_clickHandler(event)"/>
        </s:actionContent>
        <s:List id="list" left="0" right="0" top="111" bottom="0"
                creationComplete="list_creationCompleteHandler(event)" labelField="english">
            <s:AsyncListView list="{getDataResult.lastResult}"/>
        </s:List>
        <s:TextInput id="searchTxt" x="80" y="34" width="250" height="49" enabled="true"
                     prompt="search..."/>
        <s:Button id="search" x="338" y="35" width="72" height="49" label="s"
                  click="seach_clickHandler(event)"/>
    </s:View>
    Here is the _Super_Shopping.as file:
    * This is a generated class and is not intended for modification.  To customize behavior
    * of this service wrapper you may modify the generated sub-class of this class - Shopping.as.
    package services.shopping
    import com.adobe.fiber.core.model_internal;
    import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
    import com.adobe.serializers.xml.XMLSerializationFilter;
    import mx.rpc.AbstractOperation;
    import mx.rpc.AsyncToken;
    import mx.rpc.http.HTTPMultiService;
    import mx.rpc.http.Operation;
    import valueObjects.Shop;
    [ExcludeClass]
    internal class _Super_Shopping extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
        private static var serializer0:XMLSerializationFilter = new XMLSerializationFilter();
        // Constructor
        public function _Super_Shopping()
            // initialize service control
            _serviceControl = new mx.rpc.http.HTTPMultiService();
             var operations:Array = new Array();
             var operation:mx.rpc.http.Operation;
             var argsArray:Array;
             operation = new mx.rpc.http.Operation(null, "getData");
             operation.url = "assets/data/shopping.xml";
             operation.method = "GET";
             operation.serializationFilter = serializer0;
             operation.properties = new Object();
             operation.properties["xPath"] = "/::shop";
             operation.resultElementType = valueObjects.Shop;
             operations.push(operation);
             operation = new mx.rpc.http.Operation(null, "getSearchData");
             operation.url = "assets/data/shopping.xml";
             operation.method = "GET";
             operation.resultFormat = "text";
             argsArray = new Array("item");
             operation.argumentNames = argsArray;
             operation.properties = new Object();
             operation.properties["xPath"] = "/::shop";
             operation.resultElementType = valueObjects.Shop;
             operations.push(operation);
             _serviceControl.operationList = operations;
             preInitializeService();
             model_internal::initialize();
        //init initialization routine here, child class to override
        protected function preInitializeService():void
          * This method is a generated wrapper used to call the 'getData' operation. It returns an mx.rpc.AsyncToken whose
          * result property will be populated with the result of the operation when the server response is received.
          * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
          * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
          * @see mx.rpc.AsyncToken
          * @see mx.rpc.CallResponder
          * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
        public function getData() : mx.rpc.AsyncToken
            var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getData");
            var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
            return _internal_token;
        public function getSearchData(item:String) : mx.rpc.AsyncToken
            var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getSearchData");
            var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(item);
            return _internal_token;
    The getSearchData() supposed to return XML data that match the search text, but it doesn't. Can anyoen help?
    Thank you!

    Hi,
    are you able to change dynamically the  operation.url = "assets/data/shopping.xml";?
    i need to do that based on the users input.
    Thanks in advance,

  • XML data into Combo & List

    Hi
    I am too new to this and still tring to learn. Well here is what I am into. I am trying to make a simple product catalog, using native components
         a combobox to display DISTINCT health issues
         a listbox to display the products associated to the selected health issue item in ComboBox
         a textarea to display complete information about the selected product in listbox
    Data comes from single external xml file.
    I was able to start off with Combo, but I don't know how to display DISTINCT ITEMS IN IT? Now it display all items including duplicates. Then I added eventlistener to Combo, which on change, the data for selected item is displyed in Textarea, but i don't know how to hook this to List component.
    All files available here:
    https://docs.google.com/folder/d/0ByHOlDbL5njbX1FFd1UtTFNzMTg/edit
    Sure some of you can do it so easy. Appreciate your time and help.
    Thank you
    Kristtee

    Filter the XML before using it to create your dataProvider http://joshblog.net/2007/05/17/filter-xml-data-with-e4x-in-flash-part-2/

Maybe you are looking for

  • Iphone 5 and itunes problems

    hi, Everytime I plug my iphone 5 into my computer to sync my itunes libary to my phone, my phone is not detected by itunes. Although, when I do plug in my phone my laptop does recognise my iphone and my phone does ask me if I want to trust the comput

  • In 4.6c system, alternate table for SRGBTBREL (available in ECC6)

    In ECC6 we have SRGBTBREL which contains the relationship between business object and the documents attached (attached using Generic services for object --> Create Attachment) to it.\ But in SAP 4.6c the same table is not available. Please suggest is

  • Lr keeps crashing in Mac 10.7.5

    Joined Creative Cloud a few months ago. Ps working fine but Lr keeps crashing. Have to re-install to get back. What's up? What am i doing wrong? thanks.

  • Compress to MPEG-2

    Hello there, I am using final cut express to make a movie that will be projected on large screen (2 or 3 windows high), so I am very concerned about the final quality of the DVD. I know that iDVD does a good job compressing .mov into mpeg-2. But is t

  • Can you set up a text group

    Can you set up a text group?  So you have a group of people but under one name.