Who has started to develop code with scripting languages such as JavaScript or ActionScript the same, may not know all the concept of data type. With some high-level languages, in fact, it used to - at best - to declare variables without giving a specific data type, not counting those languages that do not require any statement (such as PHP - not in the strict version 5 ).
Category 'Flash'
Actionscript 3.0 for beginners: lesson # 5
How I did it: the logo Saidmade
When I was asked to draw and design the logo for Saidmade , as often happens for His creatures, I was quite agitated. However it was not possible to rely on the inventiveness of others, it was necessary to express what was to come into being and personal self. In the end I am very satisfied with the final result. The symbol that came out is exactly what we needed!
Very short trick: ADDED_TO_STAGE
per capire quando il nostro MovieClip è disegnato effettivamente sulla stage: As we have seen several times in the constructor of a class that extends MovieClip may be necessary to add the event ADDED_TO_STAGE to understand when our MovieClip is actually drawn on the Stage:
Very short trick: addEventListener () AS3, a handler more events
In Actionscript 3.0 you must use addEventListener() to intercept any event:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | / ** * Given a MovieClip mc, you set events and handlers * / ( MouseEvent . CLICK , on_click ) ; mc. addEventListener ( MouseEvent . CLICK, on_click); ( MouseEvent . ROLL_OVER , on_roll_over ) ; mc. addEventListener ( MouseEvent . ROLL_OVER, on_roll_over); ( MouseEvent . ROLL_OUT , on_roll_out ) ; mc. addEventListener ( MouseEvent . ROLL_OUT, on_roll_out); / ** * Functions hander for the above events * / e : MouseEvent ) : void { on_click function (e: MouseEvent ): void { / / Click } e : MouseEvent ) : void { on_roll_over function (e: MouseEvent ): void { / / Roll over } e : MouseEvent ) : void { on_roll_out function (e: MouseEvent ): void { / / Roll-out } |
WordPress Plugin: Flash Feed Scroll Reader
Taking a cue from post Create a simple Feed Reader with SimplePie and jQuery I created the first Plugin WordPress weblog Saidmade . Flash Feed Scroll Reader uses SimplePie to create a PHP proxy to access the different feed addresses.
Adobe AIR and the API Feedburner: reloaded
I draw inspiration by the excellent tutorial Napolux , Flex 3, Adobe AIR and the API Feedburner , which shows how to write a simple application (or widgets) using Flex 3 Adobe AIR, to show how to accomplish the same thing using Adobe Flash CS3. If you wish, and you can also use the extension for creating Adobe AIR applications. It is not necessary for the purposes of this tutorial, complete the application as an AIR executable, you can use the proposed code as a simple Flash movie to be "affixed" to your Web pages
AJAX Libraries API SWFObject on Google
Google AJAX Libraries API expands its fleet of libraries and frameworks also SWFObject , useful to insert and manipulate Flash movies on our Web pages
Actionscript 3.0 for beginners: lesson # 4
Recall the example of our code of TicTacToe (found in full on Google Code ) and begin to analyze it in detail.
Import definitions
With Actionscript 3.0 has done a great job of cleaning and accommodation nell'alberatura classes (contained in the packages, package ) used during development. In other programming languages, like C for example, when you want to use a feature must explicitly "import" in the code. This operation of "import" is necessary to allow the compiler to have all the codes and definitions related to the features we want to use. ; Actionscript 3.0 mette a disposizione l'istruzione include che è identica all' #include del C/C++. In ActionScript 3.0, however, education import should not be confused with the equivalent C / C + + #include , Actionscript 3.0 provides education include that is identical to ' #include in C / C + +. The latter, in fact, "include" the actual code that, if used or not, the final executable is compiled. The statement import is the highest level and is more "intelligent" at compile time. It is used primarily for access classes without specifying their full name. In alre words instead of using forms such as:
1 |
Very short trick: faster loops in Actionscript
In Actionscript cycles for it is good to use them with care. For example, you should use variables uint when you can:
You can also use the - not always known - the form:
Actionscript 3.0: MovieClip MovieClip over
Just a Flash Developer / Actionscript is preparing to write a function similar to a tooltip, clashes immediately with the problem of the propagation of events between overlapping MovieClips. In fact, if a MovieClip (B) is superimposed to a MovieClip (A), which responds, for example, an event MouseEvent.Mouse_OVER , by hovering on the MovieClip (B) no event be higher than intercepted by the MovieClip (A):







Latest Comments
Mark : @ Mark: Thanks for the answer. For example, if you have a code to save / use the folder ...
Mark : Thanks for the answer. For example, if you have a code to save / use the folder ...
Giovambattista Fazioli : @ Mark: in principle, absolutely, a lot depends on how and what to download. La. ..
Mark : Hello, good guide! I wanted to ask, you can use the same code to run a sql database? Instead of ...
Joseph : Hi I wanted to ask you how you can do in the post I uploaded a gallery of 50 images, for example, ...