Sunday, October 10, 2010

How to Use Cue Points To Sync Graphics and Text with Video Playback

Flex Builder 4 Flash Video Flash Video


ActionScript 3.0 Language and Components Reference

Flash tutorials

Friday, October 8, 2010

Dynamically load an image using the ActionScript 3 Loader Class

Flex Builder 4 Flash Video


This Image Was Loaded Dynamically


Loading images dynamically gives you the ability to change or update the graphic outside of flash.

The code displays how you can load and position an image in ActionScript 3.0 using the Loader class and the URLRequest and center it on the stage.

var myPic:String = "http://www.yoursite.com/images/myPic.jpg";
var urlRequest:URLRequest = new URLRequest(myPic);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadImg);
loader.load(urlRequest);
addChild(loader);
 
function loadImg(evt:Event):void {
    var target_mc:Loader = evt.currentTarget.loader as Loader;
    target_mc.x = (stage.stageWidth - target_mc.width) / 2;
    target_mc.y = (stage.stageHeight - target_mc.height) / 2;

The UILoader also dynamically loads GIF, PNG and SWF's into the flash player.

ActionScript 3.0 Language and Components Reference

  • URLLoader The URLLoader class downloads data from a URL
  • URLRequest The URLRequest class captures all of the information in a single HTTP request
  • flash.net The whole The flash.net package

Wednesday, October 6, 2010

Flash Player 10.1 and AIR 2.0 Multi-touch Technology

Flex Builder 4 Flash Video Adobe AIR



ActionScript 3.0 Multitouch Beta Reference

The Multitouch class manages and provides information about the current environment's support for handling contact from user input devices

Activate A Webcam with Actionscript

Flex Builder 4 Flash Video Flash Video Flash Video


Activate A Webcam with Actionscript

Webcams can serve as a source of video data that you can use with ActionScript. The Camera class is built into ActionScript allowing you to build applications that include webcams.

Ways to get the camera to work

  1. Inside the library panel menu, select New Video
  2. Drag an instance of the video to the stage
  3. Size the video
  4. Give the empty video shell the instance name of myCam
  5. Copy and paste the code below
  6. Test the movie and activate the camera.

The Code

import flash.media.Camera;
import flash.media.Video;

var camera:Camera = Camera.getCamera();

if (camera != null) {

myCam.attachCamera(camera);

} else {
trace("You need a camera.");

}

stop();


ActionScript 3.0 Reference

Camera — final class, package flash.media
Use the Camera class to capture video from the client system's camera.

CAMERA
— Constant Static Property, class flash.system.SecurityPanelWhen passed to Security.showSettings(), displays the Camera panel in Flash Player Settings.

CameraRoll — class, package flash.mediaThe CameraRoll class allows you to save image data to a system's "camera roll." AIR profile support: This feature is supported on mobile devices, but it is not supported on desktop operating systems.

Google Analytics Tracking for Adobe Flash

Flash Video Flex Builder 4


How to Track Your SWF Files

Learn how easy it is to track Flash content using the new Google Analytics Tracking For Adobe Flash feature with Brett Crosby, Group Manager Google Analytics, and Matthew McNeely, VP of Engineering at Sprout.



Adobe Flash Setup

Google Code covers everything you need to know to set up Google Analytics Tracking for Adobe Flash for the Adobe Flash development environment.

  1. Get the Component Files
  2. Using the Analytics Component
  3. Using the AnalyticsLibrary Component
Related Posts Plugin for WordPress, Blogger...