IT tutorials
 
Graphics
 

Adobe Flash Professional CS5 : Removing External Content

10/25/2011 4:23:54 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us