Sharedtut

  • Home
  • ActionScript 3
  • Job Opportunities
  • Post a Job
  • Submit Resume
  • Button
  • Dragging
  • Scaling
  • Space

Loading Images in Actionscript 3


Send a request for the classes to use
import flash.display.Loader;
import flash.events.Event;
import flash.net.URLReqest;

var _loader:Loader = new Loader();
function BitmapLoader(){
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_loader.load(new URLRequest("image.jpg"));
}

function onComplete(event:Event):void{
var image:Bitmap = Bitmap(loader.content);
var bitmap:BitmapData = image.bitmapData;
addChild(image);
}



Loading WebCam in Actionscript 3

Using the Cam is a fast process in AS3 Request for the classes to be used in this example : import flash.media.Camera; import flash.media.Video;

 

Working with Microphone in Actionscript 3

As allways import your classes import flash.events.*; import flash.media.Microphone; import flash.system.Security;

 

Video Streaming in Actionscript 3

var _stream:NetStream; var _video:Video; var _playbackTime:Textfield; var _duration:uint; function loadVideo()

Creating a basic Button in Actionscript 3

Create a Rectangle on Stage and Convert to movieClip by selecting the object & pressing F8 Once object is created add an Instance Name of rectangle. Add the Script bellow to an actionscript layer to keep your layers in order.

Dragging an Object in Actionscript 3

Create a circle on Stage and Convert to movieClip by selecting the object & pressing F8 Once object is created add an Instance Name of dragCircle. Add the Script bellow to an actionscript layer to keep your layers in order.

Scaling an Object in Actionscript 3

Create an object on Stage and Convert to movieClip by selecting the object & pressing F8 Once object is created add an Instance Name of objectScaleXY Add the Script bellow to an actionscript layer to keep your layers in order

Playing in Space XYZ in Actionscript 3

Create an object with instance name of movieMove and create a function to execute the tweening.

 

Loading Images in Actionscript 3

Send a request for the classes to use import flash.display.Loader; import flash.events.Event; import flash.net.URLReqest;

 

Passing PHP Variables in Actionscript 3

As allways import all the classes that you will be needing to ahead of the application import flash.display.Sprite; import flash.events.*; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest;

  • Camera
  • Micro
  • Video
  • Images
  • PHP


Created by Varria Studios and Hosted by uTropic Media
In Network Ping Area Code | Varria Studios | Adeuce Media | Houston Auto Community | SharedTut | Houston Harmony Homes | Tennis Elites | Obknob | Vivala Host | Houston Local Events |
You're Currently Browsing from 38.107.191.96
Bookmark and Share

Valid XHTML 1.0 Transitional