March 2010
M T W T F S S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Tracing your code in Firefox

You know you can trace your code and look to result in output panel. But how test your program if you see to .swf file in browser? Please read more about Flashbug first.

And lets create simple program and test it with Flashbug in Firefox.

Create package:

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class Main extends MovieClip
{
//constructor
public function Main():void
{
trace(”i want check [...]

Flashbug - Add-ons for Firefox

Recently i find good add-on for Firefox browser. You can download Firebug from official site of Mozilla. A Firebug extension for Flash. Displays all the running .SWF file trace output. Requires Flash Player Debugger to work properly.

Please click to Add to Firefox button:

Then click to Get flash player debugger

Use snippets if you don't want write the same code every time.

Please read first about snippets and how it use in FlashDevelop.

Here i want to tell you about aSnippet. aSnippet enables you to keep all of your frequently used code snippets (As3, As2, Js, PHP, HTML, MXML…) in one place that’s accessible from any computer. Also //aSnippet is also available via any browser, no [...]

Code Snippets in FlashDevelop

Recently i find good button on FlashDevelop. It call ‘Code Snippets’.

So, what mean snippet? Snippet is a programming term for a small region of re-usable source code, machine code or text. Ordinarily, these are formally-defined operative units to incorporate into larger programming modules. Snippets are often used to clarify the meaning of an otherwise “cluttered” [...]

The Essential Guide to Flash CS4 with ActionScript

Recently find book The Essential Guide to Flash CS4 with ActionScript

Editorial Reviews

For any professional designer or developer working in the world of web technologies or multimedia, Flash is the must-have application, and knowing how to use it effectively is vital. Add in ActionScript 3.0, and Flash becomes an even more powerful tool for the development [...]

Parameters of function

Please look to the simple code below:

function myFunction(a:Number, b:Number):Number
{
var rez:Number;
rez=a+b;
return (rez);
}

var sum1:Number=myFunction(1,2);
var sum2:Number=myFunction(4,3);
var sum3:Number=myFunction(10,5);

trace(sum1);
trace(sum2);
trace(sum3);

There you can see parameters (a:Number, b:Number) of function myFunction. If you will use it then you can change your variable ‘rez’ any time;) Do it with:

var sum1:Number=myFunction(1,2);
var sum2:Number=myFunction(4,3);
var sum3:Number=myFunction(10,5);

As i right clear this is the main idea of function parameters:)

Here result [...]

What mean word 'return' in the end of function?

I saw word ‘return’ a lot in the end of function but just now i find info what does it mean:)
So i created simple code:

function myFunction()
{
var a:int=2;
var b:int=3;
var c:int;
c=a+b;
return (c);
}

var myVariable:int=myFunction();
trace(myVariable);

Here i created simple function myFunction and in the end of body myFunction() you can see command ‘return (c)’. So its mean i want get [...]