Recent News

Very Complete list of AS3 classes

Posted by sortofme on October 5th, 2009

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.

http://www.adrianparr.com/?tag=as3

check if swf is a local or online file

Posted by sortofme on October 5th, 2009

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:

Actionscript:
  1. if(stage.loaderInfo.url.indexOf("file:") != -1){
  2.     _configXmlPath = "config.xml";
  3.        trace("local file");
  4. }else {
  5.     trace("Server");
  6.     domain = URLUtils.getDomain( stage.loaderInfo.url);
  7. }

I hope this is seflexpainatory.

colormatrix filter change the Hue

Posted by sortofme on July 21st, 2009

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}});

disabling the yellow tab Borders in Flash

Posted by sortofme on June 29th, 2009

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;
}

mashertest

Posted by sortofme on June 23rd, 2009

ActionScript 3: Using URLLoader to send and load server variables « Tushar Wadekar

Posted by sortofme on June 22nd, 2009

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

aborting a loading

Posted by sortofme on June 12th, 2009

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” « Gena’s Blurb

Posted by sortofme on June 8th, 2009

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, a new slick AS3 animation package goes public`

Posted by sortofme on May 27th, 2009

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/

HAPPY 2009, may this year be flash-properous

Posted by sortofme on January 4th, 2009

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 | Recent Posts


designed and coded by: noesi
bottom