ClassCastException on XmlLoader.load

I am making this call to load my document. The parse seems to happen ok. But
then...
TestsDocument doc =
( TestsDocument ) XmlLoader.parse ( pFile );
I get a classcastexception, the returned class is of type com.bea.xbean.values.XmlAnyTypeImpl
What am I doing wrong?

It actually turned out that when I used the factory inside of my document, everything
parses fine. If I use just the xmlloader, the exception is thrown.
"Jerald Pratt" <[email protected]> wrote:
>
Brian,
I had a similar problem and I'm trying to remember what it was. I believe
the
problem turned out to be with my XML file or XML Schema file and not
the code.
Not having a valid XML file and/or XML Schema file will cause a variety
of unexpected
problems. You should use a tool that will validate both types of XML
files before
running further tests. I use XML Spy from www.altova.com which works
great.
Jerald
"brian" <[email protected]> wrote:
I am making this call to load my document. The parse seems to happen
ok. But
then...
TestsDocument doc =
( TestsDocument ) XmlLoader.parse ( pFile );
I get a classcastexception, the returned class is of type com.bea.xbean.values.XmlAnyTypeImpl
What am I doing wrong?

Similar Messages

  • CLASSCASTEXCEPTION on page load

    I have been working on developing some extensions to a page in Oracle Sourcing. I get it to a point where I have a part working and then it all goes wrong and I get this error.
    Even if I back out all the changes this error wont go away. The only way I have found to get things going again is to totally delete the development tree and then build it up again from scratch.
    I just cant figure out what is causing this.
    Any ideas?

    Steps to re-produce ....
    1. Create a new workspace and project..
    2. Add in the server.xml files for the application pon.
    3. Also copy the pon java files to the myclasses directory.
    4. Create a jsp to call the sourcing home page. Run
    5. Get into the home page and can go to the create RFQ screen.
    6. Now create a new Business Component. Create a new VO that extends the VO
    oracle.apps.pon.negociation.creation.server.AuctionHeadersALLVO.
    Add the following to the query
    select ...
    lv.meaning TWG_REQUEST_TYPE,
    lv.lookup_code TWG_REQUEST_TYPE_CODE,
    MCK.CONCATENATED_SEGMENTS TWG_PRODUCT_HIERARCHY,
    AuctionHeadersALLEO.EXT_ATTRIBUTE2 TWG_PRODUCT_HIERARCHY_ID,
    AuctionHeadersALLEO.EXT_ATTRIBUTE3 TWG_BUYER_ID,
    pp.full_name TWG_BUYER_NAME
    from ....
    , MTL_CATEGORIES_KFV MCK
    , fnd_lookup_values_vl lv
    , per_people_x pp
    where ...
    AND AuctionHeadersALLEO.EXT_ATTRIBUTE2 = MCK.CATEGORY_ID
    AND lv.lookup_type = 'TWG_RFQ_REQ_TYPE'
    AND AuctionHeadersALLEO.EXT_ATTRIBUTE1 = lv.lookup_code
    AND AuctionHeadersALLEO.EXT_ATTRIBUTE3 = pp.person_id
    Generate the View Row Class
    Now create a subsitition for the existing AuctionHeadersALLVO with the new one
    (in the new Business Component).
    Finally go to the Project Settings and add the flag -Djbo.project=<ProjectName>
    to the java options.
    Now when you run the page you can still see the sourcing home but when you
    click on create RFQ you get the problem.

  • ClassCastException for Oracle9iJTSExternalTransactionController

    Hi,
    When trying to read my sessions.xml file (included below), I get a ClassCastException when it tries to load the oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController class. I'm working with Toplink 9.0.3 and OC4J 9.0.4, so I assumed this was the class to use. Has someone else experienced the same?
    Regards,
    Katarina
    session.xml
    <toplink-configuration>
         <session>
              <name>MacsyCoreSession</name>
              <project-xml>mapping-core_macsydev.xml</project-xml>
              <session-type>
                   <server-session/>
              </session-type>
              <login>
    <datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
                   <uses-external-transaction-controller>true</uses-external-transaction-controller>
                   <uses-external-connection-pool>true</uses-external-connection-pool>
              </login>
              <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
         </session>
    </toplink-configuration>

    I'm running it with JDK-1.4.1.
    The error message I get is:
    EXCEPTION DESCRIPTION: LOCAL EXCEPTION STACK:
    EXCEPTION DESCRIPTION: Several [1] SessionLoaderExceptions were thrown:
    EXCEPTION [TOPLINK-9003] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unable to process XML tag [external-transaction-controller-class] with value [oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController].
    INTERNAL EXCEPTION: java.lang.ClassCastException
         at oracle.toplink.exceptions.SessionLoaderException.finalException(Unknown Source)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
         at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
         at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
         at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
         at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:536)
    SessionLoaderExceptions:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-9003] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unable to process XML tag [external-transaction-controller-class] with value [oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController].
    INTERNAL EXCEPTION: java.lang.ClassCastException
         at oracle.toplink.exceptions.SessionLoaderException.failedToLoadTag(Unknown Source)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_external_transaction_controller_class_Tag(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(Unknown Source)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
         at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
         at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
         at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
         at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:536)
    INTERNAL EXCEPTION STACK:
    java.lang.ClassCastException
         at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.getTransactionManager(Unknown Source)
         at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at java.lang.Class.newInstance0(Class.java:306)
         at java.lang.Class.newInstance(Class.java:259)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_external_transaction_controller_class_Tag(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(Unknown Source)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unknown Source)
         at cern.macsy.persistence.PersistenceLayerFactory.instantiateSession(PersistenceLayerFactory.java:162)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:115)
         at cern.macsy.persistence.PersistenceLayerFactory.getPersistenceLayer(PersistenceLayerFactory.java:78)
         at cern.macsy.persistence.PersistenceQueries.executeSingleColumnQuery(PersistenceQueries.java:144)
         at cern.macsy.pm.controlimpl.GenerationDataControllerImpl.getRampTypeNames(GenerationDataControllerImpl.java:31)
         at cern.macsy.pm.ejb.beans.GenerationDataControllerBean.getRampTypeNames(GenerationDataControllerBean.java:99)
         at GenerationDataController_StatelessSessionBeanWrapper28.getRampTypeNames(GenerationDataController_StatelessSessionBeanWrapper28.java:87)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:536)
    Thanks in advance for any help,
    Katarina

  • How to specify SWF instead of an image in loading

    I hope it is not too much over my head as I would like to make it work. Some time ago I recieved help in constracting an interactive image thumb scroller using greensock features.
    My biggest problem at the moment is that I can not figure out how to change the code so the thumbs would bring up the swf files and not jpg files. In other words my small thumbnails are small jpg files (as they were intended to be), but my bigger visuals (the ones which are being brought by clicking on the small thumbnails) I would like to change to an swf file (as it contains its separate animation and additional set of buttons)
    Here is the original code I am trying to modify:
    [CODE]
    package {
    import com.greensock.TweenLite;
    import com.greensock.events.LoaderEvent;
    import com.greensock.loading.ImageLoader;
    import com.greensock.loading.LoaderMax;
    import com.greensock.loading.XMLLoader;
    import com.greensock.plugins.AutoAlphaPlugin;
    import com.greensock.plugins.ColorTransformPlugin;
    import com.greensock.plugins.GlowFilterPlugin;
    import com.greensock.plugins.TweenPlugin;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    public class SlideshowExample extends MovieClip {
      private static const _THUMB_WIDTH:Number = 100;
      private static const _THUMB_HEIGHT:Number = 64;
      private static const _IMAGE_WIDTH:Number = 550;
      private static const _IMAGE_HEIGHT:Number = 355;
      private static const _THUMB_GAP:Number = 4;
      private static const _SCROLL_SPEED:Number = 12;
      private static const _SCROLL_AREA:Number = 150;
      private var _progressBar:MovieClip;
      private var _arrowLeft:MovieClip;
      private var _arrowRight:MovieClip;
      private var _slides:Array;
      private var _curSlide:Slide; //Slide that is currently displaying
      private var _loadingSlide:Slide; //only used when a Slide is supposed to show but hasn't been fully loaded yet (like if the user clicks "next" many times before all the images have loaded). We keep track of the one that's in the process of loading and should be shown as soon as it finishes, then we set _loadingSlide back to null.
      private var _imagesContainer:Sprite; //the Sprite into which the full-size images are placed (this helps manage the stacking order so that the images can always be behind everything else and yet we can addChild() each image so that it shows up on top of the previous one)
      private var _thumbnailsContainer:Sprite; //the Sprite into which the thumbnail images are placed. This also allows us to slide them all at the same time.
      private var _destScrollX:Number = 0; //destination x value for the _thumbnailsContainer which is used for scrolling it across the bottom. We don't want to use _thumbnailsContainer.x because it could be in the process of tweening, so we keep track of the end/destination value and add/subtract from it when creating our tweens.
      private var _minScrollX:Number; //we know the maximum x value for _thumbnailsContainer is 0, but the mimimum value will depend on how many thumbnail images it contains (the total width). We calculate it in the _setupThumbnails() method and store it here for easier/faster scrolling calculations in the _enterFrameHandler()
      public function SlideshowExample() {
       super();
       //activate the plugins that we'll be using so that TweenLite can tween special properties like filters, colorTransform, and do autoAlpha fades.
       TweenPlugin.activate([AutoAlphaPlugin, ColorTransformPlugin, GlowFilterPlugin]);
       _progressBar = this.getChildByName("progress_mc") as MovieClip;
       _arrowLeft = this.getChildByName("arrowLeft_mc") as MovieClip;
       _arrowRight = this.getChildByName("arrowRight_mc") as MovieClip;
       _arrowLeft.visible = _arrowRight.visible = false;
       _imagesContainer = new Sprite();
       this.addChildAt(_imagesContainer, 0);
       _thumbnailsContainer = new Sprite();
       addChild(_thumbnailsContainer);
       _thumbnailsContainer.y = _IMAGE_HEIGHT;
       _thumbnailsContainer.alpha = 0; //we want alpha 0 initially because we'll fade it in later when the thumbnails load.
       _thumbnailsContainer.visible = false; //ensures nothing is clickable.
       var xmlLoader:XMLLoader = new XMLLoader("assets/data.xml", {onComplete:_xmlCompleteHandler});
       xmlLoader.load();
      private function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("assets/thumbnails/" + image.@name + ".jpg", {name:image.@name + "Thumb", width:_THUMB_WIDTH, height:_THUMB_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:13000, onFail:_imageFailHandler}),
              new ImageLoader("assets/images/" + image.@name + ".jpg", {name:image.@name + "Image", width:_IMAGE_WIDTH, height:_IMAGE_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:820000, onFail:_imageFailHandler})
       //now create a LoaderMax queue and populate it with all the thumbnail ImageLoaders as well as the very first full-size ImageLoader. We don't want to show anything until the thumbnails are done loading as well as the first full-size one. After that, we'll create another LoaderMax queue containing the rest of the full-size images that will load silently in the background.
       var initialLoadQueue:LoaderMax = new LoaderMax({onComplete:_initialLoadComplete, onProgress:_progressHandler});
       for (var i:int = 0; i < _slides.length; i++) {
        initialLoadQueue.append( _slides[i].thumbnailLoader );
       initialLoadQueue.append(_slides[0].imageLoader); //make sure the very first full-sized image is loaded initially too.
       initialLoadQueue.load();
       _setupThumbnails();
      private function _initialLoadComplete(event:LoaderEvent):void {
       //now that the initial load is complete, fade out the progressBar. autoAlpha will automatically set visible to false once alpha hits 0.
       TweenLite.to(_progressBar, 0.5, {autoAlpha:0});
       //fade in the thumbnails container
       TweenLite.to(_thumbnailsContainer, 1, {autoAlpha:1});
       _setupArrows();
       //setup the ENTER_FRAME listeners that controls the thumbnail scrolling behavior at the bottom
       this.stage.addEventListener(Event.ENTER_FRAME, _enterFrameHandler, false, 0, true);
       //now put all the remaining images into a LoaderMax queue that will load them one-at-a-time in the background in the proper order. This can greatly improve the user's experience compared to loading them on demand which forces the user to wait while the next image loads.
       var imagesQueue:LoaderMax = new LoaderMax({maxConnections:1});
       for (var i:int = 1; i < _slides.length; i++) {
        imagesQueue.append( _slides[i].imageLoader );
       imagesQueue.load();
       //now start the slideshow
       _showNext(null);
      //loops through all the thumbnail images and places them in the proper order across the bottom of the screen and adds CLICK_THUMBNAIL listeners.
      private function _setupThumbnails():void { 
       var l:int = _slides.length;
       var curX:Number = _THUMB_GAP;
       for (var i:int = 0; i < l; i++) {
        var thumbnail:Sprite = _slides[i].thumbnail;
        _thumbnailsContainer.addChild(thumbnail);
        TweenLite.to(thumbnail, 0, {colorTransform:{brightness:0.5}});
        _slides[i].addEventListener(Slide.CLICK_THUMBNAIL, _clickThumbnailHandler, false, 0, true);
        thumbnail.x = curX;
        thumbnail.y = 4;
        curX += _THUMB_WIDTH + _THUMB_GAP;
       _minScrollX = _IMAGE_WIDTH - curX;
       if (_minScrollX > 0) {
        _minScrollX = 0;
      private function _setupArrows():void {
       _arrowLeft.alpha = _arrowRight.alpha = 0;
       _arrowLeft.visible = _arrowRight.visible = true;
       _arrowLeft.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
       _arrowLeft.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
       _arrowLeft.addEventListener(MouseEvent.CLICK, _showPrevious, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.CLICK, _showNext, false, 0, true);
      private function _showNext(event:Event=null):void {
       //if there's a _loadingSlide we should assume that the next Slide would be AFTER that one. Otherwise just get the one after the _curSlide.
       var next:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) + 1 : _slides.indexOf(_curSlide) + 1;
       if (next >= _slides.length) {
        next = 0;
       _requestSlide(_slides[next]);
      private function _showPrevious(event:Event=null):void {
       //if there's a _loadingSlide we should assume that the previous Slide would be BEFORE that one. Otherwise just get the one before the _curSlide.
       var prev:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) - 1 : _slides.indexOf(_curSlide) - 1;
       if (prev < 0) {
        prev = _slides.length - 1;
       _requestSlide(_slides[prev]);
      private function _requestSlide(slide:Slide):void {
       if (slide == _curSlide) {
        return;
       //kill the delayed calls to _showNext so that we start over again with a 5-second wait time.
       TweenLite.killTweensOf(_showNext);
       if (_loadingSlide != null) {
        _cancelPrioritizedSlide(); //the user must have skipped to another Slide and didn't want to wait for the one that was loading.
       //if the requested Slide's full-sized image hasn't loaded yet, we need to show the progress bar and wait for it to load.
       if (slide.imageLoader.progress != 1) {
        _prioritizeSlide(slide);
        return;
       //fade the old Slide and make sure it's not highlighted anymore as the current Slide.
       if (_curSlide != null) {
        TweenLite.to(_curSlide.image, 0.5, {autoAlpha:0});
        _curSlide.setShowingStatus(false);
       _curSlide = slide;
       _imagesContainer.addChild(_curSlide.image); //ensures the image is at the top of the stacking order inside the _imagesContainer
       TweenLite.to(_curSlide.image, 0.5, {autoAlpha:1}); //fade the image in and make sure visible is true.
       _curSlide.setShowingStatus(true); //adds an outline to the image indicating that it's the currently showing Slide.
       TweenLite.delayedCall(5, _showNext); //create a delayedCall that will call _showNext in 5 seconds.
      private function _prioritizeSlide(slide:Slide):void {
       TweenLite.to(_progressBar, 0.5, {autoAlpha:1}); //show the progress bar
       _loadingSlide = slide;
       _loadingSlide.imageLoader.addEventListener(LoaderEvent.PROGRESS, _progressHandler);
       _loadingSlide.imageLoader.addEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
       _loadingSlide.imageLoader.prioritize(true); //when the loader is prioritized, it will jump to the top of any LoaderMax queues that it belongs to, so if another loader is in the process of loading in that queue, it will be canceled and this new one will take over which maximizes bandwidth utilization. Once the _loadingSlide is done loading, the LoaderMax queue(s) will continue loading the rest of their images normally.
      private function _cancelPrioritizedSlide():void {
       TweenLite.to(_progressBar, 0.5, {autoAlpha:0}); //hide the progress bar
       _loadingSlide.imageLoader.removeEventListener(LoaderEvent.PROGRESS, _progressHandler);
       _loadingSlide.imageLoader.removeEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
       _loadingSlide = null;
      private function _completePrioritizedHandler(event:LoaderEvent):void {
       var next:Slide = _loadingSlide; //store it in a local variable first because _cancelPrioritizedSlide() will set _loadingSlide to null.
       _cancelPrioritizedSlide();
       _requestSlide(next);
      private function _progressHandler(event:LoaderEvent):void {
       _progressBar.progressBar_mc.scaleX = event.target.progress;
      private function _clickThumbnailHandler(event:Event):void {
       _requestSlide(event.target as Slide);
      private function _rollOverArrowHandler(event:Event):void {
       TweenLite.to(event.currentTarget, 0.5, {alpha:1});
      private function _rollOutArrowHandler(event:Event):void {
       TweenLite.to(event.currentTarget, 0.5, {alpha:0});
      private function _enterFrameHandler(event:Event):void {
       if (_thumbnailsContainer.hitTestPoint(this.stage.mouseX, this.stage.mouseY, false)) {
        if (this.mouseX < _SCROLL_AREA) {
         _destScrollX += ((_SCROLL_AREA - this.mouseX) / _SCROLL_AREA) * _SCROLL_SPEED;
         if (_destScrollX > 0) {
          _destScrollX = 0;
         TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
        } else if (this.mouseX > _IMAGE_WIDTH - _SCROLL_AREA) {
         _destScrollX -= ((this.mouseX - (_IMAGE_WIDTH - _SCROLL_AREA)) / _SCROLL_AREA) * _SCROLL_SPEED;
         if (_destScrollX < _minScrollX) {
          _destScrollX = _minScrollX;
         TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
      //if an image fails to load properly, remove it from the slideshow completely including its thumbnail at the bottom.
      private function _imageFailHandler(event:LoaderEvent):void {
       var slide:Slide;
       var i:int = _slides.length;
       while (--i > -1) {
        slide = _slides[i];
        if (event.target == slide.thumbnailLoader || event.target == slide.imageLoader) {
         slide.dispose();
         _slides.splice(i, 1);
         _setupThumbnails();
         return;
    [/CODE]
    I could figure out that I have to change the line
    [CODE]
    new ImageLoader("assets/images/" + image.@name + ".jpg", {name:image.@name + "Image", width:_IMAGE_WIDTH, height:_IMAGE_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:820000, onFail:_imageFailHandler}
    [/CODE]
    and instead of ".jpg" put ".swf" (making sure that the names of the files are identical except for their extensions)
    The problem is that I get an error message in the output that flash could not convert my swf file to the bitmap.
    I suspect that I have to change the hard coding to specify that Loader Max should treat loading bigger swf files as swf and not as image/jpg files.
    I don't have enough expertise to decipher all the lines where this has to be changed.
    It feels that I am close to accomplishing what I need. Is it possible to point out where this change has to take place?
    Here is my thought process:
    I don't need to specify SWFLoader as LoaderMax is already specified (line 5)
    I don't need to change anything in lines 31-34 as "Sprite" and "Slide" could be an .swf file (line31-34)
    I don't need to change anything in line 50 for the same reason (line 50)
    I don't need to change lines 66 and 68 as image list may contain swf files (line 66 and 68)
    I do need to change ".jpg" to ".swf" in line 72 (line 72)
    No sure if there are any changes in line 82 (line 82)
    LoaderMax has var as imagesQueue does that need to be changed into SFWLoader? (lines98-102)
    I don't think anything need to be changed in lines 138-173 as " Slide" can incorporate an SWF file (lines 138-173)
    Not sure if there has to be a change in lines 175-177 as it specifies that slide is an image (lines 175-177)
    Not sure if there has to be a change in lines 182-200 from imageLoager to SWFLoader (lines 182-200)
    Not sure if there has to be a change in lines 239-245 in specifying SWFLoader (lines 239-245)
    I am attaching the .xml and .as documents as well

    This was my very first step.
    The problem is that I get an error message in the output that flash could not convert my swf file to the bitmap.
    I suspect that I have to change the hard coding to specify that Loader Max should treat loading bigger swf files as swf and not as image/jpg files.
    I don't have enough expertise to decipher all the lines where this has to be changed.
    It feels that I am close to accomplishing what I need. Is it possible to point out where this change has to take place?
    Just in case here is my xml code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <data>
              <image name="agencynet" description="agencynet description text goes here." />
              <image name="buick" description="buick description text goes here." />
              <image name="cocacola" description="cocacola description text goes here." />
              <image name="cu3er" description="cu3er description text goes here." />
              <image name="diva" description="diva description text goes here." />
              <image name="dow" description="dow description text goes here." />
              <image name="erkyperky" description="erkyperky description text goes here." />
              <image name="flexa" description="flexa description text goes here." />
              <image name="happyplanetshots" description="happyplanetshots description text goes here." />
              <image name="holdencruze" description="holdencruze description text goes here." />
              <image name="ironman" description="ironman description text goes here." />
              <image name="mercedes" description="mercedes description text goes here." />
              <image name="micromaniac" description="micromaniac description text goes here." />
              <image name="overtheatlantic" description="overtheatlantic description text goes here." />
              <image name="saab" description="saab description text goes here." />
              <image name="silverpistol" description="silverpistol description text goes here." />
              <image name="softse" description="softse description text goes here." />
              <image name="target" description="target description text goes here." />
              <image name="tonydorio" description="tonydorio description text goes here." />
              <image name="prius" description="prius description text goes here." />
              <image name="waterlife" description="waterlife description text goes here." />
    </data>

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

  • How to select variable filename from local directory with fn to load xml

    I would like to select a specific xml file to load from a local directory. The file name is composed of “Title” + “number sequence”.  I know the Title (in this case its XLink07), but I need to select the latest number sequence or the latest by date stamp.
    For example, the local directory has the following files:
    XLink01[36735298100].xml
    XLink02[36735298100].xml
    XLink02[36735298101].xml
    XLink07[36735298100].xml
    XLink07[36735298101].xml
    In this example I need to select file XLink07[XXXXXXXXXXX].xml where XXXXXXXXXXX is the highest number within the XLink07[XXXXXXXXXXX].xml files.  Title is Xlink07 and function should return Number sequence [36735298101]. Files with higher number sequence have later date stamps than files with lower number sequences. I need to select the highest number or the latest date stamp for the file that begins with XLink07….
    My action script to load the local .xml file without any function to select the correct file is:
    Security.allowDomain("*", "*")
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("XLink07[36735298101].xml"));
    xmlLoader.addEventListener(Event.COMPLETE, showXML);
    function showXML(e:Event):void {
    XML.ignoreWhitespace = true;
    var Innards:XML = new XML(e.target.data);
    tweet_name.text = Innards.XLink01[0].screen_name;
    tweet_1.text = Innards.XLink01[0].text;
    tweet_date.text = Innards.XLink01[0].created_at;
    Thanks for the help if anyone can script that function for me if its possible.

    If you develop for Flash browser plugin (not AIR), there is no way to read directories.

  • Loading swf with XML on Click

    Hi all, can anyone help
    can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
    on a click event, do I use in the XML file the <link>link to swf</link>   ????
    this is what I have in my xml file that loads in the images so far;
    <image name="image 12" path="img/img12.jpg"
    title="Lorem ipsum 12"
    text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
    what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
    this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
    // Use URLLoader to load XML
    xmlLoader = new URLLoader();
    xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    // Listen for the complete event
    xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
    xmlLoader.load(new URLRequest("data.xml")); 
    stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
    //———————————————EVENT HANDLERS
    private function onXMLComplete(event:Event):void
    // Create an XML Object from loaded data
    var data:XML = new XML(xmlLoader.data);
    // Now we can parse it
    var images:XMLList = data.image;
    for(var i:int = 0; i < images.length(); i++)
    // Get info from XML node
    var imageName:String = images[i].@name;
    var imagePath:String = images[i].@path;
    var titles:String = images[i].@title;
    var texts:String = images[i].@text;
    // Load images using standard Loader
    var loader:Loader = new Loader();
    // Listen for complete so we can center the image
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
    loader.load(new URLRequest(imagePath));
    // Create a container for the loader (image)
    var holder:MovieClip = new MovieClip();
    holder.addChild(loader);
    var button_main:Button_mr = new Button_mr();   /
    holder.addChild(button_main);               
    var tooltip:ToolTip = new ToolTip();
    tooltip.field.text = titles;  //loads tooltip 1
    tooltip.field2.text = texts;  //loads tool tip 2
    tooltip.x = -350; 
    tooltip.y = 0;   
    holder.addChild(tooltip);
    // Same proceedure as before
    holder.buttonMode = true;
    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
    // Add it to the menu
    circleMenu.addChild(holder);
    many thanks for any help!!!!

    1. Be sure in main.swf there is no masking or layering hiding
    the reflection area. A way to test quickly is to load in a plain
    master swf that is much larger than the externals swf.
    2. Know the weakness of loadMovie for timing issues that
    require the external movie to be fully loaded before actions are
    taken on it. I see a bunch of these in the code you posted. Best to
    use
    MovieClipLoader.onLoadInit
    before you attempt to access the external swf properties or code or
    add code.
    3. Be sure the code is firing on load and all objects are
    created. Add some trace statements for those objects.
    4. I noticed you do not use BitmapData so this may not be
    relevant but be sure to add
    System.security.allowDomain("*");
    to the main.swf as well as in external swfs and only if you
    are using the BitmapData class.
    5. As I started to look at the code a bit and noticed this
    item:
    There is no constructor for the Flash MovieClip class. You
    will not see a compiler error message because you do not have the
    code wrapped into a class.
    var home:MovieClip = new MovieClip();
    However it does not have impact on the code.
    better would be
    var home:MovieClip;

  • Sending variable value from php to flash to load an xml file

    I would like to load an XML file from the location locally or on the server being unaware of the name of the file. I am using PHP for sending the filename to Flash.
    The below is the PHP code:
    <?php
    filesInDir('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');
    function filesInDir($tdir)
            $dirs = scandir($tdir);
            foreach($dirs as $file)
                    if (($file == '.')||($file == '..'))
                    elseif (is_dir($tdir.'/'.$file))
                            filesInDir($tdir.'/'.$file);
                    else
                            echo "fileName=$file";
    ?>
    And below is the loading Actionscript code:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    xmlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    xmlLoader.load(new URLRequest(phpFile));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              trace(evt.target.data.fileName);
              //cons_xml = new XML(evt.target.data.fileName);
              //gotoAndPlay(2);
    When I trace the evt.target.data it displays "fileName=mainOpenEndedXML%2Exml" and when I trace evt.target.data.fileName the fileName is properly displayed as "mainOpenEndedXML.xml".
    But in the next two lines where the loading occurs it does not load the file i.e the swf file from xml doesn't play.
    I have been searching the Internet for answers but not able to find any solutions.
    The loading works properly if i directly insert the xml file in the code and the swf's in the XML file play propertly. The below is the code for the same:
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    var cons_xml:XML;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("mainOpenEndedXML.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);
    Any help on this would be greatly appreciated

    Yes. you already said that, but I guess you don't understand what I said.  You are loading the PHP fle to get the filename, but nowhere are you taking that filename and loading the file that was named. 
    You need to do two loading operations.  The first one to get the filename, and the second to load the file with that name.  Maybe if you name the PHP file loader phpLoader instead of xmlLoader it will start to make more sense to you.  Something like the following...
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.net.URLVariables;
    stop();
    // Define the PHP file to be loaded
    var phpFile:String = "http://localhost/webassist/test.php";
    var phpLoader:URLLoader = new URLLoader();
    // Specify dataFormat property of the URLLoader to be "VARIABLES"
    // This ensures variables loaded into Flash with same variable names
    phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    phpLoader.load(new URLRequest(phpFile));
    phpLoader.addEventListener(Event.COMPLETE, processPHP);
    function processPHP(evt:Event):void
             var xmlLoader:URLLoader = new URLLoader();
             xmlLoader.load(new URLRequest(String(evt.target.data.fileName)));
             xmlLoader.addEventListener(Event.COMPLETE, processXML);
    var cons_xml:XML;
    function processXML(evt:Event):void
              cons_xml = new XML(evt.target.data);
              gotoAndPlay(2);

  • Loading only last image

    This code is loading the xml correctly, populating the mainClipArray correctly, but only adding the last image to the stage.
    I think it is not waiting for completeClipLoad() to complete.  I tried removing :void from the function to see if waiting for a return would do it, but no luck.
    Any ideas?
    CODE:
    var myXML:XML;
    var xmlLoader:URLLoader = new URLLoader();
    var mainClipArray:Array = [];
    var counter:int = 0;
    var myLoader:Loader = new Loader();
    xmlLoader.load(new URLRequest("portfolio.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, completeXMLLoad);
    function completeXMLLoad(e:Event):void{
        myXML = XML(e.target.data);
        var len:int = myXML.portfolio.unit.length();
        for(var i:int = 0; i<len; i++){
            counter = i;
            mainClipArray[i] = new pane();
            //Load small image
            var smallfilename = myXML.portfolio.unit[i].small.filename;
            myLoader.load(new URLRequest(smallfilename));
            myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeClipLoad);
            mainClipArray[i].x = i * 15;
            addChild(mainClipArray[i]);
    function completeClipLoad(e:Event):void{
        trace("made it in");
        mainClipArray[counter].addChild(myLoader);
        trace("added child");

    Delaying the progress isn't going to help if you still have only one loader.  I would say that you could move the var myLoader:Loader = new Loader(); line inside the loop so that you have a new loader instance for each loading occurence, but then you would also need to adjust the completeClipLoad function to use the event target (e.target) instead of "myLoader".  But that still wouldn't resolve matters completely because you have that counter variable that will be working as fast as the for loop, with the loop likely finishing before the first item gets loaded... and since your completeClipLoad also makes use of that variable, you'll end up with only the last pane object being used.
    If you want to control the order of loading and retain the code in the one place (the other suggestion offered above having the code inside the pane could also be a viable approach), then a better strategy is to to use a programmed loop rather than a for loop, where only one loading occurs at a time and the completion of one loading triggers the next to begin.  Something like (this is just an outline form)...
    counter = 0;
    imgArray;
    function completeXMLLoad(e:Event):void{
         ... // process all the xml into the imgAray
        loadSmallImage(); // start by loading the first image only
    function loadSmallImage(){
         // create loader instance
         // assign load complete listener
         // load imgArray[counter]
    function loadComplete(e:Event) {
         // process the loaded image in a new pane
         // increment counter
         // if counter is < imgArray.length -> loadSmallImage();

  • Adding "loading" movieclip to dynamic image gallery?

    Hello again,
    I've completed my XML-driven image gallery, however upon live testing I'd realized I made a rookie mistake and not put some kind of placeholder "loading" movie clip loop while the thumbnails—and subsequent full-size images—are being loaded. The images will randomly appear when loaded and I would like to be able to insert a placeholder movie clip while they load, and swap them up with the thumbnails/images after it has been loaded. The placeholder movie clip is in my library (loadingLoop), but I'm having problems getting it to work correctly.
    Below is the original function that processes the XML and adds the thumbnail images; this is where I'm trying to insert the placeholder movie clip per XML child node (every attempt I've made just keeps throwing more errors, so I've omitted my attempts to avoid confusion), and I've attached the XML file for testing. And insight or help would be appreciated.
    //Locate the external XML file and trigger xmlLoaded when complete
    xmlLoader.load(new URLRequest("data/artGallery.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    //Load the XML and process the image locations
    function xmlLoaded(event:Event):void {
        xml = XML(event.target.data);
        //parse the nodes in the XML file
        xmlList = xml.children();
        //count the number of nodes in the XML file via XMLList
        trace(xmlList.length());
        //loop to load all of the thumbnails, based on the number of nodes in XMLList
        //"i" = every child node in the XML file
        for (var i:int = 0; i < xmlList.length(); i++) {
            //Add loadingLoop movie clip per node and wait for thumnail to load before swapping out with imageLoader thumbnail images <-- help!!
            //for every node, create a new instance to be put on stage
            imageLoader = new Loader();
            //load each thumbnail from its location per XML node's "thumb" attribute
            imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
            //position of thumbnail instances per XML node (horizontally across stage)
            imageLoader.x = i * 110 + 10;//thumbs are 100 x 100 so, +10 to the width, plus +10 from left edge
            //imageLoader.y = 10;
            //for each node in XML list, name the instance with the path to the location of the full size image
            imageLoader.name = xmlList[i].attribute("source");
            //for each node in the XML list, add a drop shadow
            imageLoader.filters = [thumbDShadow];
            //add thumbnails to stage
            addChild(imageLoader);
            dropTween = new Tween(imageLoader, "y", Bounce.easeOut, -100, 10, 1, true);
            //set up thumbnails to wait for a click to execute showPicture
            imageLoader.addEventListener(MouseEvent.CLICK, showPicture);
            //set up thumbnails to scale when rolled over
            imageLoader.addEventListener(MouseEvent.ROLL_OVER, sizeUP);

    Somehow I had a feeling this wouldn't be a copy-and-paste job for the full-size images. Sorry to be a bother. This is the showPicture function that is fired off when the thumbnail image is clicked (from our previous example). Two errors are thrown:
    When the thumnail is clicked:
    "Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/removeChild()
        at MethodInfo-51()"
    But the full-size image loads nonetheless. The second loading loop (loadingLoop2) is not removed. Below is the showPicture function:
    //Load the full-size images and place onto the stage
    function showPicture(event:MouseEvent):void {
        //add new movie clip container
        var mc2:MovieClip = new MovieClip();
        addChild(mc2);
        //clear the fullLoader—this is to help clear any full-size images that may already be on the stage (they have two options, click a new thumbnail, or close the current full-size image
        fullLoader.unload();
        //re-create the fullLoader, if there was one cleared
        fullLoader = new Loader();
        //load each full size image from its location per XML node's "source" deliniated by mc.ldr's "source" attribute
        fullLoader.load(new URLRequest(event.target.name));
        //add the loder to the container
        mc2.addChild(fullLoader);
        //create new instance of second loading loop
        mc2.fsloop = new loadingLoop2();
        //add the second loading loop to the container
        mc2.addChild(mc2.fsloop);
        //for each container, add a drop shadow
        mc2.filters = [fullDShadow];
        //set the container's position center on stage, making it the size of the loading loop until the full-size images are loaded
        mc2.x = (stage.stageWidth - mc2.fsloop.width) * 0.5;
        mc2.y = (stage.stageHeight - mc2.fsloop.height) * 0.5;
        //place container on stage
        addChild(mc2);
        //fade in each container
        fadeTween = new Tween(mc2, "alpha", None.easeNone, 0, 1, 0.5, true);
        //check to see if the image has been loaded completely—this is to make sure the image's attributes can be used to re-center on stage and remove fsloop
        fullLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, removeLoop2);
        //set field to multiline so that the <br> HTML tags can be used
        imageTextField.multiline = true;
        //add text frame for description
        imageTextField.x = 10;
        imageTextField.y = 125;
        //for each full-size image, load the description text from the XML child nodes
        for (var j:int = 0; j < xmlList.length(); j++) {
            //check to make sure that the correct full-size image matches the text node when clicked
            if (xmlList[j].attribute("source") == event.target.name) {
                //add each child node as a separate line in the same text field; added HTML tags for CSS application
                imageTextField.htmlText = "<p><span class = 'projectName'>" + xmlList[j].child("projectName") + "</span><br>"
                + "<span class = 'toolsUsed'>" + xmlList[j].child("toolsUsed") + "</span><br><br>"
                + xmlList[j].child("projText") + "<br>"
                + "<span class = 'liveURL'>" + xmlList[j].child("liveURL") + "</span></p>";
        function removeLoop2(event:Event):void {
            //re-position the container to center on stage to accomodating the full sized image
            mc2.x = (stage.stageWidth - fullLoader.width) * 0.5;
            mc2.y = (stage.stageHeight - fullLoader.height) * 0.5;
            //Add the text field
            addText();
            //hide instructional text, already on stage
            galleryInfo_mc.alpha = 0;
            //remove the full-sized loading loop
            event.target.loader.parent.removeChild(MovieClip(event.target.loader.parent).loadingLoop2 );
        //set up full-size images to "self close" by clicking on it
        mc2.addEventListener(MouseEvent.CLICK, clearStage);
    The second error gets thrown when the container is clicked and the function clearStage is executed, which does not remove the container:
    "TypeError: Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/removeChild()
        at artGallery_v1_5_fla::MainTimeline/clearStage()"
    This is the clearStage function:
    //Allow full-size image to "self close" by clikcing on it and removing the text description
    function clearStage(event:MouseEvent):void {
        //clear the fullLoader
        fullLoader.unload();
        //remove the container
        event.target.parent.removeChild(MovieClip(event.target.parent).mc2);
       //remove the text field
        removeChild(imageTextField);
        //show the instructional text that is on-stage
        galleryInfo_mc.alpha = 1;
    Help!

  • Dynamically Load Thumbnails To Horizontal Movieclip?

    I'd like to dynamically load thumbnails into a horizontal movieclip at the bottom of an image gallery to then allow me to load an image by clicking the thumbnails. I found a tutorial to help me load the thumbnails to the stage but I am not sure how to load them into the thumbs movieclip. Here is the code I am using:
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xml/murals.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event):void
        xml = XML(event.target.data);
        xmlList = xml.children();
        for(var i:int = 0; i < xmlList.length(); i++)
            imageLoader = new Loader();
            imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));
            imageLoader.x = i * 175 + 25;     // <----- Also, I don't seem to understand how to space the thumbnails using this code.
            imageLoader.y = 5;
            addChild(imageLoader);
    Thanks in advance!
    -Dan

    I wasn't sure if I should make a new discussion for this or not so I'm just going to post it here.
    Alright. I finally found a tutorial that works for what I am trying to do. The thumbs load on a grid and when I click on the thumb they load in the loader. Now I am having trouble removing them. The tutorial has the remove function on the loaded large image so when you click that it removes itself. I would like so that when you click on the a thumb the current image will unload and the thumb that is clicked on will load but can't figure out how to get it to do that. I figured I'd just add a CLICK listener for the "removeFull" function to the "callFull" function but I think it cancels itself out.
    Here is the code I am using: (the code to load and unload is toward the bottom)
    stop();
    var columns:Number = 2;
    var my_x:Number = 25;
    var my_y:Number = 75;
    var my_thumb_width:Number = 65;
    var my_thumb_height:Number = 65;
    var my_images:XMLList;
    var my_total:Number;
    var container_mc:MovieClip;
    var x_counter:Number = 0;
    var y_counter:Number = 0;
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("xml/gallery.xml"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML (e:Event):void{
        var myXML:XML = new XML(e.target.data);
        my_images = myXML.IMAGE;
        my_total = my_images.length();
        createContainer();
        callThumbs();
    function createContainer():void{
        container_mc = new MovieClip();
        container_mc.x = my_x;
        container_mc.y = my_y;
        addChild(container_mc);
    //The large image loads when the thumb is clicked on.
        container_mc.addEventListener(MouseEvent.CLICK, callFull);
        container_mc.buttonMode = true;
    function callThumbs():void{
        for (var i:Number = 0; i < my_total; i++){
            var thumb_url = my_images[i].@THUMB;;
            var thumb_loader = new Loader();
            thumb_loader.load(new URLRequest(thumb_url));
            thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
            thumb_loader.name = i;
            thumb_loader.x = (my_thumb_width+25)*x_counter;
            thumb_loader.y = (my_thumb_height+25)*y_counter;
            if (x_counter+1 < columns){
                x_counter++;
            } else {
                x_counter = 0;
                y_counter++;
    function thumbLoaded(e:Event):void{
        var my_thumb:Loader = Loader(e.target.loader);
        container_mc.addChild(my_thumb);
    //This function loads the large image.
    function callFull(e:MouseEvent):void{
        var full_loader:Loader = new Loader();
        var full_url = my_images[e.target.name].@FULL;
        full_loader.load(new URLRequest(full_url));
        full_loader.contentLoaderInfo.addEventListener(Event.INIT, fullLoaded);
    //This function centers the large image in the gallery loader.
    function fullLoaded(e:Event):void{
        var my_loader:Loader = Loader(e.target.loader);
        MovieClip(parent.parent).gallery.addChild(my_loader);
        my_loader.x = (MovieClip(parent.parent).gallery.width - my_loader.width)/2;
        my_loader.y = (MovieClip(parent.parent).gallery.height - my_loader.height)/2;
    //The large image unloads when it is clicked on.
        my_loader.addEventListener(MouseEvent.CLICK,removeFull);
    //This function removes the loaded image from the gallery loader.
    function removeFull(e:MouseEvent):void{
        var my_loader:Loader = Loader (e.currentTarget);
        my_loader.unload();
        removeChild(my_loader);

  • Slideshow loading in one frame, not loading in another

    I have two separate slideshows in my document. The slideshow on frame 1 uses  ixia_works.xml, the slideshow on frame 5 uses ixia_windows.xml.  wrote all of my slideshow code on frame 1 and created a variable to hold the xml file.  On frame 5 I assigned the new value of the variable. The slideshow on frame 1 works perfectly; the slideshow on frame 5 won't even load. Where did I go wrong?
    Code on frame 1:
    //in order to work with tweens, necessary to import tween classes
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    stop();
    //if it doesn't exist, make it, else unload it (coming from other frames)
    if (!imgLoader) {
        var imgLoader:Loader;
    } else {
        imgLoader.unload();
    var fadeTween:Tween;
    var xmlRequest:URLRequest = new URLRequest("ixia_works.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var whichImg:String;
    var imgNum:Number = 0;
    var totalPics:Number;
    var isFirst:Boolean = true;
    var myTimer:Timer = new Timer(200);
    //when xml is loaded, start timer, run the checker
    function xmlLoaded(event:Event):void {
        myTimer.start();
        myTimer.addEventListener(TimerEvent.TIMER, checker);
        imgData = new XML(event.target.data);
    //loads image
    function showPic():void{
        myTimer.removeEventListener(TimerEvent.TIMER, checker);
        whichImg = imgData.image[imgNum].imgURL;
        totalPics = imgData.*.length();
        imgLoader = new Loader;
        imgLoader.load(new URLRequest(whichImg));
        slideShow_mc.addChild(imgLoader);
        fadeTween = new Tween(imgLoader, "alpha", None.easeNone, 0, 1, 2, true);
    function checker(event:TimerEvent):void {
        if (imgNum == 0) {
            //if this is not the initial load, then you need to unload imgLoader
            if (!isFirst) imgLoader.unload();
            isFirst = false;
            showPic();
        } else if (imgNum < totalPics) {
            imgLoader.unload();
            showPic();
        } else {
            imgLoader.unload();
            imgNum = 0;
            showPic();
    //when you click a button, go to the next/previous image
    function clickHandler(event:MouseEvent):void {
        switch(event.target) {
            case next_btn:
                myTimer.addEventListener(TimerEvent.TIMER, checker);
                imgNum++;
                break;
            case prev_btn:
                imgNum--;
                myTimer.addEventListener(TimerEvent.TIMER, checker);
                break;
        if (imgNum == totalPics) {
            imgNum = 0;
        } else if (imgNum < 0) {
            imgNum = totalPics - 1;
        //determines menu state
        if (navBar_mc.currentLabel == "navIn") {
            navBar_mc.gotoAndStop("navOut");
        //make sure "our work" turns on
        wordWork_mc.alpha = 1;
    //fades previous/next arrows in and out
    function fadeArrow(event:MouseEvent):void {
        switch(event.target) {
            case prev_btn:
                arrowPrev_mc.play();
                break;
            case next_btn:
                arrowNext_mc.play();
                break;
        if (navBar_mc.currentLabel == "navHit") {
            navBar_mc.navActivate_mc.y = 0;
    //menu functionality
    function slideOut(event:MouseEvent):void {
        navBar_mc.gotoAndStop("navOut");   
    //moves hit state of menu once invisible button is rolled over
    function hitState(event:MouseEvent):void {
        if (navBar_mc.currentLabel == "navHit") {
            navBar_mc.navActivate_mc.y = 0;
    //put this here to ensure the commands get executed
    hitState_btn.addEventListener(MouseEvent.MOUSE_OVER, hitState);
    hitState_btn.useHandCursor = false;
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    next_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    prev_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    next_btn.addEventListener(MouseEvent.MOUSE_OVER, fadeArrow);
    prev_btn.addEventListener(MouseEvent.MOUSE_OVER, fadeArrow);
    navBar_mc.addEventListener(MouseEvent.CLICK, slideOut);
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    code on frame 5:
    stop();
    xmlRequest = new URLRequest("ixia_windows.xml");

    Hmm. That's a very good question. It is loading the first slideshow.
    Well, after seeing your question, I replaced the lines on frame 1:
    var xmlRequest:URLRequest = new URLRequest("ixia_works.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    with the following:
    var xmlLoader:URLLoader = new URLLoader();
          xmlLoader.load(new URLRequest("ixia_works.xml"));
    and on frame 5 replaced the code with the following:
    xmlLoader.load(new URLRequest("ixia_windows.xml"));
    and now I get the following error messages on frame 5:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at experiment_fla::MainTimeline/showPic()
        at experiment_fla::MainTimeline/checker()
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    And still no loading on frame 5.

  • Session Loader Exception

    Hi,
    I am trying to login to a server session in TopLink,I am getting this exception even with the oracle12.zip set in the class path. Has any one encountered the same problem before ? Exception is shown below.
    Local Exception Stack:
    Exception Description: Several [1] SessionLoaderExceptions were thrown:
    Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: Unable to process XML tag [driver-class] with value [oracle.jdbc.driver.OracleDriver].
    Internal Exception: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:89)
         at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:156)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:192)
         at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:149)
         at com.test.testTop.login(testTop.java:58)
         at com.test.testTop.main(testTop.java:34)
    SessionLoaderExceptions:

    Try testing to ensure that the driver is on the classpath correctly first. It may be that a class in this jar requires another class missing from your classpath.
    In your test first do a,
    Class.forName("oracle.jdbc.driver.OracleDriver");
    If this works, you may be passing an incorrect class loader to the SessionManager, ensure the class loader you pass can load the Oracle driver.

  • Loading XML Path from Params

    I'm an action script noob, so be gentle.
    I was given a file and told to make the xml path an external variable. This is the code I have:
    var panelNumber:Number;
    var xmlLoaderPath:URLLoader = new URLLoader();
    xmlLoaderPath.addEventListener(Event.COMPLETE,loadXML);
    xmlLoaderPath.load(new URLRequest("FlashFiles/CP_UnsecuredHomePgDataXMLPath.xml"));
    function loadXML(e:Event):void
        var myPath:XML;
        XML.ignoreWhitespace = true;
        myPath = new XML(e.target.data);
        var path:String = myPath.path;
        //===================================================================================\\
        var xmlLoader:URLLoader = new URLLoader();
        xmlLoader.addEventListener(Event.COMPLETE, showXML);
        xmlLoader.load(new URLRequest(path));
        //===================================================================================\\
    var myData:XML;
    function showXML(e:Event):void {
        XML.ignoreWhitespace = true;
        myData = new XML(e.target.data);
        var image1:String = myData.quote[0].image;
        var image2:String = myData.quote[0].image2;
        var button1:String = myData.button_image;
        // Adding movies
        var bgs:mc_bg = new mc_bg();
        bgs.name = "bgs";
        addChild(bgs);   
    Now, on this page (http://www.afcomponents.com/tutorials/img_loop/3/), what I want to do seems to be rather simple. But I don't know how to modify this script to make it work right.

    Your best bet is to use FlashVars to load that kind of data. And you should use SWFObject to embed the Flash in the page. Not only is it the best way to embed Flash, it makes it super easy to pass in FlashVars - either from inline code in the page or a query parameter. I'll assume you just want to enter the path in some code in the page. Then you'd do something like this:
    <script type="text/javascript">
         var flashvars = {xmlPath: "http://www.somedomain.com/files/myxml.xml"};
         swfobject.embedSWF("myContent.swf", "myContent", "550", "400", "9.0.0", "", flashvars);
    </script>
    Then you have a div named myContent that your Flash is written into:
    <div id="myContent">
    </div>
    Then in Flash you'd grab the xmlPath variable like so:
    myXMLPath = loaderInfo.parameters.xmlPath;
    You can get SWFObejct from: http://code.google.com/p/swfobject/

  • XML not showing load progress...

    I have a fla file that loads a slide show from an XML file. The xml file contains info about each slide. There's over a 100 slides so the loading takes some time. However I'm not getting actual load progress. It traces nothing until after the load is complete and then it shows the progress that it should have traced one by one, however it traced them all at once on the complete. Because it's not firing the onProgress correctly my preloader is rendered useless. Am I doing something wrong on is this a bug in Flash?
    //======================================================================================== =================================================
    //     load xml
    //======================================================================================== =================================================
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.addEventListener(ProgressEvent.PROGRESS, LoadingXML);
    function LoadXML(e:Event):void {
    trace("complete");
    xmlData = new XML(e.target.data);
    ParseSlides(xmlData);
    xmlLoader.removeEventListener( ProgressEvent.PROGRESS, LoadXML);
    xmlLoader.removeEventListener( Event.COMPLETE, LoadingXML);
    MovieClip(root).loading_mc.x = 1500;
    MovieClip(root).loading_mc.bar.width = 1;
    MovieClip(root).loading_mc.loading_txt.text = "";
    function LoadingXML(e:ProgressEvent):void {
    //trace("Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%");
    var loaded:Number = e.target.bytesLoaded;
    var total:Number = e.target.bytesTotal;
    var pct:Number = loaded / total;
    trace(pct);
    MovieClip(root).loading_mc.x = 500;
    MovieClip(root).loading_mc.bar.width = pct * 194;
    MovieClip(root).loading_mc.loading_txt.text = "Loading XML... " + (Math.round(pct * 100)) + "%";
    xmlLoader.load(new URLRequest("XML/SectionII.xml"));
    HERE IS THE OUTPUT: All at once when the complete fires
    0.149821570227718
    0.299643140455436
    0.44946471068315397
    0.599286280910872
    0.74910785113859
    0.8989294213663079
    1
    complete

    Actually it still doesn't work like I need it to. The loading of the xml preloader only works if the temporary internet files are gone. Which means that the time I need the loader is during the parsing of the xml process. I have a function that creates an object for each slide after the xml loads. It runs through a for loop, however the loader won't appear and work during the for loop. It only works after its finished.
    function ParseSlides(slideInput:XML):void {
    // create a list of slide items
    var slideList:XMLList = slideInput.Slide;
    var slideSize:Number = slideList.length();
    var buildPct:Number;
    // run through list to build each slide object
    for (var i:Number = 0; i < slideList.length(); i++) {
      // get progress of building slides
      buildPct = Math.ceil(i / slideSize);
      MovieClip(root).loading_mc.bar.width = buildPct * loadBarWidth;
      MovieClip(root).loading_mc.loading_txt.text = "Building Slides... " + (Math.round(buildPct * 100)) + "%";
      // build slide id and name
      var idElement:XML = slideInput.Slide.attribute("ID")[i];
      var headerElement:XML = slideInput.Slide.header.copy[i];
      var headerAnimationElement:XML = slideInput.Slide.header.animation[i];
      var headerStartXElement:XML = slideInput.Slide.header.startx[i];
      var headerStartYElement:XML = slideInput.Slide.header.starty[i];
      var headerFinishXElement:XML = slideInput.Slide.header.finishx[i];
      var headerFinishYElement:XML = slideInput.Slide.header.finishy[i];
      var headerStartAlphaElement:XML = slideInput.Slide.header.startAlpha[i];
      var headerFinishAlphaElement:XML = slideInput.Slide.header.finishAlpha[i];
      var headerDelayElement:XML = slideInput.Slide.header.delay[i];
      var headerSecondsElement:XML = slideInput.Slide.header.seconds[i];
      var subheaderElement:XML = slideInput.Slide.subheader.copy[i];
      var subheaderAnimationElement:XML = slideInput.Slide.subheader.animation[i];
      var subheaderStartXElement:XML = slideInput.Slide.subheader.startx[i];
      var subheaderStartYElement:XML = slideInput.Slide.subheader.starty[i];
      var subheaderFinishXElement:XML = slideInput.Slide.subheader.finishx[i];
      var subheaderFinishYElement:XML = slideInput.Slide.subheader.finishy[i];
      var subheaderStartAlphaElement:XML = slideInput.Slide.subheader.startAlpha[i];
      var subheaderFinishAlphaElement:XML = slideInput.Slide.subheader.finishAlpha[i];
      var subheaderDelayElement:XML = slideInput.Slide.subheader.delay[i];
      var subheaderSecondsElement:XML = slideInput.Slide.subheader.seconds[i];
      var audioElement:XML = slideInput.Slide.audio[i];
      var videoElement:XML = slideInput.Slide.video[i];
      // create new slide object
      slide[idElement] = new Object();
      slide[idElement].name = idElement;
      // set header information
      slide[idElement].header = headerElement;
      slide[idElement].headerAnimation = headerAnimationElement;
      slide[idElement].headerStartX = headerStartXElement;
      slide[idElement].headerStartY = headerStartYElement;
      slide[idElement].headerFinishX = headerFinishXElement;
      slide[idElement].headerFinishY = headerFinishYElement;
      slide[idElement].headerStartAlpha = headerStartAlphaElement;
      slide[idElement].headerFinishAlpha = headerFinishAlphaElement;
      slide[idElement].headerDelay = headerDelayElement;
      slide[idElement].headerSeconds = headerSecondsElement;
      slide[idElement].subheader = subheaderElement;
      slide[idElement].subheaderAnimation = subheaderAnimationElement;
      slide[idElement].subheaderStartX = subheaderStartXElement;
      slide[idElement].subheaderStartY = subheaderStartYElement;
      slide[idElement].subheaderFinishX = subheaderFinishXElement;
      slide[idElement].subheaderFinishY = subheaderFinishYElement;
      slide[idElement].subheaderStartAlpha = subheaderStartAlphaElement;
      slide[idElement].subheaderFinishAlpha = subheaderFinishAlphaElement;
      slide[idElement].subheaderDelay = subheaderDelayElement;
      slide[idElement].subheaderSeconds = subheaderSecondsElement;
      // set the audio in the slide
      slide[idElement].audio = audioElement;
      // set the video in the slide
      slide[idElement].video = videoElement;
      // push new slide to the array of slide names
      slidesArray.push(slide[idElement].name);
    //MovieClip(root).loading_mc.x = 1500;
    //MovieClip(root).loading_mc.bar.width = 1;
    //MovieClip(root).loading_mc.loading_txt.text = "";
    // start slide
    buildSlide();

Maybe you are looking for

  • New mac mini and imac vs powermac G5 running FCP studio

    I want to compare running the FCP suite on the new max minis and imacs that came out today vs what I am currently using: Currently I am running FCP Studio on a Powermac G5 dual 2GHz with one gig of ram. I believe the frontside bus is 1GHz. I believe

  • Acrobat Standard - Pages Panel

    I am using - Windows 7 Pro - Acrobat 9 Standard I have a lot of new PDF files every day which I need to set - Document Properties - Navigation Tab as "Pages Panel and Page" - so the acrobat file appears with Pages Panel at Left on open. I know Acroba

  • Physical deletion of WBS elements from PRPS table

    Hi Experts, In CJ20N transaction: When I delete a project with project profile (ZABC), the following actions are performed: - The project entry are physically deleted from 'PROJ' table. - The WBS entries are physically deleted from 'PRPS' table. When

  • Calender using Date From and Date To

    Hi, I'm trying to build a calender based on a table that has a user_name, date_from, date_to and comments. Basically I want the calender to show all the dates betwwen the date from and date to. Is there any way of getting the calender to use those da

  • How to find item wise totals and header wise total using hierarchical ALV

    Hi Friends, I came across an issue of finding  item wise total using hierarchical ALV. I am getting header wise total by setting the field catalog. May you help me in finding  Item wise total. Regards Nikhil.