How to remove three pages of the library by a closeBtn?

closeBtn.visible = false;

var page1:Page1;

var page2:Page2;

var page3:Page3;

var pages: Array = new Array (page1, page2, page3).

m1_btn.addEventListener (MouseEvent.CLICK, showPage1);

function showPage1(e:MouseEvent):void

{

1 page = new page 1;

addChild (page 1);

closeBtn.visible = true;

}

closeBtn.addEventListener (MouseEvent.CLICK, closePages);

function closePages(e:MouseEvent):void

{

switch (pages)

{

case pages [0]:

stage.removeEventListener (MouseEvent.CLICK, showPage1);

removeChild (page 1);

break;

case pages [1]:

stage.removeEventListener (MouseEvent.CLICK, showPage2);

removeChild (page 2);

break;

case pages [2]:

stage.removeEventListener (MouseEvent.CLICK, showPage3);

removeChild (page3);

break;

by default:

}

}

m3_btn.addEventListener (MouseEvent.CLICK, showPage3);

function showPage3(e:MouseEvent):void

{

page3 = new Page3;

addChild (page3);

closeBtn.visible = true;

TransitionManager.start (page3, {type: Squeeze, direction: Transition.IN, duration: 3, easing:Elastic.easeOut, dimension: 1});

}

m2_btn.addEventListener (MouseEvent.CLICK, showPage2);

function showPage2(e:MouseEvent):void

{

Page2 = new Page2;

addChild (page 2);

closeBtn.visible = true;

TransitionManager.start (page2, {type: Squeeze, direction: Transition.IN, duration: 3, easing:Elastic.easeOut, dimension: 1});

}

Help me, please... Thank you.

One way to do this would be do not add pages to the table until you add as children to the scene.  Then your close function can loop through the array and close all of them.  In addition, you can delete events showPage headphones # when you add the page instead of when you remove it.  THT anyone stops to add two of the same pages at the same time.

Tags: Adobe Animate

