ActionScript 3.0 :: Difference Between Set And Get Function?
Apr 22, 2010What is the difference between set and get function?
View 2 RepliesWhat is the difference between set and get function?
View 2 Repliesjust wondering if theres a difference between using
function x() {
}
and
x = function(){
}
i find sometimes,but rarely function x() will not run while the other will??
I'm wondering what the difference is between creating a new object with a class or function? For example:
Code:
class snake{
this.id = index++;
this._x = 0;
this._y = 0;
}
or
Code:
function snake(){
var snake = new Object();
snake.id = index++;
snake._x = 0;
snake._y = 0;
}
Whats the difference between a variable and a function? Ive started reading an actionscript book.....and to me it seems there the same.
View 4 RepliesI working on a game project in Flash AS3. I need to pass data from one class (Game) to other class objects (Ships) on EnterFrame and performance is starting to be a issue. I was wondering is there a difference in performance between calling to the Ship a direct function or dispatching an event which the Ship can listen.
another question is where should I put the enterframe function. Is it better to use only one enterframe function and call the methods dispatch events from there, or it will be wiser to put the enterframe in the different objects (Ships)? note: some Ships are inactive most of the time.
What is the difference between the following two function definitions in ActionScript 3?
f = function(arg) {
// body
}
and
function f(arg) {
// body
}
If i keep aside the loose coupling advantage of Events, what is the difference in the way of working of
1) Simple function call
2) Dispatching an event
is there a difference between classifying a function 'private' or 'private static' in a singleton? It seems that they both do the same thing. Maybe some difference in performance?
[Code].....
anyway im using flash as3 for about 6 months, and im still kinda confuse in this things like getters and setters, and idk what you call that but here's and example :
private function myBoolean():boolean
{
//codes here //
{
idk how to use it, and what it differs from getters and setters,
wat's the difference between finding a angle using Math.atan2(y,x) function and by finding using the movie clip's rotation (mc._rotation*Math.PI/180);
View 9 Replieswhat is the diference between:
function show()
{
}
versus
show = function()
{
}
I use this two methods to build a function.there is a difference?
I've got a Vector of ViewToActionMap objects, which have following constructor:
public function ViewToActionMap(_forModule:eModule,
_forAction:eViewAction,
_toFunction:Function,
[code].....
what are the differences between '.this' and '.stage'?
View 4 RepliesWhat are the main differences between the versions?
View 3 Repliesi am intermediate programmer.but i think that has ended 2 days before when i came across a simple while loop.which i can't figure it out how the stuff works..[code]from 1 - 9 ,that is (1,2,3,4,5,6,7,9);I want to know difference between pre and post additions in the loops.if the first program adds the increment value after each loop , then why didn't it prints the (0) value. and i also want to know that ,Why this methods does not have any difference on for loops....
View 9 RepliesWhat's the difference between if, while and do..while besides the way they are presented?
[Code]...
Both are working, can be used, but I'd like to ask what's the difference between '}' and '};'. Let me know if I asked something very stupid.
View 4 RepliesBut what is the difference between [] and (). I used () in the random letters tutorial and it didn't work. When i used [] it worked.
View 2 Replieswhat's the difference between for example:
var H:int;
var _H:int;
I am trying to load random external SWF's using XML. I'm not having any problems loading JPG files, but the SWF's just won't load. Is there a difference between JPG's and SWF's when loading using loadMovie? Pointers to tutorials or pages in the manual would be great.
Here's a snippet of the code:
[AS]
function firstImage() {
if (p<(total-1)) {
p=random(total);
[Code]....
I was looking for the difference between the different content types in Flash CS3/CS4 - Browser/Screen Saver/Application etc - especially it's capabilities and limitations. Of interest are Standalone player and Application.
View 3 RepliesEach line in the dynamic textbox has 15 characters, and yet you can notice the difference in the length(between each line).
I want to make the length of each line look same if they have same number of charaters.
Suppose I'm building a game where your ship moves with left/right keys.I assign a speed variable which is the number of pixels the ship will move when you press one of the said keys.Currently (on the tutorial I'm following) I have:
Quote:
static const speed:Number = 150.0
Can't I just replace it:
Quote: var speed:int = 150
Also, what's the difference between var a:Number and var a:int? And is there any important reason to add the .0 in 150.0?
I was just wondering what the difference between these two is.
View 1 RepliesWhat is the Difference between macromedia flash and flash cs4. What is the Advantage of Flash cs4. Why Flash CS4 came..?
View 4 RepliesWhat is the difference between set and get functionality?
View 1 RepliesWhat is the difference between FMS 3 and FMS 3.5? Is 3.5 a totally new version or just some kind of service upgrade?
View 8 Repliesdifference between XML and XMLList in my example code? I am passing a node to the function and extracting the url of the file:
private function getFile(node:XMLList):String {
var file:String;
for(var i:uint=0; i<node.children().length(); i++) {
trace("Test 1: "+node.children()[i].@id);
[Code]....
Why do I have to have 'current' as XML and not as XMLList? I thought XMLList's with length == 1 are handled as XML's anyway, aren't they?
Just want to clear a very basic doubt am having for quite some time.
Is LCDS and FDS the same
What differences are there betwee Flash CS4 and Flex, besides the GUI of Flash?
View 3 Replies