Hi all.
I am self taught... So please bear with me.
1)
When writing a function, what is best way to know if I should cast
:Void? For example:
function gotourl():Void { getURL(META); };
1.5)
In actionscript, is this considered casting? Or, "assigning a datatype"?
Please clarify.
1.75)
When would I not use :Void? Examples of other types of function/methods
that use something other than :Void?
2)
Lets say I have a video object on the stage... It has an instance name
of "myVideo"... Via actionscript, I want to assign the instance name to
another variable. What kind of datatype would that be?
--<snip>--
var theVid:Object = myVideo; // Not tested.
...
theVid.play("foo.flv");
--</snip>--
Or:
--<snip>--
var theVid:String = "myVideo"; // Not tested.
...
theVid.play("foo.flv");
--</snip>--
Is there a good technique for determining what type of datatype
something is?
Hopefully those are not too noob of questions for all you pros. :)
Have a great day/night!
Cheers,
Micky
--
Wishlists: <http://snipurl.com/1gqpj>
Switch: <http://browsehappy.com/>
BCC?: <http://snipurl.com/w6f8>
My: <http://del.icio.us/mhulse>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com