Loading and Interacting with External Movies : Loader « Network « Flash / Flex / ActionScript

Flash / Flex / ActionScript
1. Animation
2. Array
3. Class
4. Data Type
5. Development
6. Function
7. Graphics
8. Language
9. Network
10. Regular Expressions
11. Statement
12. String
13. TextField
14. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Flash / Flex / ActionScript » Network » Loader 
Loading and Interacting with External Movies
 

package {
  import flash.display.*;
  import flash.net.URLRequest;
  import flash.events.Event;

  public class LoaderExample extends Sprite {
    
    private var _loader:Loader;
    
    public function LoaderExample(  ) {
      _loader = new Loader(  );
      addChild_loader );
      
      _loader.contentLoaderInfo.addEventListenerEvent.INIT, handleInit );
      
      _loader.loadnew URLRequest"ExternalMovie.swf" ) );
    }
    
    private function handleInitevent:Event ):void {
      var movie:* = _loader.content;
      
      tracemovie.getColor(  ) );
      
      movie.setColor0xFF0000 );
    }
  }
}

        
Related examples in the same category
1. Main.Swf Listener Receives Notification for an Event Targeted at a Module.swf Display Object
2. Add mouse click listener to a loaded swf
3. Loading External Images at Runtime
4. Add event listener to content loader info
5. Adding a Loader to the display list
6. Displaying load progress
7. Load-error handling
8. Polling for the existence of a loaded object
9. Handling an event announcing a loaded object's availability
10. Load an image using Loader
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.