This is just a small experiment on Flash bitmap smoothing in ActionScript 3. A small piece of codes can be sometimes too hard if one does not know how to write it properly. You may try the below sample and adapt it for your own Flash projects.
View Sample SWF File or Download Flash Source File [...]
Entries Tagged as 'ActionScript 3'
AS3 Bitmap Smoothing in Flash
August 28th, 2008 · 1 Comment
Tags: ActionScript 3 · Flash · Tutorials
Simple Preloader in ActionScript 3
August 20th, 2008 · No Comments
It is just a few number of lines for making a simple preloader. You may download this file as an example. Below codes are located in actions layer of preloader scene.
PLAIN TEXT
Actionscript:
stop();
var loaded:Number;
var percent:Number;
fm_bar.addEventListener( Event.ENTER_FRAME, load_progress );
function load_progress(e:Event):void
{
loaded = stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal;
percent = Math.round(loaded * 100);
fm_bar.scaleX = loaded;
loader_info.text = “Loading… “ + percent + “%”;
if( [...]
Tags: ActionScript 3 · Flash
Right Click Menu in ActionScript 3
August 20th, 2008 · 2 Comments
It is pretty easy to make a custom right click menu or context menu in Flash ActionScript 3. You may try and adapt below source codes for your projects.
PLAIN TEXT
Actionscript:
import flash.net.URLRequest;
import flash.ui.ContextMenu;
var fm_menu:ContextMenu = new ContextMenu();
var copyright:ContextMenuItem = new ContextMenuItem( “Copyright © flashmo.com” );
var credit:ContextMenuItem = new ContextMenuItem( “Free Flash Templates” );
copyright.addEventListener( ContextMenuEvent.MENU_ITEM_SELECT, visit_flashmo );
credit.addEventListener( [...]
Tags: ActionScript 3 · Flash
