How to compile and examples for Flash Player 10 or ASTRO BETA
May 16th, 2008
As many of you know ASTRO is in Public beta.
Here are some links on how to compile:
Text instruction – by Mike Chanmbers
Video Instruction – by Lee Brimelow
A promising sound example:
flash produced sound example – by Keith Peters
Here is my “3D” example, quick and dirty:
[as]
package {
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Vector3D;
import flash.net.URLRequest;
public class ASTRO extends Sprite
{
private var _loader:Loader;
private var mc:MovieClip;
public function ASTRO()
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.EXACT_FIT;
_loader = new Loader()
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete, false, 0, true);
_loader.load(new URLRequest(”record.gif”));
}
private function loadComplete(evt:Event):void
{
mc = new MovieClip();
mc.rotationY = 0;
mc.rotationZ = 0;
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove, false, 0, true);
mc.opaqueBackground = true;
_loader.x = – (_loader.width * 0.5);
_loader.y = – (_loader.height * 0.5);
mc.addChild(_loader);
mc.x = (_loader.width * 0.5);
mc.y = (_loader.height * 0.5);
addChild(mc);
}
private function onMove(evt:MouseEvent):void
{
mc.rotationZ = stage.mouseY;
mc.rotationX = stage.mouseX
}
}
}
[/as]
Also here are some classes that I saw through code completion. I don’t really know what to do with them yet. Maybe someone else will and will let me know (I have too much work and GTAing to do
).
- flash.text.engine Package (over a dozen classes)
- __AS3__.vec.Vector (that is wierd)
- flash.display.GraphicsBitmapFill
- flash.display.GraphicsPathCommand
- flash.display.TriangleCulling (that sounds interesting)
- flash.geom.Vector3D
- flash.filters.ShaderFilter
Happy Coding!
Last 5 posts in actionscript
- HOWTO Create a Facebook App using FlexBuilder - June 24th, 2009
- Roman Numeral/Arabic Convertion AIR App - Johnny V Now Available - December 25th, 2008
- How to convert Roman Numerals and Arabic numbers in ActionScript 3 - December 17th, 2008
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
- Flash Player 10 Dynamic Sound Generation - May 20th, 2008
Last 5 posts in as3
- HOWTO Create a Facebook App using FlexBuilder - June 24th, 2009
- Guitar Synth for Flash - February 27th, 2009
- Abstract Thermometer AIR app - January 22nd, 2009
- Roman Numeral/Arabic Convertion AIR App - Johnny V Now Available - December 25th, 2008
- How to convert Roman Numerals and Arabic numbers in ActionScript 3 - December 17th, 2008
Last 5 posts in flash
- HOWTO Create a Facebook App using FlexBuilder - June 24th, 2009
- Roman Numeral/Arabic Convertion AIR App - Johnny V Now Available - December 25th, 2008
- How to convert Roman Numerals and Arabic numbers in ActionScript 3 - December 17th, 2008
- Flash Player 10 Pure Flash Keyboard using SampleDataEvent - September 3rd, 2008
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
Last 5 posts in flash player
- Guitar Synth for Flash - February 27th, 2009
- Flash Player 10 Pure Flash Keyboard using SampleDataEvent - September 3rd, 2008
- Flash Player 10 API online no zip file - May 22nd, 2008
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
Last 5 posts in Flex Builder
- HOWTO Create a Facebook App using FlexBuilder - June 24th, 2009
Last 5 posts in Uncategorized
- Flash Player 10 API online no zip file - May 22nd, 2008
- Josh's Diarrheatic Blog is becoming a flash playground for me - March 10th, 2007
- Compile Flex 2.0 w/ Dreamweaver and SDK w/ code complete - August 5th, 2006
- Programming Is Like Sex - July 9th, 2006
- About - August 6th, 2005
Entry Filed under: Flex Builder, Uncategorized, actionscript, as3, flash, flash player
1 Comment Add your own
1. rory | August 9th, 2009 at 5:35 am
Thanks for the tutorial man!
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
Trackback this post | Subscribe to the comments via RSS Feed