Archives of April 2009

Class URLLoader allow to load resources online and verify it state to take another actions.

An use example could be to check a server to show an alert when it was down:


Source codeClick with the right button to obtain source code.

  • Share/Bookmark
Apr
20
Arcadio 1 comment

GameInFlex http://www.gameinflex.com is a Flex application to show games and applications made with Adobe Flex technology.

www.gameinflex.com

¡Add your application to the list! and share your development.

GameInFlex is made with Flex, Cairngorm, LCDS, Spring e Hibernate

  • Share/Bookmark

ArrayCollection class wraps Array class and give it new functionalities but it blocks access to Array methods like push, pop and so on.

However, you can use ArrayCollection data source directly:

ArrayCollection.source=array;
  • Share/Bookmark
Apr
15
Arcadio 1 comment

Version 1.2 of Flexi with the following improvements:
- Component .as
- Functions to show/hide loaded content: showIFrame() and hideIFrame()


Source codeClick with the right button to obtain source code.

  • Share/Bookmark

Flex Image extended to support focus and tab navigation.

package com {
	import flash.events.KeyboardEvent;
	import flash.events.MouseEvent;
	import flash.ui.Keyboard;

	import mx.controls.Image;
	import mx.managers.IFocusManagerComponent;

	public class ImageFocus extends Image implements IFocusManagerComponent {

		public function ImageFocus() {
			super();
			addEventListener(KeyboardEvent.KEY_DOWN, mouseDownHandler);
		    tabEnabled=true;
		    focusEnabled=true;
		}

	    protected function mouseDownHandler(event:KeyboardEvent):void {
	    	if (event.keyCode==Keyboard.SPACE) {
				dispatchEvent(new MouseEvent(MouseEvent.CLICK));
	    	}
	    }
	}
}
  • Share/Bookmark
Creative Commons License
This blog is under Creative Commons licence, unless indicated otherwise.
Special thanks to Mark James for the icon set used in this blog.