Posts

Showing posts with the label flash

Configuring Flash in Eclipse using ASDT, MTASC and Flashout

Image
Software Needed: Eclipse MTASC ASDT Flashout Java JDK Installation: Make sure the latest version of the Java JDK installed in your machine. Preferably J2SE 5.0 or higher. Install the JDK preferably in c:\program files\Java http://java.sun.com/j2se/index.jsp Download the latest version of the Eclipse IDE and extract it to c:\program files\Eclipse or any other folder you want. Create a shortcut, right click, go to properties and enter the following argument to the Target Path C:\program files\Eclipse\eclipse.exe –clean Download MTASC (Motion Twin ActionScript Compiler) and extract it to c:\program files\MTASC or any other folder you prefer. Installing ASDT (Actionscript Development Tool) . Open eclipse, Help – Software updates - Add Site. Add the following url in the location text box. http://aseclipseplugin.sourceforge.net/updates and click ok. Check ASDT and click Finish. Download the latest version of Flashout and extract the content of the archive (excluding the Flashout.as file) ...

Actionscript 3.0 - Sounds

Okie! Handling sounds in AS 3.0 is so much of a bottleneck. Well its not a matter of something wrong with Adobe or the scripting language itself. But personally I just want to avoid so much trouble of declaring variables up and down just to MUTE the sounds. If only there was a simple way to do this. So here it is. To handle sounds this is what you do. I shall give an example for you to easily understand it instead. var vRequest:URLRequest=new URLRequest("sounds\monica_yells.mp3"); var vSound:Sound=new Sound(lRequest); var vChannel:SoundChannel; public function playMonica() { vChannel = vSound.play(); } public function stopSound() { vChannel.stop(); } public function muteSound() { var lTransform:SoundTransform=new SoundTransform(); lTransform.volume=1; vChannel.soundTransform=lTransform; }