How to end the xml loaded scroller consecutive pages?

I have a wheel of an inch image on one of the pages, which is built by loading jpg via xml files in place.

One that I navigates to another page, how can I make sure it disappears from the screen?

The ID of the code here I used for the edification of the wheel:

/////Parse XML
//build scroller from xml
function buildScroller(imageList:XMLList):void{
          trace("build Scroller");

          for (var item:uint = 0; item<imageList.length();item++) {
                    var thisOne:MovieClip = new MovieClip();

                    //outline
                     var blackBox:Sprite = new Sprite();
                    blackBox.graphics.beginFill(0xFFFFFF);
                    blackBox.graphics.drawRect(-1, -1, 62, 92);//-1,-1 places rectangle 1px left and up.62, 92 draws rectangle 1px wider on all sides of placed image dimenstions of 60x90
                    blackBox.alpha = thumbFadeOut;//setting Border Tweens
                    thisOne.addChild(blackBox);
                    thisOne.blackBox = blackBox;//setting Border Tweens

                      thisOne.x = thisOne.myx = (60 + padding) *item;//replaces the line above for scale tweenw roll over calculation. "myx" is a made up term which defines the position. 61 is the width of the thumb
                    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

                    //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_AppPopUps);//tells us when the loading is complete
                    ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler_AppPopUps);//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_AppPopUps);//makes boxes act as buttons
                    thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem_AppPopUps);//traces the title when the mouse is over the bounding box in the Output Panel
                    thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem_AppPopUps);//traces the title when the mouse is out the bounding box in the Output Panel



                    //add item
                    scroller.addChild(thisOne);
          }
          scroller.addEventListener(Event.ENTER_FRAME, moveScrollerThumbs);//adding movement on mouse position
          trace("termination of build scroller");

}

I've added comments and another line of code in order to avoid a problem if you were to use the same navigation code after that scrolling is deleted:

remove the scroller.

First.Setting the function which will remove the scroll and stop consuming resources.

function removeScrollerF (): void {}

{if (scroller)}

scroller.removeEventListener (Event.ENTER_FRAME, moveScrollerThumbs);

removeChild (scroller);

scroller = null;

}

}

in the second place. Add listeners for Web objects

testDelete_mc.addEventListener (MouseEvent.CLICK, navF);

third.  create listener for objects of navigation functions

function navF(e:MouseEvent):void {}

in each listener function, call the function that removes the scroll

removeScrollerF();

Add the navigation code

gotoAndPlay ("howto");

}

////////////////////////////////////////////////////////////////////// ///////////////

Tags: Adobe Animate