Similar Questions

  • How to remove a page of the PDF document?

    How to remove a page from the PDF?

    Tools > Pages > delete

    Select that range from the page to remove

    Click on the OK button

  • How to remove unused items from the library?

    Dear all,


    Flash CS4 is really good for the design and development of point of view. But I noticed two things:

    1. If the library has more point so there is no option on right click "select unused items". How can I get this option "select unused items" on click right while the library has one more items with the scroll bar?
    2. Height of the window actions sometimes increased. Right now there is no option to decrease the height of the window actions except the Reset option.

    Please let me know if I'm wrong!

    See you soon

    Uday Singh

    SR. ActionScripter

    [email protected]

    Why can't you use the library Panel Options option?

    -kumslee

  • How to remove auto tone of the library?

    I ' v accidentally added auto tone to my entire library not only once but twice!

    How can I remove this function, as all my photos are now washed out looking

    Thank you!

    Go to the develop module and turn on auto-sync. Select all pictures, then look at the history. You should be able to remove the steps of your two car in history. And with auto-sync Active it will affect all the images that are highlighted.

  • How to remove "Skype available" from the top of the notification page?

    How to remove "Skype available" from the top of the notification page - useless promotion!

    Hello!

    Disable the Skype status under Notification settings in Skype.

    All best
    Siim

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore all changes since the first full file

    If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore the file with any changes made since the full backup first file...

    If the TM drive storage is full TM automatically deletes the version the oldest files for the new incremental backups can be made. Thus, in this case you cannot restore the versions that TM deleted because it takes more storage.

  • How to remove a city from the weather app in IOS 9.2.1?

    I have an IPhone6S that I bought recently and am running IOS 9.2.1. I can't understand how to remove a city from the weather app. I tried to go to settings, where there is a list of all the applications on my phone except the weather app, so no help there. Any body can help me with this?

    You must tap on the small set of lines in the lower right to get list view. Then you can find the city that you want to delete, drag to the left to see the button Delete.

    See you soon,.

    GB

  • How can I make Pages capitalize the first word in a sentence?

    How can I make Pages capitalize the first word in a sentence? The I phone t - it, the iPad does, why not not iMac using Pages capitalize the first word on a new sentence?

    Pages of IOS and IOS itself remain different implementations of Pages v5.6.1 for Mac and OS X. In any version of Pages v5, if there was an option to preferences in Pages ' 09, there is no auto-capitalisation function.

    See my previous post is launching an OS X App Store free application, which can be applied to auto-capitalisation to your Pages v5 documents.

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • 1536dnf. how to scan mutiple pages in the scan bed

    1536dnf. how to scan mutiple pages of the scan bed without PROMT scan PC icon each time.

    I have several pages that WILL NOT go throuhg the document feeder.

    You will not be able to scan multiple pages into the glass.

  • How to remove all information from the computer so I can sell it?

    How to remove all information from the computer so I can sell it?

    Hello

    You will want to format the hard disk:

    1. you can use DBAN - http://www.dban.org/

    or

    2. you can follow this tutorial to clean install up to the step where you format the disk, in which you would then STOP (because you just want to get rid of the files on the hard drive, do not install Windows) - http://www.sevenforums.com/tutorials/1649-clean-install-windows-7-a.html

    Kind regards

    Patrick

  • How can remove my account from the cloud to adobe

    How can remove my account from the cloud to adobe

    I would like to unsubscribe the service

    Hi mehranr34543413,

    Please contact the customer service. A customer service agent can help you with this request.

    Best,

    Sara

  • How to activate "Folio showcase in the library?

    http://helpx.Adobe.com/Digital-Publishing-Suite/help/whats-new-release.html


    "If your iPad app offers subscriptions, you will probably want to promote your latest content and buying options are displayed correctly. To help with this, new v31, subscription iPad apps have new default library with a new appearance to help promote your content. The most recent folio will have an important presentation to help encourage readers to identify the most recent content available for purchase or subscription. If a free preview of content is offered, which is called out too. »


    When I build an app I always get the old library.


    We have subscription.


    How to activate "Folio showcase in the library?


    Male version of the viewer in App Builder is set to r31. Also, note that if you have a custom store implemented and the option 'Hide buy buttons' checked that the default library to the old grid view.

  • How to remove a step with the polygon Lasso tool

    How to remove a step with the polygon Lasso tool

    In PS, all you have to do is to hit the DELETE key and you can go back a little with the polygon Lasso tool. How to accomplish this in Fireworks?

    Another option that gives you a lot of control is to use the tool pen instead of the polygon lasso. Because it's a vector path, you can refine the outline very easily using the tools of feather and Subselects and when you are satisfied with the result, click on modify > convert a path to the top. You can even choose to keep or delete the vector path in the preferences panel.

    HTH

Maybe you are looking for

  • No function of scanning for Photosmart C4280 all one after updating to Mac OS x Lion

    I downloaded the update day and new drivers, either, Apple and also the drivers of support.apple.com noted elsewhere in this forum. and the function of the printer worked very well for a usb connection of airport network, but the scan function disapp

  • MS programs

    How can I know what MS programs I can uninstall such as MSXML and NAVE programs, or do I need to all? MRS. NAVE Framework 1.1 2 Service Pack 2 3 service Pack 2 3.5 Spl Synch Framework Runtime Native v 1.0 (x 86) Native services v 1.0 (x 86) MSXML 4.0

  • I have windows 7 and im trying to download a game

    Im trying to download a game and when it gets to 13% it stops and says my computer is behind a firewall, but I turned off my firewall see BIF tha would work and he always says that it any ideas how to fix it

  • How to check if a shutdown.exe command runs in the background?

    Hi all I recently did a nice, small and useful for my pc application plan a stop. (using c# in visual studio 2012) I used the shutdown.exe command (with he different tags for different uses). What I can't find, and I have looked throughout the web an

  • Download ADR 11.1.1.6.0 question

    People,Hello. My host computer is Windows 7 and the VM is Oracle Linux 5. I use VM Player 3. On the download page http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html , I download the file '11.1.1.6.0 Application development per