Archive

Posts Tagged ‘ActionScript 3’

news review -> 14th week of 2009

April 6th, 2009 2 comments
Categories: flash, flex, general, news review

news review -> 2nd week of 2009

January 9th, 2009 3 comments

here are some articles i was interested in this week…

> BUG: AS3 Sound.isBuffering « Kenny Bunch
> GraphicMaina: a Network for Free Flash, Photoshop and Vector
> Using Custom Primitives in Papervision « Professional Papervision3D Book
> WS-Blog » WSPluginSwitcher: Cocoa based tool for switching Flash plug-in on OS X
> Take a Design Pattern to Work Part I: Identifying the Problem | ActionScript 3 Design Patterns
> 10 RIA Predictions for 2009
> Setting up a Rubik’s Cube in Papervision « Professional Papervision3D Book
> Soundstep | SomaUI Open Source Flash
> Happy birthday BigSource! | BigSource Blog
> 2008 In Review - Flash Platform Shortcomings | Chad Udell
> How can Adobe make learning ActionScript 3 easier? at Mike Chambers
> Text Layout Framework Team: ActionScript Pagination Example
> Solution: AS3 Security Error #2122 with 300 redirects | steven sacks
> Unity3D \m/’s - Adobe should buy them. « RockOnFlash \m/ :: John Grden
> Measuring Drawing API 2.0 performance by Thibault Imbert < ByteArray.org
> GreenSock » Sneak Peek - What’s Next for the GreenSock Tweening Platform
> iPhone App Reviews - AIR application | Peter Elst
> The Fancy Pants Adventure World 2 | Armor Games
> Adobe, Intel and Broadcom bringing
Flash and AIR to a TV, set-top box or Blu-ray player near you. | Serge Jespers
> Drawing boxes on the fly on Box2D : Emanuele Feronato
> All Flashers and Flexers Want This | Flashmech
> Andrew Shorten » Enterprise RIA Series - part 1: What is an RIA?
> Andrew Shorten » Enterprise RIA Series - part 2: The role of an RIA in the enterprise
> Geolocation in Papervision3D - Plus some Quaternion Stuff | zupko.info
> Andrew Shorten » Adobe TV video tutorial - Skinning Flex applications with Fireworks
> Away3D Basics 6 - Materials and Light (Part 1) > Flash Magazine
> Sprouts now supports Flex Debugger (FDB), Flex Compiler SHell (FCSH) and Continuous Integration (CI)!
> SomaText standalone | Soundstep, daily ActionScript.
> Take a Design Pattern to Work Part III : Loosening Up | ActionScript 3 Design Patterns
> Flash Catalyst Tutorial
> 10 Most Bizarre Programming Languages Ever Created - NETTUTS
> Importance of Event.clone « Kenny Bunch
> Flash: Added To Stage and cacheAsBitmap tip : TroyWorks
> Aral Balkan - Why learning ColdFusion today is a waste of time.
> Wait till I come! » Using Twitter as a data provider to automatically fill forms
> The Flash Blog » Flash is being redefined
> Paul Gregoire’s Blog » Media manipulation in realtime with Xuggler
> Flex Best Practices Presentations
> Soma Tutorial - From SomaUI to FDT | Soundstep, daily ActionScript.
Categories: flash, flex, general, news review

pause Timer with ExtendedTimer in ActionScript 3.0

October 16th, 2008 34 comments

hey guys, last week i needed to pause several timers and resume them later on. i ran into a problem which i try to explain in an little example.

so let’s say you start a Timer with 1000 milliseconds delay and stop it after 600 milliseconds. if you call Timer.start() again, it starts with a new delay of 1000 milliseconds again. there is no built-in possibility to resume the timer for the remaining 400 milliseconds. i thought “nothing easier than that, just call Timer.pause()”. but there was no such method, so i decided to write my own ExtendedTimer class and add the pause functionality. now i like to share it with you…

> ExtendedTimer.as
package com.fjakobs.utils
{
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	/**
	 * @author fjakobs
	 */
	public class ExtendedTimer extends Timer
	{
		private var _startTime : Number;
		private var _initialDelay : Number;
		private var _paused : Boolean = false;

		public function ExtendedTimer(delay : Number,
									  repeatCount : int = 0)
		{
			super(delay, repeatCount);
			_initialDelay = delay;
			addEventListener(TimerEvent.TIMER,
						    onTimer,false,0,true);
		}

		private function onTimer(event : TimerEvent) : void
		{
			_startTime = new Date().time;
			delay = _initialDelay;
		}

		override public function start() : void
		{
			if(currentCount < repeatCount)
			{
				_paused = false;
				_startTime = new Date().time;
				super.start();
			}
		}

		public function pause() : void
		{
			if(running)
			{
				_paused = true;
				stop();
				delay = delay - (new Date().time - _startTime);
			}
		}

		public function get paused() : Boolean
		{
			return _paused;
		}

		public function get initialDelay() : Number
		{
			return _initialDelay;
		}
	}
}

“FCSH-Wrapper” renamed to “BigSource Zarkov”

July 18th, 2008 1 comment

the great tool “FCSH-Wrapper” is from now on called “BigSource Zarkov”. the developers decided to rename it, because they are planning to add support of other compilers than mxmlc and the flash compiler shell (FCSH). they allready added support for the AS2 compiler mtasc. for more detailed information visit the developers blog on http://blog.bigsource.de

eclipse update url http://update.bigsource.de/update

Flash Player 10 -> my first test

May 17th, 2008 4 comments

today i started to play with the new flash player 10 and that’s the first result!

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

here is the code executed by an ENTER_FRAME listener.

private function render(event : Event) : void
{
	var count : int = _holder.numChildren;
	var tempChild : Shape;
	while(count--)
	{
		tempChild = _holder.getChildAt(count) as Shape;
		tempChild.rotationX += 20;
		tempChild.rotationY += 10;
		tempChild.rotationZ += 5;
	}
}

hopefully adobe will publish the docs for the new classes soon! i like to play with the new sound and drawing possibilities…

Categories: ActionScript 3, flash