Articles Tagged 'Graphics'

Flash Actionscript contest: erase tool

I state it now: you do not win anything! Apart from pride - if anything - to have solved the problem.

QUEST - APPLICATION

How to create a tool to erase, delete, clear, a "portion" of the graphics drawn with the API in Actionscript 3.0?

, espongono la proprietà graphics , un puntatore ad un altro oggetto che “serve” tutte le funzioni grafiche di disegno runtime. With Actionscript 3.0 Some visual objects, such as MovieClip or Shape , exhibiting the properties graphics , a pointer to another object that "serves" all the graphical features of drawings runtime. For example, you can develop a simple drawing application. , in modo semplice e rapido. This object graphics allows to draw anything, for example on an object Shape , in a simple and rapid. The problem is that once something is drawn can clean up everything but not a single part.

Draw a line is easy:

1
2
3
4
5
6
Shape = new Shape ( ) ; var myShape: Shape = new Shape ();
myShape ) ; addChild (myShape);
/ /
. lineStyle ( 2 , 0xff0000 , 1 ) ; myShape. graphics. lineStyle (2, 0xFF0000, 1);
. moveTo ( 0 , 0 ) ; myShape. graphics. moveTo (0, 0);
. lineTo ( 100 , 100 ) ; myShape. graphics. lineTo (100, 100);

Drawn something you can clean everything with the simple call to clear() :

1
. clear ( ) ; myShape. graphics. clear ();

But if I want to "delete" only one point? Or from the coordinates 50.50 to 100.100?

Searching the Internet I found several examples of "design applications" and, in fact, the tool offers no support or "delete".

Do you have any solution?

More ...

10 reasons to upgrade to Adobe Flash CS3

2007-11-21_170314 For some developers just need to know that there is a new version of their preferred development package to run and buy the upgrade. Others, and rightly so, maintain a more calm and "pretend" to know the actual upturn in the new version before changing their habits. In the case of Adobe Flash CS3 is not much to wait, given the many changes that have suffered from the package when Macromedia was acquired by Adobe.
Here, then, 10 simple, but important, reasons which, in my personal opinion, enough to convince you to upgrade to Adobe Flash CS3 . I will, of course, only the features that impressed me personally, this is not intended as an exhaustive list of all the many changes introduced with the CS3 suite, only a fly to anticipate some features of CS3.

1. Installation

The installation is nice and fast, compared to previous versions. It includes, among other things, with all Adobe products (Dreamweaver CS3, Photoshop CS3 extended, etc ...) which makes installation / removal and update a real pleasure.

2. Backward Compatibility

One issue often overlooked, but always taken into account in the history of Flash: The ability to manage previous versions of the product. In Flash CS3 has all the tools to migrate that to manipulate both the previous versions of our movies. We find this possibility in debugging (debugging a separate Actionscript 2.0 and Actionscript 3.0) is in the process of completing the movie. Immediately write applications in Flash Actionscript 3.0 may be counterproductive in certain contexts. If your target site has a high traffic you may find that many users have not yet installed the latest versions of Flash Player for your browser and then would not see the movie. However, as already said, Flash CS3 allows to develop Flash applications mantendedo backward compatibility and therefore does not see in this a large ostocalo nell'upgrade of the product.

3. GUI and IDE

Panel minimizedFlash CS3 New Panel The IDE Flash CS3 (like Dreamweaver CS3) has been revised to better. The panels (see figure at left), often uncomfortable in previous versions, have been completely redesigned and now their use is less invasive notevolemente. Panels in icon mode Besides the possibility to minimize the panels (see figure at right) is found which makes a real nice interface and functionality. When a panel is in icon mode occupies much less space and with a simple click you can open the first main panel always visible.
All the IDE, in short, was reviewed including the central area with the window for editing and graphic code. Do not you point out any changes or you'll ruin the surprise ...

New Flash CS3 IDE

More ...


Stop SOPA