|
-
Flashmatics
Personally ive never myself or seen anyone else create a variable using the 'Set' keyword within flash? Does this techinque even exist?
( the only place i use Set w.r.t variables is in my ASP pages)
cosider the following variable
var greeting:String = "hello there";
//this variable is available everywhere
function sums(){
var someN:Number = 5; //this is available only within this function due to using the var keyword
}
function sumMore(){
someN = 5; // as we have not used the var keyword it is just the same as defining this variable on the timeline that this function exists (although i woudnt recommend this method)
}
Hope this helps..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|