|
-
I wonder if a "exist" function exists! (Flash 5)
Hey guys. I'm just asking if there is a certain way to do this :
If (_root.instancename EXISTS) [
and blalbalbla
]
Do you know a way to do this? I know perhaps it's stupid enough I just don't know it. Well thanks!
-
Senior Member
use true or false
code:
if(playerAlive == true){
//then do something...
}
//or
if(playerAlive) {
//this is the same as above
}
When the clip of whatever is attached, then a var turns true, when removed it turns false.
-
it works with objects too???
-
Ok nevermind I see what you mean. Thanks!
-
Heli Attack!
code:
if(variable == undefined){
//the variable doesnt exist yet
}
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
|