We are currently working on making some changes in DIF. Soon we’ll have candy for you all! Check back for news!

(As2) swapDepths Vs (As3) setChildIndex

Posted: November 6th, 2007 | Author: Ivan Valadares | Filed under: Actionscript2, Actionscript3, Tutorial | 7 Comments »

AS2 was an anarchy language, if you need to put a movieClip visually above all the things in the stage, you can do movieClip.swapDepths(this.getNextHighestDepth()). So it works, but in reality your are swapping your movieClip with a movieClip that didn’t exist, so in AS3 you can’t do that but we have setChildIndex method. You Can do setChildIndex(numChildren-1)

AS2
AS2
AS3
AS3


Using Flade

Posted: October 12th, 2007 | Author: Idoru | Filed under: Actionscript2, Flade Physics Engine, Physics Engine, Tutorial | 10 Comments »

Hi there,
Recently i had a project that had to be done in AS2, and to top that it needed to have some physics.

My first thought was, well i'll just use the AS2 version of APE, and then remembered that there isn't one.
Then i found flade.
Made by Alec Cove ( the same guy that does APE ).
Now I wanted to see some tutorials or documentation, but as expected for such an 'ancient' engine there were none.
So I decided to make a simple little tutorial on how to throw things arround using flade.

Files: Flade Example

Demo: Flade Demo

You will need Flash 8, and the Flade files found here.

So here's the code:


Underlined link style in Flash

Posted: September 4th, 2007 | Author: tufao | Filed under: Actionscript2 | 9 Comments »

You want to have that tipical html effect when rolling over a text link showing text underlined? That is one of thouse things that is hard to understand how Marcromedia/Adobe didn't support this from the very beginning.

Sure you can have your text field as html and have your content defined by code with html tags and all, but do you really want to go through all that trouble. Shouldn't that be more simple just using static text?

I came up to a quite simple solution:

Basically styleSheet is created with the underline style which is applied for every object on a MovieClip. Check it out (AS2):

That's it! The underline effect on a link roll over is active for every static or dynamic text field on stage.