Posted: May 1st, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: as3, box2d, papervision 3d, physics, pv3d | No Comments »
Get your learn on:
http://pv3d.org/2008/12/20/papervision3d-with-box2dflash-hello-world/
http://content.madvertices.com/articles/PV3DTraining/default.htm
http://blog.tartiflop.com/2008/08/first-steps-in-papervision3d-part-4-lighting-and-shading/
Fixes for Box2D compile errors, that I ran into:
http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html
PV3D official documentation, really nice:
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/index.html
After my testing, for what I’m trying to do, PV3D and Box2D do not provide the performance that I’m looking for, so fixing to try some other routes.
Posted: April 28th, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: as3, as3 framework, flash frameworks, framework | No Comments »
Just a list of frameworks for quick reference:
Maybe more to come.
Posted: March 25th, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: as3, external interface, flash, string manipulation, url variables | No Comments »
Quick and easy:
-
import flash.external.ExternalInterface;
-
-
var urlVar1:String = ExternalInterface.call("window.location.href.toString");
I only needed what was at the ‘?’ and after so a bit of string manipulation and ding, it was done.
-
var urlVar2:String = urlVar1.slice(urlVar1.indexOf("?"), urlVar1.length);
I’m sure there are better way’s of doing this, but this works for now.
Posted: March 17th, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: 1010, as3, compiler error, flash | No Comments »
In an application with a ton of lines of code I get this compiler message:
TypeError: Error #1010: A term is undefined and has no properties.
Thanks, I guess.
Adobe, you wanna throw me a bone and fix that to actually say what the problem really is?
I did end up finding the problem, but that message from the compiler merited a blog post. Now get back to work.
Posted: March 6th, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: as3, wordpress api | No Comments »
I was searching for something else and ran upon these, should prove to be very useful links in the future.
http://blog.absentdesign.com/as3-library-for-the-wordpress-api/
http://www.kirupa.com/forum/showthread.php?t=323331
Posted: March 1st, 2010 | Author: josh | Filed under: as3, flash, programming | Tags: Action Script 3, as3, full screen, visual programming | 2 Comments »
Original article can be found here: http://www.ilike2flash.com/2009/07/full-screen-in-actionscript-3.html
Great write up on full screen flash utilizing AS3.
Code from write-up, for quick reference:
-
// Import classes.
-
import flash.display.StageScaleMode;
-
-
// Fullscreen toggle mothod.
-
function setFullScreen():void
-
{
-
if (stage.displayState == "normal")
-
{
-
stage.displayState = "fullScreen";
-
stage.scaleMode = StageScaleMode.NO_SCALE;
-
}
-
else
-
{
-
stage.displayState = "normal";
-
}
-
}
-
-
// Mouse event listener.
-
button1.addEventListener(MouseEvent.CLICK, goFull);
-
-
// Method to call full screen toggler.
-
function goFull(event:MouseEvent):void
-
{
-
setFullScreen();
-
}
Also, remember in your embed to set ‘allowfullscreen’ to ‘true’.