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.

Similar Messages

  • 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

  • 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?

  • Error in delta load of 'Customer Group' from R/3 to CRM

    Hi Experts,
    I added new 'Customer Groups' in R/3. But this is not being updated in CRM. Do I have to trigger initial load again through R3AS or should I create new Customer Groups in CRM?
    The BP delta load BDocs are stuck in SMW01 due to this change. Also, if I need to do the Initial load of Customer Group, which object do I need to do the load for? Is it dnl_cust_sales?
    Please help as it is a Production issue.
    -- Pat

    Hi Pat,
    Use object 'DNL_CUST_SALES' to download Customer Group from R/3 to CRM.
    Use R3AS4 transaction to execute the same.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • 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

  • 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?

  • Unable to load your custom module provider's module-factory-class

    I am having a problem while I deploy my application. it gives me following error:
    Unable to load your custom module provider's module-factory-class com.bea.p13n.descriptor.module.ConfigModuleFactory
    Dont know how to resolve it. the class is in p13n_system.jar file, I have added that jar as a library in deployment but still it shows the same error.
    Added it in classpath as well but same error. (Dont know exactly how to add in class path, i have added just in "Start Server" tab's classpath)
    Any help will be greatly appreciated

    Below link might be helpful.
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=1049509&tstart=0
    Regards,
    Anandraj
    http://weblogic-wonders.com/

  • 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

    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

  • XML Loader action URL via global properties with no drive letter

    Trying to use the XML Loader action. If we hard code the URL as "c:\Inetpub\wwwroot\Camstar\Errors\logDetails.xml" it works fine. We want to use several global properties to construct the URL as follows.
    Resulting in:
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml.
    This does not work in the XML Loader action configuration but will work in IE every time. The XML Loader action throws the following errors.
    [ERROR]: Unable to complete requested action on XML document.
    10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml (Access is denied)
    [ERROR]: ACTION FAILED: End Action XmlLoader_LogDetails : ()
    Does anyone know how to resolve this issue?

    Tim,
    Ron is right about IE using the Microsoft magic of switching between Windows Explorer and Internet Explorer to locate the file.
    Your best bet would be to construct a true http formatted string such as:  http://localhost/Camstar/Errors/logDetails.xml
    This would of course be only good for files on the local server, but would also be very upgrade friendly for version 12.0 migration.  UNC paths would not work to other servers or network shares either.
    If the xml files are in the IllumDoc Rowsets/Rowset/Row format you could just as easily use and XMLQuery action block instead of the XMLLoader, which might make it easier you to use the [Param.x] tokens in the template, etc.
    Regards,
    Jeremy

  • Help needed to STOP xml loading

    Hi there,
    I'm pretty new to the action script side of things, have had some help on here already and have also been pulled up for asking for too much help.
    Well I'm kind of getting the hang of it now, but am having one major problem with the site I'm making, basically I've been following a tutorial for an xml based website, just about got my head round it but I need one line of code to stop the xml movie clip playing when I load a new one (eg when you navigate to a new page.
    this is the current code, if anyone can help I'd be massively thankful, this project has been doing my head in for weeks now - fingers crossed folks D
    // onLoad XML function
    function loadXML(success) {
    if (success) {
    // If the XML loads successfully, count how many projects there are in the file.
    _root.projectCount = this.firstChild.childNodes.length; // PROJECT node in XML file
    // Then run a function that builds arrays out of the XML data.
    SS_Arrays();
    } else {
    // If the xml data did not load, show message on stage by populating the description field.
    _root.description = "Error: Could not load XML";
    function SS_Arrays() {
    for (var count = 0; count < _root.projectCount; count++) {
    var nodeObj = objXML.firstChild.childNodes[count];
    namesArray[count] = nodeObj.attributes.name;
    descriptionsArray[count] = nodeObj.attributes.description;
    linksArray[count] = nodeObj.attributes.link;
    filesArray[count] = nodeObj.attributes.file;
    // run the function to create the thumbnail and list view buttons
    SS_createButtons();
    function SS_createButtons() {
    // First of all we want to hide the master button on the stage (btn_projects_main)
    // because we'll be making duplicates of it in the next part of the function
    _root.btn_projects_main._visible = 0;
    // Work out the X and Y positions of the main button so our new buttons start in the same place
    // (Which means where ever you position the main button is where the navigation will start).
    btn_xPos = _root.btn_projects_main._x;
    btn_yPos = _root.btn_projects_main._y;
    // Set the distances between your buttons and the number of rows
    btn_xDistance = 140;
    btn_yDistance = 19;
    btn_numOfRows = 5;
    // This figure is used to work out when to start a new column of buttons
    btn_yMax = btn_yPos + ((btn_numOfRows - 1) * btn_yDistance);
    // Loop through the projects array and create a button for each one by duplicating the original.
    for (count = 0; count < _root.projectCount; count++) {
    duplicateMovieClip(_root.btn_projects_main, "btn_projects" + count, count);
    // As the button is created, set it's X, Y & text properties
    _root["btn_projects" + count]._x = btn_xPos;
    _root["btn_projects" + count]._y = btn_yPos;
    _root["btn_projects" + count].text = namesArray[count];
    // set the X position for the next button
    if(btn_yPos == btn_yMax){
    // if the last buttons was the last row in the column (based on it's Y position) then start a new column
    // by resetting the Y position and adding 140px (btn_xDistance) to the the X position.
    btn_xPos = btn_xPos + btn_xDistance;
    btn_yPos = _root.btn_projects_main._y;
    } else {
    // if it's not the last one in a row, simply move it along the Y axis.
    btn_yPos = btn_yPos + btn_yDistance;
    // Load the first project (number 0) to avoid an empty screen
    SS_load_project(0);
    // Make the first project button highlighted
    tellTarget(_root.btn_projects0){
    gotoAndPlay(3);
    // Set the current button variable so we know which button to switch off when another one is pressed
    _root.curButton = "0";
    function SS_load_project(arrayNumber){

    Hi,
    In DBMS_JOBS_RUNNING you can find the sid of the session.
    Use this sid to identify the session in v$session and kill the session with:
    'alter system kill session 'sid,serial#';'
    Don't forget to mark the job as broken or remove it from the job queue.
    OR
    Before 10g, if you want to stop all jobs, you can simply set JOB_QUEUE_PROCESSES to zero.
    In 10g, Oracle intrduced scheduler_job with many advanced features.
    In this post I do not want to deal with different features of scheduler_jobs.
    In 10g, it is possible to schedule job either in dba_jobs or dba_scheduler_jobs.
    Setting JOB_QUEUE_PROCESSES to zero stops only jobs in dba_jobs which means that jobs in scheduler are still running .
    In order to disable jobs in dba_scheduler_job, the following script should be run for each job in scheduler.
    BEGIN
    sys.dbms_scheduler.disable( '"schema?"."job name?"' );
    END;
    Regards,
    Tom
    http://asktom.cz

  • Load of customer contact person

    HI all,
    I am trying to load the contact persons of customers with the BUS4002.
    According to the SAP descriptions and SAP notes (306275, 384462) the data should be load in the following sequence:
    1. load the adress-data with BUS4002 (Objekt = next parnr with BAPI_PARTNEREMPLOYEE_GETINTNUM)
    2. load the customer master data (with the no-data-sign, so that the fields where not overwritten)
    and there is my problem:
    When I put the no-data-sign '/' i.e. at the firstname, anyway the firstname from the adress data is empty now.
    And in the adress data it was filled. So are all the other fields from the adress data. (I see that in table ADRP)
    What's going wrong?
    Thanks for your help
    sylvie

    Hi Gred,
    From 6.0 onwards you can perform ELM on UI with the role Marketing Professional.
    You can Try this link. Link: [ELM|http://blogs.moovar.com/sap/sap-crm-external-list-management-elm-in-web-ic/|].
    hope this is helpful,
    Vijayata

  • XML Loaded Text Inconsistently Displays Apostrophe

    i have a number of dynamic text fields, all of which have
    text loaded from their respective xml files.
    one of the menu items includes an apostrophe. that apostrophe
    shows up in one area of the site but not in another where it is
    replaced by &apos; .
    these two sections are identical. both dynamic text boxes
    with xml loaded text. one works one doesn't.
    i've double checked everything. everything is embedded, i
    have no idea what the problem is.
    any ideas?
    if you want to see what i'm talking about go
    here and select WORK. JAMIES
    ORGANIC TREATS has no apostrophe because i took it out - it gets
    converted to &apos; in this location. but if you select JAMIES
    ORGANIC TREATS the name pops up in the new section correctly WITH
    the apostrophe.
    they are separate text fields with separate xml files but all
    of them are treated the same.
    Flash CS3 Flash Player 8 AS2
    Mac 10.5

    *SOLVED*
    i went back in and enabled html on the text box and changed
    all of the .text to .htmlTxt and it worked. also added the cdata
    tags.
    but any idea why the apostrophe works correctly in the other
    instance?

  • XML load limited to 20 child nodes? Why?

    I use the attached code to load the attached xml file, but it
    will only load the first 20 nodes. I have moved the 20th to the
    21st and the 21st up to the 20th and it will still load the first
    20, so it isn't a formatting problem.

    OK. The plot thickens. My onLoad continues to fire
    indefinitely, so I modified the following onLoad function to trace
    some info and I get the following in the output window.
    XML Status = 0
    XML Loaded = false
    Percent Loaded = 0 of 7966 bytes loaded
    XML Status = -9
    XML Loaded = true
    Percent Loaded = 7966 of 7966 bytes loaded
    XML Status = -9
    XML Loaded = true
    Percent Loaded = 7966 of 7966 bytes loaded
    xmlObject.onLoad = function (success){
    if (success){
    if (xmlObject.getBytesLoaded() == xmlObject.getBytesTotal())
    xmlLoaded = true;
    trace("XML Status = " + xmlObject.status);
    trace("XML Loaded = " + xmlObject.loaded);
    trace("Percent Loaded = " + xmlObject.getBytesLoaded() + "
    of " + xmlObject.getBytesTotal() + " bytes loaded");

Maybe you are looking for

  • Insert extra field in ALV report

    Hi All, I’ve requirement like … need to add Vendor’s ‘Country Code’ very next to ‘Tax code’ field in standard SAP standard ALV report S_ALR_87012357 . I’ve copied program (RFUMSV00) into z-program. But I’m not getting any idea how can I add extra fie

  • DB password on scripted JDBC adapter

    I am evaluating IDM 7.0 and tried to make a scripted JDBC Resource adapter based on the simple table example. I succeeded in testing the DB connection (Oracle 10.1 on Linux), but when I try to add the resource to an account, I get [codeThere was an e

  • CUCM Upgrade to 9.1.2.13900-10

    Dear Team, I am planning to upgrade CUCM  from 9.1.2.10000-28   to  UCSInstall_UCOS_9.1.2.13900-10.sgn . Please share with me the upgradation steps and documents  ? Thanks

  • I think I made a boo boo, I updated xorg and some others...

    And they broke KDE...in some sort of strange and bizarre way, KDE still works. Yet...I have no applications, I cannot open a single KDE specific application, such as the KMenu, or the Control Center. I should've stayed with the original version, I ba

  • Firefox has stopped working.

    Firefox recently crashed (because I had another program doing too much stuff). After restarting my computer I opened up Firefox and tried loading the tabs I had opened and it didn't work. It just kept loading but never loaded. I tried again to open f