Thanks to Adrian Parr , here is a very nice and up to date list of almost all available Action script classes, frameworks and engines out there.
Recent News
Often, when projects become bigger and more complicated, it often is necessary gto let the application behave different when exported within the IDE and the actual LIVE project. I use this snippet, right at the beginning of my baseclass, to define in which environment the flash client is running:
-
if(stage.loaderInfo.url.indexOf("file:") != -1){
-
_configXmlPath = "config.xml";
-
trace("local file");
-
}else {
-
trace("Server");
-
domain = URLUtils.getDomain( stage.loaderInfo.url);
-
}
I hope this is seflexpainatory.
Or you could just randomize the “hue” color parameter which is handily a 0-360 scale in TweenFilterLite:
theHue = (Math.round(Math.random() * 360)) ;
TweenFilterLite.to(my_mc, 2, {colorMatrixFilter:{amount:1, hue:theHue}});
Flash has these bright yellow borders around buttons and other MovieClips, when the user uses his tab keys. I haven't found a way to change the look of these borders yet, so in the meantime, to have them disabled, I use following short code snippet:
Button.prototype.tabEnabled=false;
for(var obj in _root){
_root[obj].tabEnabled = false;
_root[obj]._focusrect=false;
}
ActionScript 3: Using URLLoader to send and load server variables « Tushar Wadekar
here is the most accurate description on how to send vars to a server script from flash, without opening anew browser window
In AS3 only, you can now abort a loading operation, before it has completed.
Senocular has written a post about it here.
in summary:
var loader:Loader = new Loader(); var request:URLRequest = new URLRequest("image.jpg"); loader.load(request); addChild(loader); // abort loading if not done in 3 seconds var abortID:uint = setTimeout(abortLoader, 3000); // abort the abort when loaded loader.contentLoaderInfo.addEventListener(Event.COMPLETE, abortAbort); function abortLoader(){ try { loader.close(); }catch(error:Error) {} } function abortAbort(event:Event){ clearTimeout(abortID); }
Nasty Yellow Highlight on Buttons When “Tabbing”When you’re in a flash movie and you hit the “tab” button to go from button to button flash likes to put a bright bold yellow highlight around the button that is awfully ugly and annoying. This is how you get rid of that awful yellow highlight that flash produces by default.
movieClipName.tabEnabled = false;Note: this code will also make the button not “tabbable”. Now when you hit the tab button on the keyboard it will ignore that button all together. You can still utilize it with ‘getfoucus’.
if you have nested moveclips then use this code too:
parentMovieClipName.tabChildren = false;No more nasty default yellow highlights around anything that is tabbable in your flash movies.
Nasty Yellow Highlight on Buttons When “Tabbing” « Gena’s Blurb
Tweensy, developed by the notorious "Lost in Actionscript" blog owner Shane McCartney. I am personally a fan of Greensock's Tweenlite package, and there aren't any AS3 projects I haven't used it, but I must say Tweeny is the first one that actually woke my attention. It seems slick, fast, (very fast), and best of all are the effect packages it can be extended with. I also tried out the abilities to tween along complicated motion guides, and must say, I was really waiting for that one!
I will keep a few of my experiments with it posted here, but hey, flash community, there is movement!!
http://www.lostinactionscript.com/blog/index.php/2009/01/05/tweensy-goes-public/
There we are, 2009 came around quicker than thought. The end of 2008 turned out quite turbulent, let's see what 2009 brings for surprises, but my feeling tells me it will be an event rich year. It has just started, so let's not waste any time, the end of the decade will be around the corner faster than we expect it again.
One of my ambitions I want to accomplish before Februar starts, is a revamp of this Blog. It is in the meantime getting quite a bit of attention, and it is slowly growing from a personal codeDump to a online actionscript and flash related Code reference for a wider community of online users.
This is great news, but this also means I have a bit more responsability in making it clearer, more usable, and qualitatively better, to get more interaction from the community, and encourage more discussions and exchange of Knowledge.
Big words for a small Blog.
greetings,
Simon
Recent Comments