XML loader in ActionScript define failure

I used the XML class in the <mx:Script> tag.
I defined a URLLoader to load an external XML file. But the
system return a undefined object on it.
My script are here:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.core.EventPriority;
var MyXML:XML = new XML();
var MyRequest:URLRequest = new URLRequest("
http://sweb.cityu.edu.hk/50685791/Adv_trialPosts.xml");
var MyLoader:URLLoader = new URLLoader(MyRequest);
MyLoader.addEventListener(Event.COMPLETE, onComplete );
private function onComplete(event:Event):void {
MyXML = XML(MyLoader.data);
]]>
</mx:Script>
</mx:Application>
The system returns two errors:
1120:Access of undefined property MyLoader.
1120:Access of undefined property onComplete
Moreover, I think the MyXML is also failed to defined.
What can I do???
thx!!!

Your don't have the proper operating system privileges. Be sure that you (=oracle OS user / the OS Linux user that is starting the database) are allowed have read privs on the path and/or file.
for example...
chown -Rf /xxxxxxx/xxxx/etc
ls -l file.xml
file.xml    oracle:oinstall    rw-rw-rw

Similar Messages

  • How to xml file load in actionscript 3.0

    Hi surfers,
    How to xml file load in actionscript 3.0, How to get xml data.
    Thanks in Advance.
    Pls give me ASAP, i'm struggle here.

    Search Google using "AS3 XML tutorial".

  • [svn:osmf:] 15972: ChromeLibrary: adding rudimentary support for loading plug-ins defined in XML.

    Revision: 15972
    Revision: 15972
    Author:   [email protected]
    Date:     2010-05-08 07:31:24 -0700 (Sat, 08 May 2010)
    Log Message:
    ChromeLibrary: adding rudimentary support for loading plug-ins defined in XML.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/.flexLibProperties
        osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/application/ChromeApplication.as
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/org/osmf/chrome/configuration/PluginsParser.as

    rnair wrote:
    I am trying to install Oracle 11g R2 on my windows 7, 64bit computer. After 42% of installation, it started showing some files are missing. Few of them are:
    C:\app\User\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMLRSVCApp.ear
    C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\WFMLRSVCApp.ear
    C:\app\User\product\11.2.0\dbhome_1\owb\external\oc4j_applications\applications\WFMGRApp.ear
    C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\WFMGRApp.ear
    C:\app\User\product\11.2.0\dbhome_1\owb\bin\win32\owb.tmp
    C:\app\User\product\11.2.0\dbhome_1\owb\bin\win32\setowbenv.tmp
    C:\app\User\product\11.2.0\dbhome_1\oc4j\j2ee\OC4J_DBConsole\config\system-application.xml
    And the final pop up winow says:
    Database configuration Assistant:Info
    *"Template General_Purpose.dbc does not exists. Please specify an exixting template for database creation"*
    *"[INS-20802] Oracle Database Configuration Assistant failed"*
    Details:
    Cause:- The plug-in failed in its perform method
    Action:- Refer to the logs or contact Oracle Support Services.
    Following are the last few lines of the log file. Can anyone please help me to fix this problem?<snip>
    the error has nothing to do with DBCA. DBCA was simply the last in a long string of victims.
    Go back and read the instructions where you downloaded the install media. They state that the TWO zip files you download must be unzipped into the same directory.

  • Reading an xml file in actionscript using flex3

    plzz tell me how to read an xml file in actionscript using flex3.......

    One possible option to parse an xml-file to a flex XML object:
    public function parseConXML(source:String):void
                    xmlLoader = new URLLoader();
                    xmlLoader.load(new URLRequest(source));
                      // Eventlistener: if URL loaded --> onLoadComplete function
                      xmlLoader.addEventListener(Event.COMPLETE, xmlLoadComplete);
                public function xmlLoadComplete(evt:Event):void{               
                    var xml:XML = new XML();
                     // ignore comments in XML-File
                    XML.ignoreComments = true;  
                       //ignore whitespaces in XML-File
                     XML.ignoreWhitespace = true;
                    // XML-Objekt erstellen
                    xml = new XML(evt.target.data);
                   //AFTERWARDS use your xml as your wish

  • Making a call over HTTPS with LoadVars, XML.load(), and WebService - Yes or No?

    Hello, do LoadVars, XML.load(), or WebService support HTTPS-based endpoints, Yes or No?
    BACKGROUND
    ============
    I've been trying to get a LoadVars to actually make a call to an HTTPS endpoint. There is nothing in the documentation that says it can't. I know that there's also XML.load() and WebService class, but from the looks of it they don't do HTTPS.
    During my tests I have absolutely no issues with making calls to the same service over HTTP. When I change it to HTTPS I don't see HTTPStatus or even failures. Also, netstat on my server will show a connection being established with the endpoint when using HTTP but not when using HTTPS. I've also tried setting SSLVerifyCertificate to "false" in my Server.xml and after a restart of AMS it doesn't help, same symptom.
    I've also googled and looked through all Adobe forum posts that I can find:
    https://forums.adobe.com/message/4938426#4938426
    https://forums.adobe.com/thread/1661461
    https://forums.adobe.com/thread/782037
    https://forums.adobe.com/message/74981
    https://forums.adobe.com/message/5107735#5107735
    https://forums.adobe.com/message/7815#7815
    https://forums.adobe.com/message/53870#53870
    https://forums.adobe.com/message/87797#87797
    WebService Class - http://stackoverflow.com/questions/5619776/webservice-and-fms
    The best I found from the posts above is a non-commital answer from adobe staff at https://forums.adobe.com/message/4938426#4938426 and a 3rd party person saying that Webservice doesn't work at http://stackoverflow.com/questions/5619776/webservice-and-fms.
    All I need is an official supported/not-supported from the Adobe staff. Shouldn't be to hard after 5 years or so of ignoring the questions in the forum right?

    Adobe, please provide some details to your current and possibly potential customers, in at least one of the many unanswered posts about making HTTPS requests from AMS.
    P.S.
    realeyes_jun,
    RealEyes Media has been an inspiration to me for many years, and I would like to thank them for their efforts to better the media streaming community.
    Also, would it be possible to please release the source to REDbug?

  • Xml loading and empty elements

    Hi,
    I'm having problems with Flex and xml data.
    I've created an app to edit pre-existing xml files or create new xml files, which are then saved out.  The xml node structure is defined (and cannot be changed as it's widely used across the company and it's associates).
    The problem is that as soon as the xml is loaded using a URLLoader class, any xml nodes that are empty are changed from:
    <nodename></nodename>
    to
    <nodename />
    This is how the data is traced out / saved, but this is useless to me as I need to keep the existing structure as the file may be edited outside of the app.
    Is there a way to prevent the xml data from being changed in this way?  Adobe's own documentation even says:
    'If an element contains no content, it can be written as an empty element (sometimes called a self-closing element). In XML, this element:<lastplayed/> is identical to this element: <lastplayed></lastplayed>'.
    In which case, why does this get re-written all the time?
    If anyone can help with this I'd be really grateful, as I just can't find a way to solve this.
    Thanks,
    ferdyferret

    Is there really no answer to prevent this then?
    ferdyferret

  • XML Loader

    Hi all,
    Any help you can offer on this would be much appreciated...
    I'm tearing my hair out here.
    I'm trying to make a quick little function to load XML data
    from an individual url when called, and want to define:
    - The XML's url.
    - The variable to put the XML into.
    - The function to run after it is loaded.
    Have a look:
    <mx:Script>
    <![CDATA[
    //Alert class...
    import mx.controls.Alert;
    //Remote events class...
    import mx.rpc.events.*;
    //Remote http class...
    import mx.rpc.http.HTTPService;
    //New http service object...
    private var xmlService:HTTPService;
    [Bindable]
    //System configuration XML and variables...
    public var configXml:XML = new XML();
    public var ownerName:String = new String();
    //Load XML function (url to load from, function to run when
    loaded, error code to display)...
    public function loadXml(url:String, output:String,
    next:Function):void {
    //Create new http service...
    xmlService = new HTTPService();
    //Define the url to load XML from...
    xmlService.url = url;
    //Define the use of a proxy...
    xmlService.useProxy = false;
    //Format of the returned data...
    xmlService.resultFormat = "xml";
    //What to do when the data has loaded...
    xmlService.addEventListener("result",
    function(event:ResultEvent):void{
    //Put the loaded xml into the dynamic variable sent by the
    click function...
    this[output] = XML(event.result);
    //Run the next function...
    next();
    xmlService.send();
    public function showXml():void{
    Alert.show(configXml, "Configuration");
    ]]>
    </mx:Script>
    Which is then called by something like:
    <mx:Button click="loadXml('configuration.xml', 'configXml',
    showXml);" />
    It works fine on using a dynamic function name (next - >
    showXml) but not on a dynamic variable name (output ->
    configXml)... however I don't think this is the problem, the
    problem comes in when it tries to write back to the configXMl
    variable, the scope of it is wrong, I have tried "this[output]",
    "[output]" and as many AS ways i can think of, but any suggestions
    would be great...
    FYI - The XML loads in fine, it just doesn't move from the
    "output" variable to the "configXml" variable.
    I would like to be able to define the variable the xml is
    outputted to from the function attached to the button.
    Any help is very much appreciated.
    Thanks
    Oz

    One XMLLoader that I know about is the example program that we build in Chapter 12 of my "Building Oracle XML Applications" book.
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Loading the user defined class file

    Hai,
    Is there any way to load the user defined class at the time of starting my Jakarta Tomcat server.
    Regards
    ackumar

    Hi!!
    Hope, <load-on-startup> tag of web.xml helps in
    s in this regard.I think this tag is to load servlet. I am talking about loading a user defined class file for example xyz.class which is no a servlet just a class file.
    Regards
    ackumar

  • MovieClip IN FRONT of an XML loaded jpg

    This is a general question.
    I'm building an XML loading image gallery and I want a
    MovieClip to go IN FRONT of the images. I've tried to bring it to
    the stage in a function before, after and within the loading
    function, but it always appears behind the images and disappears.
    I've even tried drawing it code and setting in a function before,
    after and within the image loading function, but that doesn't work.
    HELP!

    mcBlock is a movieclip in the library. It is defined. I can
    see it appear first on the stage and then get covered up by
    imageloader and there are no complier errors. The code is working
    fine, it is just not appearing the order I want.

  • How do I script SWF files instead of JPG files in XML loader?

    I have a SWF loader (greensock.com platform) and a thumbnail image scroll underneath it made of small image buttons. Each image button has a link which loads a new SWF file into the SWF loader above. Here is the code for each button which loads the bigger SWF file into the loader above:
    Button3.addEventListener(MouseEvent.CLICK, Button3_PlayPopUp);
    function Button3_PlayPopUp(event:MouseEvent): void {
        //setting the sourceVar
        sourceVar="3.swf";
        //making the SWFLoader load
        //as setting the soureVar after the SWFLoader is created won't do anything unlesss
        //I also re-create the SWFLoader with the new sourceVar when the button is clicked
        loader_howToLoader2.url = sourceVar;
        loader_howToLoader2.load(true);
    Then I decided to load all button via XML loader. I followed the tutorial on XML loaders which deals with loading jpg images and assigning URL links to them in the following manner first in XML file:
    <image src="appThmb_imgs/appThmb_imgs117x175/A-illuminatorUpLit_117x175.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com"/>
    and then in AS3 like this:
    var xmlLoader:URLLoader = new URLLoader();
    thisOne.link = imageList[item].attribute("url");
    function clickScrollerItem(e:MouseEvent):void {
    //trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);
    var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);
    try {
    navigateToURL(urlRequest);
    catch (e:Error) {
    // handle error here
    trace(e);
    My question is: How do I apply the code to each individual small thumbnail button to load a bigger image into the SWF loader above? Do I have to add something to XML file or this way it will never work with jpg images? Can url in XML file set the source var (//setting the sourceVar), since they are all individual and then somehow apply the making SWL loader to load part (//making the SWFLoader load) as a standard somewhere in the AS3 code?

    O.K. Here is my COMPLETE function.
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    function LoadXML(e:Event):void {
        trace("xml load complete");
        xmlData = new XML(e.target.data);
        //trace(xmlData.image); //we'll see each image xml element listed in the output panel with this xmlList
        buildScroller(xmlData.image); //rather than trace the xmlList, we send it to our buildScroller function
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
        trace("build Scroller");
        //var scroller_x:int=0;
        for (var item:uint = 0; item<imageList.length();item++) {
            var thisOne:MovieClip = new MovieClip();
            //thisOne.img_width=imageList[item].attribute("width");
            //outline
            var blackBox:Sprite = new Sprite();
            blackBox.graphics.beginFill(0xFFFFFF);
            blackBox.graphics.drawRect(-1, -1, 86, 128);//-1,-1 places rectangle 1px left and up.86, 128 draws rectangle 1px wider on all sides of placed image dimenstions of 84x126
            thisOne.addChild(blackBox);
            //scroller_x += thisOne.img_width + 20;
            //var currentX = currentImageWidth+spaceBetween;//modified line to adjust variable thumb widths
            thisOne.x = (84 + padding) *item;//84 is the width of the loaded images and 15 (which was before paddign var) is the padding
            //thisOne.x = scroller_x;//modified line to adjust variable thumb widths
            thisOne.itemNum = item;
            thisOne.title = imageList[item].attribute("title");
            thisOne.link = imageList[item].attribute("url");
            thisOne.src = imageList[item].attribute("src");
            thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
            //trace(thisOne.itemNum, thisOne.title, thisOne.link, thisOne.src);
            //Loading and Adding the Images
            //image container
            var thisThumb:MovieClip = new MovieClip();
            //add image
            var ldr:Loader = new Loader();
            //var url:String = imageList[item].attribute("src");
            var urlReq:URLRequest = new URLRequest(thisOne.src);
            trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
            ldr.load(urlReq);
            //assign event listeners for Loader
            ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);//tells us when the loading is complete
            ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);//tells us if there are any typo errors when the loading is complete
            thisThumb.addChild(ldr);
            thisOne.addChild(thisThumb);
            //create listeners for this thumb
            thisOne.buttonMode = true;//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);//makes boxes act as buttons
            thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);//traces the title when the mouse is over the bounding box in the Output Panel
            thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);//traces the title when the mouse is out the bounding box in the Output Panel
            //add item
            scroller.addChild(thisOne);
    But I am not sure if I expressed myself clearly. All what you have indicated happens. Images are being loaded and url strings are working. I can not figure out how to tweek the code so instead of url specified in xml file I can load swf image into the SWF loader on the same screen?

  • Data Services Fix Pack 12.2.1.2 issued to resolve XML loader problem

    We've had a few customers contacting us about the following error message:
    "The message type for datastore <my_ds> has not been set". Please notify Customer Support"
    Note that the text "<my_ds> will be the name of the XML loader you have in your dataflow.  This error occurs when you are adding a new loader to a dataflow that is an XML type. 
    The customers that have reported this issue were all building real-time jobs and the loader type was XML Message Target.
    In order to address this issue you will need to download and install the latest update which is 12.2.1.2.  The above issue was introduced in 12.2.1.1 (3.2 SP1).  You will ONLY have to install the client components (Designer) in order to address this issue.  no updates are necessary to the server side of the application to address this problem.
    An SAP Note has also been written up on this issue:  [1423045|https://bosap-support.wdf.sap.corp/sap/support/notes/1423045]
    Thanks,
    Ryan

    there is a connection timeout when trying to contact the laptop.the last lines it shows are:
    PCI: setting IRQ 0 as level-triggered
    ALI15X3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x8080-0x8087, BIOS settings: hda: DMA, hdb:pio
    ide1: BM-DMA at 0x8088-0x808f, BIOS settings: hdc: pio, hdd: pio
    hda: IC25N060ATMR04-0, ATA DISK drive

  • XML Load Document in EXE does not run

    LV 8.0 (or 8.01).
    This has got to be a trivial installation problem. I wrote a simple VI that reads in an XML file using the XML Load Document vi. It runs like a charm. I then built an exe. Loading the exe results in the following set of errors:
    Unable to Locate Component
    This application has failed to start because xerces-c_2_2_0.dll was not found. Re-installing the application may fix this problem.
    This is then followed by:
    LabVIEW: Resource File not found
    The file 'DOMUserDefRef.dll' is not a valid LabVIEW file
    As it turns out, I just received my 8.01 CDs, so why not? I installed the upgrade, repaired the internet toolkit, sprinkled some distilled water on my keyboard, but the problem did not go away. I then un-installed ALL of LabView, re-installed 8.00, did the hokey pokey, problem is still there.
    Am I missing some vital step? If so, I would love to find out where this is documented.
    I've reduced the problem to just having the XML Load Document vi connected to the Close Reference VI. See the attached VI.
    Thanks,
    fredb.
    Attachments:
    XMLBug.vi ‏13 KB

    Hi Casey;
    The XML Load Document is part of the XML ToolKit - that comes with the Internet Toolkit from NI. I'm not sure how I can post NI's toolkits here. They are available in the Toolkit CD (part of the Professional Suite). (I tried to get a screen shot in here - can't even do that!).
    I'll attach a sample XML Doc I've created. It is created by parsing the LVPROJ file in order to find all the dynamic VI's. I'll build one based on a very simple demo project and attach it here. I was able to parse most of it by using the get tag method, but when I went to use the get value - that would always return a blank string - so I gave up, found an example using the internet toolkit - and off I went.
    I do have a workaround (not too elegant) - I create a simple text file each time I write the XML file. I then read the txt file from within the EXE.
    Thanks for looking into this. I did get a pointer from my excellent field engineer (Lesley Yu) who suggested I take a look at...
    http://digital.ni.com/public.nsf/websearch/694A29D​C644542BC86256E29007CCAC1?OpenDocument
    This recommends I explicitly register the dll. I have not had a chance to try this. I did completely uninstall LV and re-install it. That wasn't it.
    Thanks again,
    fredb.
    Attachments:
    Demo.zip ‏1 KB

  • XML loader and UTF-16 - throws Content is not allowed in prolog

    Hi,
    Our ECC system is updated to unicode system recently. Now the iDoc downloaded from ECC is having a tag <?xml version="1.0" encoding="utf-16"?>.
    The XML Loader in the transaction throws an exception "Cannot perform action on XML document Content is not allowed in prolog. Exception: [Content is not allowed in prolog.]". If I change the encoding manually as "utf-8" and executing the transaction, it is working fine.
    Please let me know how to solve the issue.
    Thanks,
    Raman N

    Where should I enhance the webservice to make it able to handle zipped XML documents? Shouldn't take the AXIS library take care of this automatically?
    This is the web.xml document I use.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>
    NDW2</display-name>
    <servlet>
    <display-name>
    Apache-Axis Servlet</display-name>
    <servlet-name>AxisServlet</servlet-name>
    <servlet-class>
    org.apache.axis.transport.http.AxisServlet</servlet-class>
    </servlet>
    <servlet>
    <display-name>
    Axis Admin Servlet</display-name>
    <servlet-name>AdminServlet</servlet-name>
    <servlet-class>
    org.apache.axis.transport.http.AdminServlet</servlet-class>
    <load-on-startup>100</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/servlet/AxisServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>*.jws</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AdminServlet</servlet-name>
    <url-pattern>/servlet/AdminServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    </web-app>

  • V15 XML Loader Access To Path Not Allowed

    We are just starting to test our V15 sandbox system that has just been upgraded.  We have a transaction that works fine in our older environment (V12.2) but the same transaction fails in V15. The first sequence in the transaction is an XML Loader that tries to load and XML configuration file from the local MII server where the transaction is running.  The action fails with a Access to path /directoryNameHere/fileNameHere.xml is not allowed error.
    As far as we can tell, all of the filesystem/OS level permissions (Linux in our case) are the same as they are in our old environment.
    Other than file/directory permissions, any ideas why this might fail?  Has anything changed in V15 that would potentially impact this?
    We are not specifying a Credential Store alias (listed as optional).
    Thank you,
    Mike

    At some point a 'Default File Path' parameter was added as a system property and it's value may be causing your issue.
    System Properties - SAP Manufacturing Integration and Intelligence - SAP Library
    Default File Path
    DefaultFilePath
    The path on the file system (along with the subfolders) used to store files that need to be accessed by the following workbench actions for read/write operations:
    File I/O
    CreateDirectory
    CreateZipArchive
    DeleteFile
    GetFileList
    WriteFile
    FTPInput
    FTPOutput
    ADS Printing
    E-Mail
    Send Mail
    Read Mail
    LoggingXML Tracer
    Web
    HTMLSaver
    XMLSaver
    TextSaver
    ImageSaver
    HTMLLoader
    XMLLoader
    TextLoader
    ImageLoader
    Note
    Access to the files under the previous path (and the subfolders) will be lost if the path is changed.
    If the path is empty, you can access the file system, provided the file system provides read/write permissions. The same holds good for prior releases.

  • XML loader in custom Scrollpane

    I'm working on my first website, and have mostly been using tutorials on Lynda.com which has been hugely helpful.  I need several different scrollpanes in the site, one of which is a typical thumbnail gallery that uses XML to load the thumbnail images and displays full-size images & text when thumbnails are clicked.  With a Lynda tutorial I was able to write the appropriate code and use the canned scrollpane in Flash, but even after changing some of the properties I really don't like how it looks.  I found another tutorial (http://www.developphp.com/Flash_tutorials/show_tutorial.php?tid=265) that shows a scrollpane I like better (after some modifications), and I've got it working perfectly elsewhere on the site.. but I'm wondering if/how I can integrate the XML code I've already written into this new scrollpane so I can replace the canned one?  If anyone has any tips or can give me any advice I'd really appreciate it.. 
    Thank you!
    I'm using Flash CS4/AS3
    Macbook Pro
    This is the code for the canned one with all the XML:
    var titleArray:Array = new Array();
    var descriptionArray:Array = new Array();
    var largeimageArray:Array = new Array();
    var thumbimageArray:Array = new Array();
    var imageNum:Number=0;
    var totalImages:Number;
    //xml
    //load xml
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("insituportfolio/mainInSituGallery.xml"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(event:Event):void {
    var theXMLData:XML=new XML(XMLURLLoader.data);
    totalImages=theXMLData.title.length();
    for (var i:Number = 0; i < totalImages; i++) {
    titleArray.push(theXMLData.title[i]);
    descriptionArray.push(theXMLData.description[i]);
    largeimageArray.push(theXMLData.largeimage[i]);
    thumbimageArray.push(theXMLData.thumbimage[i]);
    loadThumbnail();
    mainScrollPane.source=thumbsMain;
    // load thumbs
    function loadThumbnail():void {
    trace(imageNum);
    var thumbLoader:Loader = new Loader();
    thumbLoader.load(new URLRequest(thumbimageArray[imageNum]));
    thumbLoader.y = 100*imageNum;
    var thislargeimage:String = largeimageArray[imageNum];
    var thistitle:String = titleArray[imageNum];
    var thisdescription:String = descriptionArray[imageNum];
    thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
    function thumbLoaded(event:Event):void {
    thumbsMain.addChild(thumbLoader);
    thumbsMain.buttonMode=true;
    mainScrollPane.update();
    thumbLoader.addEventListener(MouseEvent.CLICK,loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {
    largeUILoader.source=thislargeimage;
    selectedTitle.text=thistitle;
    selectedDescrip.text=thisdescription;
    //add to imageNum (1);
    imageNum++;
    if (imageNum<totalImages){
    loadThumbnail();
    And this is the code for the Scrollpane I'd like to use:
    // Scroll My Content function - AS3
    function scrollMyContent () {
    // Cache the TextField as a bitmap to improve performance.
        content_mc.cacheAsBitmap = true;
    // Event Listeners
    scrollDragger.addEventListener(MouseEvent.MOUSE_DOWN, scrollDraggerPress);
    stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpOnStage);
    // Set variables
    var scrollbarHeight:Number = scrollbarBG.height;
    var contentHeight:Number = content_mc.height;
    var scrollDraggerHeight:Number = scrollDragger.height;
    var maskHeight:Number = contentMask.height;
    var scrollAmout:Number = (contentHeight-maskHeight)/(scrollbarHeight-scrollDraggerHeight);
    var topBound:Number = scrollbarBG.y;
    var bottomBound:Number = scrollbarBG.height-scrollDraggerHeight+scrollbarBG.y;
    var startPos:Number = content_mc.y;
    var leftBound:Number = scrollbarBG.x;
    var absNumSet:Number = 0;
        // When scrollDragger gets pressed we do this
    function scrollDraggerPress(event:MouseEvent):void {
            // Set bounds using some of the scroller BG properties claimed above
    var bounds:Rectangle = new Rectangle(leftBound, topBound, 0, bottomBound);
    scrollDragger.startDrag(false, bounds);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, reportStageMouse);
    function reportStageMouse(event:MouseEvent):void {
    absNumSet = Math.abs(scrollbarBG.y - scrollDragger.y);
    content_mc.y = Math.round(absNumSet * - 1 * scrollAmout + startPos);
    // When mouse is released while dragging we do this
    function mouseUpOnStage(event:MouseEvent):void {
    stopDrag();
    scrollMyContent();

    Thank you, that's helpful... so if I just swap the source, do I just drop in the code for the xml after?  Or should it go elsewhere?
    I'm sorry, I realize this is probably a very basic question.

Maybe you are looking for

  • Do I need a Converter?

    Do I need a power converter to charge my american macbook pro in Asia.

  • Activate Extended Features converting files

    Hi, I'm using Adobe Acrobat 9 Pro Extended to convert to pdf 3D files. We are doing the conversion via Batch Process that executes a sequence and is working fine. The problem is that the generated pdf file has no te extended features activated by def

  • Images are cutted and youtube-videos are breaking down in ie7, ie8

    hi muse-experts, have the problem, that some images are cutted in ie7, ie8. the side is now working on businesscatalyst and another server. images are cutted here on bc: http://trabbitour.businesscatalyst.com/angebote.html , http://trabbitour.busines

  • How to check if my SuperDuper backup works?

    After reading that not all external HDDs guarantee the necessary compatibility with SL in case of total system recovery from an external backup, I would like to test mine. Is there a procedure around that explains how to do this check without putting

  • SAP Business Workflow Vs UWL

    As a part of our first release - we had HR and SRM and had major Portal usage. UWL was leveraged for the HR & SRM tasks. Currently for our next release - we dont have any HR / SRM - But core business processes around SD, MM, FI modules and not any fu