Hi! Welcome...

I\'m a Flash Developer based in Singapore. My main passion and strength is in Flash but I am interested in all the other technologies that make up the interactive world today. DesignFission is meant to be a portal for me to share what I know and what I learnt.

12 February 2010 ~ 0 Comments

Master Volume Control in AS3.0

Applied to a single button. Frame 1 shows that sound is on, and frame 2 shows that it’s off.

sound_mc.buttonMode = true
sound_mc.addEventListener(MouseEvent.CLICK,toggleSound)

function toggleSound(e:MouseEvent){
var tempMC:MovieClip = e.currentTarget as MovieClip
var sTransform:SoundTransform = new SoundTransform(1,0);
if(tempMC.currentFrame == 1){
tempMC.gotoAndStop(2)
sTransform.volume = 0;
}else if(tempMC.currentFrame == 2){
tempMC.gotoAndStop(1)
sTransform.volume = 1;
}
SoundMixer.soundTransform = sTransform;
}

31 January 2010 ~ 3 Comments

Garbage Collector in AS3

The Garbage Collector in AS3 is smart, but it’s driving me crazy.
Being new to AS3, I didn’t realise that removing a child from the display list does not kill all it’s listeners, sounds, and some other stuff I don’t know.
When it affected me, I stopped for a moment and thought why is it built this [...]

13 January 2010 ~ 0 Comments

14 Days of jQuery

This is exciting news indeed. jQuery has launched a website – “14 Days of jQuery” to coincide with their launch of the latest build of the arguably best javascript framework.
http://jquery14.com/

09 January 2010 ~ 0 Comments

New FFD Issue

Check out the latest issue of the FFD Magazine:

Tags: , , ,

07 January 2010 ~ 2 Comments

Must have SG iPhone Apps

Pardon me for posting a design and flash unrelated post.
I’ve just got my iPhone recently, and have been looking around for free apps to install.
Being a Singaporean, the first thing I wanted to do was sift out, from the thousands of US-centric apps, apps that were tuned for the local community.
So here’s the [...]

05 January 2010 ~ 0 Comments

stop all sounds in Flash AS3

You can call it the global mute as well. What this line of code does is actually just turning down the entire flash’s volume down to 0. This is great for websites or games alike when a “Sound Off” or “Mute” feature is needed.
SoundMixer.soundTransform = new SoundTransform(0);

Tags: ,

05 January 2010 ~ 2 Comments

AS3 Fur/Hair Generator

Stumbled upon this great flasher’s blog recently while trying to research for something I want to do:
http://en.nicoptere.net/?p=574
The speed and quality of the fur generator is, I believe, the best out there right now.
Awesome stuff.
Other generators:
http://blog.inspirit.ru/?p=131
http://projects.stroep.nl/fur/

Tags: , , ,

05 January 2010 ~ 9 Comments

AS3: remove All Children in a DisplayObject

function removeChildrenOf(mc:MovieClip):void{
if(mc_mc.numChildren!=0){
var k:int = mc.numChildren;
while( k — )
{
mc.removeChildAt( k );
}
}
}

Tags: ,

31 December 2009 ~ 5 Comments

Update your Flash CS4

If, for some reason, you’re still on Flash CS4 10.0, upgrade to 10.0.2 NOW.
My Flash has slowed down dramatically since my FLA got huge. Clicking on elements on the stage was agony as it takes a few seconds for Flash to react.
Little did I realise that Adobe released a fix for it, and I [...]

Tags:

29 December 2009 ~ 1 Comment

Overlapping Movieclips in AS3

Back in AS2, when a MovieClip(MC) is underneath another one, as long as the MC that is on top doesn’t have any button actions (eg. onRollOver, onRelease etc), assigning button actions to the MC below will work.
Not anymore in AS3.
A quick fix is to give the following properties to the MC on top [...]

Tags: ,
UA-2806383-1