Similar Questions

  • How to get the effect of scrolling of pages instead of sections, with muse

    I need to create pages both within the Web site, that the site is graphics based

    is need to scroll effect on pages not for the section possible

    Please visit http://maxbrenner.com/

    I need the exact effects of horizontal and vertical for the pages of diccrent, I can get wih scrollmotion

    but the problem is that when I switch from one page to another, it does not provide this movement acceleration effect

    I don't know what you're trying to do? Movement of scrolling works only from one section to another in a single page. You can't jump to different pages with scrolling movement. Go to another page will always load in the browser.

  • How to script instead of JPG files SWF files in the XML loader?

    I have a SWF (platform greensock.com) charger and a thumbnail image scroll under it made small image buttons. Each button image has a link that loads a SWF file into the SWF loader above. Here is the code for each button that loads the largest SWF in the charger 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 the button via the XML loader. I followed the tutorial on XML Chargers which deals with loading jpg images, and by assigning the URL links to them as follows in the 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 can I ask for the code to every each small button thumbnail to load a larger image in the SWF loader above? I have to add something to the XML file or this way, it will never work with jpg images? URL in the adjustable XML source var (//setting the sourceVar), because they are all individual and somehow then apply taken SWL loader to load the game (//making load SWFLoader) as a standard somewhere in the AS3 code?

    Yes, you did.  I missed that.

    If you have used the link instead of urlString:

    function clickScrolleritem(e:MouseEvent):void {}

      loader_howToLoader2.url = MovieClip(e.currentTarget).link;
        loader_howToLoader2.load(true);

    }

  • How to end the system idle process

    How to end the system idle process
    ... "it is to consume my whole CPU.

    system:
    HP pavilion g4 series
    Intel core i5

    No it's not! Maybe someone else can give a better explanation, but the way I understand it is that when your system is idle, the system shows 100% idle process or nearby and it is because it has no applications or programs that run, but as soon as you open a program or run an application, and it requires CPU resources say between 1 and 4%, you will see the system idle drop in numbers, which shows the amount of the resources required by the program or open application.

    So I believe that everything that is, show processor resources available to a given point in time.

    Now, a virus can attack the process and change his behavior? I don't know, but if you suspect a malware attack, run complete scans of your system just to be sure.

    Good luck.

  • How to upgrade the boot loader?

    We have a Cisco SF300 - 48P 48-Port 10 / 100 PoE switch with Gigabit Uplinks.

    In the documentation for the new 1.3.5.x firmware, it says:

    "Before the upgrade to version 1.3.5 the bootloader must also be updated. If 1.3.5 version using the initial boot loader, file system is not updated to level, and in the future the user will not be able to upgrade to versionshigher than 1.3.5. »

    How to place the boot loader?

    I see nothing in the documents in order to establish what boot loader there.

    We are currently running firmware 1.3.0.62.

    The statistics page says:

    (Image Active) firmware version: 1.3.0.62
    (Non-Active) firmware version: 1.1.2.0
    Version of boot: 1.0.0.4

    What is the best way to properly install this firmware 1.3.5.x?

    Thank you, Tom

    Hello:

    Darren is correct, that you need to update the boot via TFTP code. His instructions are correct for when you get the TFTP server defined and loaded file in it. There are many free TFTP server applications on the net that you can download. One of my favorites for Windows is TFTPD32 (or TFTPD64 for 64-bit machines). There are both free applications Mac but I don't have that I use.

    Once you have a TFTP server installed on your machine, place the file with 'BOOT' in the name of the TFPT Server directory. Directed by Darren: go/file management and select backup/upgrade the Firmware, go to "via TFTP' and select 'Boot Code.' Put the IP address of the server or computer that runs the TFTP software and the name of the file and apply the update.

    Reboot the switch and the bootloader is now updated!

    Then follow the normal procedure for the upgrade of the firmware: go to the file management /-> Firmware Upgrade / Backup-> "via the HTTP protocol' and find your firmware file and apply.

    ~ Nick

    Support of Cisco network engineer

    Please mark responded to post useful!

  • Does anyone know how to use the movement of scroller with the function of the fluid width?

    Hi all

    Does anyone know how to use the movement of scroller with the function of the fluid width?

    Thanks, Federico

    This feature is not yet implemented.

  • Halo to the XML loading issue in ODI 10.1.3.5

    Hi gurus,

    I am creating the Oracle table XML file.
    Up to now, made the following

    1. in the topology, to connect to Oracle and XML technologies. Has also created the database server. For XML, validated successfully the XSD.
    2. in the reverse designer engineered XML elements in the table. Reverse engineering as well done to Oracle.
    3. in XML, 1 table got created its name as MASTER_XTEL (this is my root element). He followed columns
    MASTER_XTELPK, SNPSFILENAME, SNPSFILEPATH and SNPSLOADDATE.

    Developed an ODI interface to fill this area of transit of .with MASTER_XTEL pointing to an existing oracle schema.
    Configuration:
    MASTER_XTELPK - > 0 (executed on STG)
    SNPSFILENAME-> 1 column in a table holding file (run on CBC) name Oracle
    SNPSFILEPATH - > 1 column to an Oracle table taking into the path of the file (run on CBC)
    SNPSLOADDATE-> SYSDATE (run on STG)

    IKM: Add SQL to SQL

    Eexecution is a success, and exploiting, I see 1 inserted obtained record (my source of oracle table only has 1 row)
    So far so good.

    Now when I try to see this MASTER_XTEL inserted record by right click on it and view the data, it shows all the data. What I am doing wrong?

    If I want to create an XML file with
    CREATE XMLFILE < Filename > SCHEMA of THE < schema_name >

    I am getting following error:

    0: null: java.sql.SQLException: could not save the file C:/TEST_XML because a class java.sql.SQLException occurred and said: java.sql.SQLException: java.sql.SQLException: no keys found on table MASTER_XTEL

    Which I think is somehow related to the issue of data no. I don't know if.

    Can someone help me with this?

    Thanks in advance.

    Hello

    You can get information of
    http://SSB.Sewanee.edu/oradocs/OBIEE/integrate.1111/e12644/xml_file.htm
    http://SSB.Sewanee.edu/oradocs/OBIEE/integrate.1111/e12644/appendix_xml_driver.htm#CHDDJDHF

    I'm not sure of the XML loading demo. Maybe someone else can help with that.

    Thank you
    Fati

  • How to get the class Loader of Progress event

    I was charge test.swf file threw Loader class. How to get the class Loader of ProgressEvent, IOErrorEvent.

    function getLoader() {}
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, progressHandler)
    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);
    var request: URLRequest = new URLRequest ("test.swf");
    Loader.Load (request);
    }
    function progressHandler(event:ProgressEvent):void {}

    get the class loader
    }

    function ioErrorHandler(event:IOErrorEvent):void {}
    get the class loader
    }
    getLoader()

    the event target has a property of charger:

    Event.Target.Loader

  • How to reverse the direction of turn of page in first pro cs6?

    How to reverse the direction of turn of page in first pro cs6?  The two clips are on video 1.  I passage of tour page between clips of drugs and it works perfectly.  The tour takes its source in the Northwest corner and end in the southeast corner.  I want the exact opposite.

    Click on the transition.

    Window > controls

  • NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED...                                                                                                                                                                                      Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    Go to file, Page Setup and remove header and footer text.

    "jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE

  • How to stop the printer printing an extra page after that I have print something, with getting http: /h10141 on top

    How to stop the printer printing an extra page after that I have to print something, with mGET http: / h1014.www1.hp.com/pup/inkjet/updates/va/mamifests/b_bu_c_p00_348e88c

    Host: h10141.www1.hp.com

    Accept-encoding: identity; q = 1.0 *; q = 0

    User-Agent: HP - inkjet ink-WebUpdate - 1.1

    printer

  • How to remove the XML prologue in Oracle?

    Our system works as follows:

    1. place a piece of XML code in the database as a CLOB
    2 database converts this value to XMLTYPE (stored as a CLOB (you can skip this, Marco * {;-)))))
    3. a request then reads XML from the database and inserts it into another bit of XML
    4. the application continues his treatment based on this new composite XML.

    So far, the XML that is loaded into the database in step 1 (for various systems) has never contained a prologue. However, a new system came along and is now passing in a prologue. There are problems of application in step 3.

    Apart from trying to get the new system do not spend in the prologue, is there a way to remove it of in Oracle?

    I came up with two solutions are not elegant:

    1. use XMLTABLE to retrieve the main root node (which might be different, depending on the system sent in the data and could change)
    2 convert the prologue in a commentary, using REPLACE the product, before converting the CLOB in an XMLTYPE.

    If I was forced to use one of the following methods, I would go with 2, but I really, really hope that there is a better way to do it.

    Someone at - it any other suggestions, please?

    PS. We are currently on 10.2.0.4 and are about to move to 11.2.0.3, but the solution is to work on both versions, for more fun and excitement!

    It's error, the application gives: "error obtaining Exception of SAX for additional information: no processing instruction begins with"xml"" who says that the app dev is due to the presence of the prologue in the middle of xml, the app has build up.

    So, basically, the app just "glue" XML in the middle of the other regardless of the structure? What kind of design is?
    IMO, the application needs to be fixed, not the XML input.

    A lot about how to add the prologue, nothing on how to remove it!

    You can use the XMLQuery function to get the root element:

    SQL> create table tmp_xml3 of xmltype
      2  xmltype store as basicfile clob;
    
    Table created
    
    SQL> insert into tmp_xml3 values (xmltype(''));
    
    1 row inserted
    
    SQL> select * from tmp_xml3;
    
    SYS_NC_ROWINFO$
    --------------------------------------------------------------------------------
    
    
    SQL>
    SQL> select xmlquery('*' passing object_value returning content)
      2  from tmp_xml3;
    
    XMLQUERY('*'PASSINGOBJECT_VALU
    --------------------------------------------------------------------------------
    
     
    

    Published by: odie_63 on August 22, 2012 15:26

  • How to fix the text ticker scrolling of nervousness?

    Hi everyone, need help to correct text ticker scrolling of nervousness. Here is my code

    var ticker_text:TextField=new TextField();
    ticker_text.selectable = false;//not selectable
    ticker_text.border = false;//no border
    ticker_text.autoSize = TextFieldAutoSize.LEFT;//field scales with more text
    ticker_text.gridFitType = GridFitType.SUBPIXEL;
    ticker_text.sharpness = 400;
    ticker_text.antiAliasType = AntiAliasType.ADVANCED;
    ticker_text.cacheAsBitmap = true;
    
    var my_tickertape:Sprite = new Sprite();
    //my_tickertape.cacheAsBitmap = true;
    my_tickertape.x = 700;
    my_tickertape.y = 595.25;
    addChild(my_tickertape);
    my_tickertape.addChild(ticker_text);
    
    //RELOAD XML BASED ON ENTER FRAME///;
    stage.addEventListener(Event.ENTER_FRAME,reloadBusXML);
    function reloadBusXML(e:Event)
    {
    
        //LOAD HEADLINES TICKER TAPE
        tickertapexmlloader.load(tickertapexmlreq);
        tickertapeXML = new XML(tickertapexmlloader.data);
        tickertextLoaded();
    
    }
    
    function tickertextLoaded():void
    {
    
        //busDetail = dataXML.busDetail;
        var myNewsheadlines:XMLList = tickertapeXML.headline;
    
        var i:Number;
        var text_to_scroll:String = "";
        var myText:String = null;
        for (i=0; i < myNewsheadlines.length(); i++)
        {
            myText = myNewsheadlines[i].text();
            //TEXT TO SCROLL
            text_to_scroll +=  myText;
    
            //BULLET DIVIDER
            if (i + 1 < myNewsheadlines.length())
            {
                ///IF REACH THE LAST HEADLINE, DON'T ADD " • "///
                text_to_scroll = text_to_scroll + " • ";
            }
            //ticker_text.htmlText += myText + " • "
        }
    
        /////////////////NEWSHEADLINES TICKER TEXT////////////////////////
        ticker_text.htmlText = text_to_scroll;
    
        var ticker_text_format:TextFormat = new TextFormat();//set the formater
        ticker_text_format.color = 0x96CFDC;//set the color to the hex
        ticker_text_format.size = 24;//set the font size 
        ticker_text_format.font = "Frutiger55Roman";//set the font type
        ticker_text_format.rightMargin = 15;
        ticker_text_format.display;
    
        //APPLY TEXT FORMATING
        ticker_text.setTextFormat(ticker_text_format);
    
    }
    
    
    //ADD THE LISTENER TO SCROLL
    my_tickertape.addEventListener(Event.ENTER_FRAME,move_text);
    
    //MOVE_TEXT SCROLLING FUNCTION;
    function move_text(myevent:Event):void
    {
        var scrolling_speed:Number = 1;
    
        my_tickertape.x -=  scrolling_speed;
        if (my_tickertape.x < (0 - my_tickertape.width))
        {
            my_tickertape.x = stage.stageWidth - 150;
        }
    }
    

    Thank you

    Another thing to try is to use the timer in conjunction with TimeEvent.updateAfterEvent (), but in my case it's worse Flash does not maintain framerate at all by its design so animations as it will never be perfect. If you increase the CPU and GPU, ability he can do it, but in the past I had to stop using a TTY to a large public facility because even with a top of the range Flash graphic card does not keep constant framerate.

    --

    Kenneth Kawamoto

    http://ww.materiaprima.co.UK/

  • To access the data that is loaded by the XML Loader class

    Hi guys,.

    I have trouble accessing the data loaded by external class.

    Here is my code:

    Main class:

    package {}

    import flash.display.MovieClip;
    nucleus of import. XMLLoader;

    SerializableAttribute public class Main extends MovieClip {}

    var projectSetupMainMenuXML:Boolean = true;

    public void Main() {}

    If {(projectSetupMainMenuXML)
    var mainMenuXML = new XMLLoader ("menu.xml");
    }
    }
    }
    }

    XMLLoader class:

    package base {}

    import flash.display. *;
    import flash.events. *;
    flash.net import. *;

    public class XMLLoader {}
    private var mainMenu:XML;
    private var urlLoader:URLLoader;

    public function XMLLoader (mainMenuPath:String) {}
    var urlRequest:URLRequest = new URLRequest (mainMenuPath);
    urlLoader = new URLLoader();
    urlLoader.addEventListener (Event.COMPLETE, completeListener);
    urlLoader.load (urlRequest);
    }

    private void completeListener(e:Event):void {}
    mainMenu = new XML (urlLoader.data);
    e.target.removeEventListener (Event.COMPLETE, completeListener);
    }
    }
    }

    Now, I want to create another external class (called MainMenu) which will be launched from the main class.

    This class should create the menu based on the loaded XML class.

    My question is, how can I make use of the loaded content through the XMLLoader class within the class MainMenu XML?

    Thank you.

    I think you have to use XMLLoader as a singleton - with the properties and static methods. In this way, you can load XML only once and make available XMl data to any object in the application.

  • How to stop the Notes app, scroll down to the opening

    I have an iPhone 6 s, IOS 9.3.2.

    The Notes application scrolls down when opening a Note.

    It was not used to do.  I don't like it!  Most of the time, I add a text near the top of the file.

    How can I stop scrolling down when I opened an existing note?

    I looked for a setting, but found nothing.

    just checked on the iPhone 6 + - it does not scroll down

    Do a forced reboot - after all open applications using the app Chooser - invoked by fast double pressing the home button and drag upwards on each app until it disappears from the screen.

    Meet the sleep/wake and home buttons down until you see the logo  - then release and allow normal start upward

Maybe you are looking for

  • Pavilion 550 179na: keyboard, typing letters multiple even if only 1 key

    I bought this computer a week ago and I use the keyboard and mouse that came with it. The keyboard started typing a letter multiple times, even if the button is pressed only once... Does anyone have any ideas why this is happening please?

  • Satellite L20: matter of life battery

    Is there a family experience of drainage of excessive battery due to a problem with Windows XP Edition?

  • Delete a video

    Is it possible to remove a video sent to you? I had audio muted and the desire to delete and make a new one?

  • Change in iPhoto as default again

    When I bought a Nikon camera, the software changed my picture save location of iPhoto to Nikon View NX2.  Works great for my camera photos but not for my photos from iPhoto.  I would like to download all the images in iPhoto.  How can I do this?

  • How can I put back on my toolbar buttons

    I neeed to some of my apps back in my toolbar. Tried to download it, but could not very well how?