IT tutorials
 
Graphics
 

Adobe Flash Professional CS5 : Removing External Content

10/25/2011 4:23:54 PM
- Windows 10 Product Activation Keys Free 2019 (All Versions)
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
Once an external SWF file is loaded, how do you unload it to return to the main Flash movie? The easiest way is to remove the Loader object from the Stage, so the audience can no longer see it. You will use the command removeChild() and specify the name of the Loader object in between the parentheses to remove it from the Stage.

1.
Select the first frame of the actionscript layer and open the Actions panel.

Note

Another way to remove external content is to use the command, unload(). The code, myLoader.unload() removes the SWF that is loaded into the Loader object, but the Loader object remains on the Stage.

2.
Add the following lines to your code in the Script pane:

myLoader.addEventListener(MouseEvent.CLICK, unloadcontent);
function unloadcontent(myevent:MouseEvent):void {
removeChild(myLoader);
}




This code adds an event listener to the Loader object called myLoader. When you click on the Loader object, the function called unloadcontent is executed.

The function performs just one action: It removes the Loader object from the Stage.

3.
Choose Control > Test Movie > in Flash Professional to preview the movie. Click on any of the four sections, and then click on the loaded content to return to the main movie.
 
Others
 
- Adobe Flash Professional CS5 : Loading External Content
- Adobe InDesign CS5 : Customizing - General Preferences Controls
- Adobe InDesign CS5 : Customizing - Modifying the Menu Commands
- CorelDRAW X5 : Working with Single-and Multi-Page Documents - Page Commands
- CorelDRAW X5 : Working with Single-and Multi-Page Documents - Naming Pages
- Saving Files from Illustrator CS5 (part 4) - The Flex Exchange Graphic Format & The Scalable Vector Graphics Format
- Saving Files from Illustrator CS5 (part 3) - The Portable Document Format
- Saving Files from Illustrator CS5 (part 2) - The Encapsulated PostScript Format
- Saving Files from Illustrator CS5 (part 1) - The Native Illustrator Format
- Dreamweaver CS5 : Create Tabbed Panels
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
programming4us programming4us
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS