Welcome to the AS3 Forum :: Resource Thread
Welcome to the forum for ActionScript 3 related questions.
Adobe ActionScript 3 (AS3) Resource Thread:
This isn't a conversation thread so please just post a link and brief description of any requirements/info on the sites. Posts may be edited or deleted in order to keep this as a useful resource thread for the future or add it to the exisiting sticky thread. Feel free to add to this thread; however it simply means that the posts will be added/removed as the Flashkit Mods see fit and as long as they add to the ActionScript3 resource thread.
If your post is added to this resource thread, you will be given proper acknowledgement. So feel free to add/share away!
Resource Links for Adobe ActionScript 3 (AS3):
Complements of walnoot
Complements of mr_malee
Complements of senocular
List of 3D engines and 3D tutorials (added by Cancerinform)
PLEASE BE AWARE THAT LINKS WILL BE ADDED TO THIS POST FOR EASY REFERENCE, I'VE DELETED ALL OTHER POSTS IN THIS THREAD. PLEASE POST YOUR LINKS AND THEY'LL BE ADDED HERE.
FlashInterface - Communicating between Flash 8 and Flash 9 SWFs
Hey gang, just thought I would let everyone know I built up a couple of classes that allow you to easily communicate between the ActionScript Virtual Machines (AVMs). You can dispatch events, talk to functions and properties synchronously through these class. The API is the same between both AS2.0 and AS 3.0. I needed to have this ability for a project I am currently working on and I am sure there will be many others who need this solution. Anyway check out the links below and have fun with them.
Article I wrote regarding the problem and solution:
http://www.flashextensions.com/blog/...and-solutions/
FlashInterface Page (Downloads, Documentation, and Examples)
http://www.flashextensions.com/produ...hinterface.php
Spread the news and let others know about these classes
Cheers,
Rob Taylor
info@flashextensions.com
Flash Extensions, LLC
Extend Flash. Extend Skills. Extend Possibilities!
[stuff] as3 sound visualising efx
Hi,
i´ve just finished some AS3 sound visualising stuff.
it comes up with a bunch of scripted sound spectrum
analytics, that visualise sound, react on sound or just
guide the sound.
show it to me
here is a short as3 script-snippet for you to play with.
it´s a tunnel effect, wich reacts on sound and turns
the tunnel inverse or straight forward. just a simple
little effect belonging on how high the sound spectrum
amplitude level is:
Code:
/////////////////////////////////////////////////////
// sound reactive tunnelizer
// author : frank reitberger
// site : http://www.dasprinzip.com
// copyright 2007
/////////////////////////////////////////////////////
// --------------------------------------------------------------------------------------------------
stop();
// --------------------------------------------------------------------------------------------------
///////////////////////////////////
// setup global vars
///////////////////////////////////
// sound related
var snd:Sound = new Sound();
var sndCnl:SoundChannel;
var byteArr:ByteArray = new ByteArray();
// sprite related
var dot0:Sprite = new Sprite();
var dot_vr:Number = 0;
var dot_ang:Number = 0;
stage.addChild(dot0);
// tunnelizer related
var zIndex1:Number = 0;
var modulo:Number = 0;
var tSwitch:Boolean = false;
// --------------------------------------------------------------------------------------------------
///////////////////////////////////
// start sound analytics
///////////////////////////////////
function sndAnalytics(event:Event) {
///////////////////////////////////
// sprite dot : move
///////////////////////////////////
var dot0:Sprite = stage.getChildAt(1);
dot_vr += Math.random()*.1-.05;
dot_vr *= .9;
dot_ang += dot_vr;
var vx = Math.cos(dot_ang)*3;
var vy = Math.sin(dot_ang)*3;
dot0.x += vx;
dot0.y += vy;
if (dot0.x > 380) {
dot0.x = 10;
} else if (dot0.x < 10) {
dot0.x = 380;
}
if (dot0.y > 390) {
dot0.y = 12;
} else if (dot0.y < 10) {
dot0.y = 390;
}
///////////////////////////////////
// analyse sound spectrum
///////////////////////////////////
getByte = 0;
SoundMixer.computeSpectrum(byteArr, true);
var i:int;
var w:uint = 2;
var num = undefined;
var type:String = undefined;
for (i=0; i<512; i+=w) {
var getByte:Number = byteArr.readFloat();
var n:Number = Math.floor(getByte * 100);
////////////////////////
// catch massiv amp
////////////////////////
if (i > 256 && n > 20) {
type = "massiv";
}
}
paintTunnelizer(type);
}
// --------------------------------------------------------------------------------------------------
///////////////////////////////////
// paint reactiv tunnelizer
///////////////////////////////////
function paintTunnelizer(type:String) {
zIndex1++;
modulo++;
var mc:MovieClip = new MovieClip();
mc.name = "circle__" + String(zIndex1);
mc.x = 200;
mc.y = 200;
stage.addChild(mc);
if (modulo==2) {
modulo=0;
mc.graphics.lineStyle(5,0x000033,.1);
mc.graphics.drawCircle(0,0,50);
} else {
if (type == "massiv") {
mc.graphics.lineStyle(5,0xffffff,5);
mc.graphics.drawCircle(0,0,50);
} else {
mc.graphics.lineStyle(5,0xffffff,.3);
mc.graphics.drawCircle(0,0,50);
}
}
dot0 = stage.getChildAt(1);
var getDotX:Number = Number(dot0.x);
var getDotY:Number = Number(dot0.y);
mc.x = getDotX;
mc.y = getDotY;
mc.sc = 1;
mc.alpha = 0.1;
for (var i:Number = 3; i < stage.numChildren; i++) {
var p = stage.getChildAt(i);
if (p.name.indexOf("circle__",0) != -1) {
var p1 = stage.getChildAt(i);
if (!tSwitch) {
p1.sc *= 1.2;
} else {
p1.sc *= .9;
}
p1.scaleX = p1.sc;
p1.scaleY = p1.sc;
p1.alpha+=.02;
if (type == "massiv") {
if (!tSwitch) {
tSwitch = true;
} else {
tSwitch = false;
}
}
if (p1.scaleX > 7) {
stage.removeChild(p1);
}
}
}
}
// --------------------------------------------------------------------------------------------------
///////////////////////////////////
// init
///////////////////////////////////
snd.load(new URLRequest("place path to your mp3 here"));
sndCnl = snd.play();
this.addEventListener(Event.ENTER_FRAME, sndAnalytics);
see it in action
get the source-fla
regards
drek
[Share] Load assets from external SWF files.
As learned a lot from Flash community, I would like to share mine if it could help some.
Here is a method I used in my recently Flash AS3 game, to load assets from external SWF files and use them dynamically. Download as followed.
http://www.neatfilm.com/flash/download/LoadExternal.zip
Lumineccs [ Lumines clone ]
Hey Everyone,
I managed to make Lumines in Flash9/AS3.0.
Enjoy!
http://131.104.197.22/sites/spearetest/lumines.html
- Brad
Actionscript 2.0 to 3.0 Migration
This is can be found from within the Language Reference link at the top. But just to point it out, here is the "Actionscript 2.0 to 3.0 Migration" table...
http://livedocs.adobe.com/flash/9.0/...migration.html