Please register or login. There are 0 registered and 494 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s November 30 - 04:10pm EST 
Hardware Analysis
Forums Product Prices

  Latest Topics 

More >>


  You Are Here: 
/ Forums / Programming /

 Date Written 
fmuke Dec 03, 2009, 08:31pm EST Report Abuse
ok... i'm familiar with a lot of programming language such as C , JAVA ....
and learning by myself actionscript and i'm having a problem with the " is " syntax
in the code below...

function showChildren(dispObj:DisplayObject):void {
for (var i:uint = 0; i < dispObj.numChildren; i++) {
var obj:DisplayObject = dispObj.getChildAt(i)
if (obj is DisplayObjectContainer) { ////////////////<---------here what " is" for? ? //comparison
trace(, obj);
} else {

Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
Vitaliy (Administrator) Dec 03, 2009, 10:32pm EST Report Abuse
>> Re: ActionScripts
It's equivalent to Java's "instanceof" or Python's "instanceof" - both probably better describe what they do.

Dec 03, 2009, 10:42pm EST Report Abuse
>> Re: ActionScripts
Vitaliy ... this is why we need [code]. :(

Unless ActionScript natively supports smiley syntax ...

fmuke Dec 04, 2009, 08:54pm EST Report Abuse
>> Re: ActionScripts
thanks for the replies ... sorry about the smiley faces in the code. i didn't realize it... i just copy and paste the code



  Topic Tools 
RSS UpdatesRSS Updates

A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.