Please register or login. There are 0 registered and 1221 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s December 13 - 02:13am EST 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Programming /
 

  ActionScripts  
 
 Author 
 Date Written 
 Tools 
fmuke Dec 03, 2009, 08:31pm EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List Replies: 3 - Views: 1502
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.name, obj);
showChildren(obj);
} else {
trace(obj);
}
}
}


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 Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> 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 Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: ActionScripts
Vitaliy ... this is why we need [code]. :(

Unless ActionScript natively supports smiley syntax ...

fmuke Dec 04, 2009, 08:54pm EST Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> 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



Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Newsletter 
 
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.