Archive for the 'FLASH IDE' Category

Page 3 of 5

Dragging and Dropping in Actionscript 3.0

Ok this is a little tip for Dragging your clips on Actionscript 3.0, remember how we used a lot of tricks in Flash to drag a clip from other points that weren’t the anchor point , well in Actionscript 3.0 (herenow AS3) is quite simple to do that by using the new Point class.
Class Point.
Package flash.geom
Class public class Point
InheritancePoint Object
Language version: ActionScript 3.0
Player version: Flash Player 9
The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.

So here’s a very short example made in AS3 in wish no matter where your grab the Sprite, it will be dragged from that specific Point.
Heres the example :

This movie requires Flash Player 10

Open in New Window

Here’s the code:

?View Code ACTIONSCRIPT3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
bear.addEventListener(MouseEvent.MOUSE_DOWN, startbearDrag);
stage.addEventListener(MouseEvent.MOUSE_UP, stopbearDrag);
bear.addEventListener(Event.ENTER_FRAME, dragbear);
 
var clickOffset:Point = null;
 
function startbearDrag(event:MouseEvent) {
	clickOffset = new Point(event.localX, event.localY);
}
 
function stopbearDrag(event:MouseEvent) {
	clickOffset = null;
}
 
function dragbear(event:Event) {
	if (clickOffset != null) {
		bear.x = mouseX - clickOffset.x;
		bear.y = mouseY - clickOffset.y;
	}
}

Flash Lite 3 Update for Flash CS3 Professional

A great update for Flash Lite Developers
Flash Lite 3

Author, test, and publish mobile content for the latest release of Flash Lite software, which can support video (FLV) and rendering of SWF files for Flash Player 8 when integrated within a mobile phone or embedded web browser. Authoring support for Flash Lite requires both an update to Device Central CS3 as well as an update to Flash CS3 Professional software.

Download the update for Flash CS3 here
Download the update for Device Central CS3 here

Flash is on the AIR ( AIR:Flash CS3 Professional Update Beta 1 )

Adobe Labs released an Integrated Runtime (AIR) update for Flash CS3 beta 1 this will let you create, package , preview and publish .air Desktop applications right within your Flash CS3, to keep it simple this means that with a Command + Enter (Ctrl +Enter on PC) you’ll be exporting AIR applications.
AIR on Flash

H.264 Format supported in Flash Player, AIR Export within Flash, Now that’s a busy week. : )

My copy of Essential Actionscript 3.0 by Colin Moock arrived

My copy of Essential Actionscript 3.0
This morning at my doorstep was the long awaited Amazon Box containing my copy of O’Reilly Essential Actionscript 3.0 by Colin Moock the longtime waited follow up to what is known in the Flash programing world as The Colin Moock Book, and I’m happy to say it was worth the waiting.
The book it’s equally appealing to first time actionscript users and long time actionscript veterans, Mr. Moock has such a way to make translations from a computer based language to a much more accessible and easy to understand form.

ActionScript 3.0 presents perhaps the most substantial upgrade to Flash’s programming language ever. The enhancements to ActionScript’s performance, feature set, ease of use, cleanliness, and sophistication are simply staggering. Revolutionary improvements abound. Essential ActionScript 3.0 is an update to Essential ActionScript 2.0, once again focusing on the core language and object-oriented programming with some coverage of the Flash Player API. Approximately half of the book focuses on the new features and functionality of ActionScript 3.0, while the rest focuses on changes between the 2 and 3 releases.

The Book is divided in three parts,
Part 1 Actionscript form the ground up.
Where he provides and exhaustive coverage of the core Actionscript language.
Part 2 Display and Interactivity.
Where he explores the techniques for displaying content on screen and responding to input events. ( This is for all of you interactivity lovers ).
Part 3 Applied Actionscript Topics.
In this part the book focuses on Actionscript code-production issues .

To be sincere if you are really a Flash Beginner or a seasoned user of the Flash Technology this book should really be at your desk as a trusty companion in those long coding nights. the book can be found at Amazon Click here to buyor at O’Reilly and don’t forget to visit Mr.Moock site.

Cheers and happy reading!!!.
.swfgeek

Flash in the Can Toronto 2007 Videos

The people of Flash in the can (FITC) had put up a video section on their site that show some of the things happening at Toronto in this years FITC be shure to check them out.
fitcVideo
Flash in the can Videos.