Infrequently Asked Questions and Other Interesting Threads

[size=4]Interesting Threads:[/size]

ActionScript 4.0

ByteCode, machine code and SWF Disassembly

Class and Garbage Collection

Custom Namespace

Does trace Slow Down Execution?

Extending More Than One Class (Composition)

Flash vs. Flex Compilers

Function Scope

Get & Set: Several Explanations and Pros/Cons

How built in are Flash’s Built in Classes?

Import: Compile or Run Time

Inlining a Function

Instance names in Flash

Load/Run Order

The Molehill Thread

N Iterations of K Function alls, or K Function Calls of N Iterations?

To OOP, or Not to OOP?

OOP vs. Procedural

Palette Swaping

Polymorphism

Pros/Cons of Anonymous Functions

Reference to a global function with the name same as class?

Replace Class Method

Should I Start with AS1/2 or AS3?

Simple Trigonometry Tutorial

Sprite vs. MovieClip

Towards a deeper understanding of Flash

What IDE are you using for ActionScript, and why?

Why can strings be null?

[size=4]FAQ:[/size]

I’ve noticed a lot of questions asked with increasing frequency so I thought it would be fitting to have a FAQ thread in this forum.

Feel free to PM me with questions/suggestions/need for clarification/etc.

How do you use {any function name}?

[SIZE=3]General Syntax/Miscellaneous Questions[/SIZE]

Why do my if statements always or never work?

Why does hitTest detect collisions even if my movie clips aren’t touching?

What are advantages of strict data types for variables[URL=“http://www.kirupa.com/forum/showpost.php?p=2000353&postcount=27”]?

Can I change the frame rate of my movie?

How come I must click on my Flash movie in IE before I can interact with it?

How can I reference objects using a variable?

[SIZE=3]Function Related Questions[/SIZE]
[SIZE=3][/SIZE]
What’s the difference between function myFunction(){} and myFunction = function(){}?

[U]Why do functions created using a loop reference the last iteration of that loop?

How do I pass arguments to an event handler?
[/U]
[SIZE=3]TextField Related Questions[/SIZE]

When I try to add numbers to a text field, why do they appear beside the text?

How can I use htmlText to call an ActionScript function?

[SIZE=3]External Movie/Data Related Questions[/SIZE]

My movie works on its own but doesn’t when I load it into another movie. What gives?

How come I can’t use data from LoadVars or XML after I call load?

Why does my preloader not appear for a while then start at an insanely high number?

How can I access the properties of a loaded image/movie?

Why doesn’t onLoad work the same as onClipEvent(load) or for loading movies?

[SIZE=3]OOP Related Questions[/SIZE]

Why can’t I add properties to a class?

Why won’t some obscure functions, such as setTimeout, work in my classes?

How come my class won’t work even though there is nothing wrong with the code?

:hoser: