We're sorry, but this discussion has just been closed to further replies.
Tags:
Yay! Thank goodness you're still here :P Thanks for solving the other problem.
I'm not sure if this is too complicated: I have a starting scene of stick figures walking around the screen. You click on a stick figure and a "screen" drops down from the top to show something else. I want the "screen" to have a degree of transparency so the stick figures can still be seen walking around the stage in the background, but at the same time I want them to be rendered unclickable/inactive as long as the "screen" is there.
Is this hard to do? I tried some googling and I didn't get much. Probably not searching up the right keywords. All I got was something called "levels" which I don't really understand.
onPress() function. Let's say that you call this variable active and that at the start of the movie it is true then when the screen is activated you set this variable to false. You'd then check for it in onPress() like this...mymovie.onPress = function () { if (active == false) return;
// All the usual stuff would go here...
}Hey. My button symbols works with onPress. Make sure you put down the instance name, and put in the code in the actions - frame.
If you want to put in the code inside the symbol itself, the code i'm using is on(release).
example:
on(release){
gotoAndPlay(1);
}
Wendy said:Another question! How exactly do I make buttons function (click --> something happens/plays)? Buttons as in button symbols. onPress doesn't work (I assume that's only for movie clips?)
on(release) is actually from Actionscript 1.0 which is also from when the original Button type comes from. This should work fine in Actionscript 2.0 movies however and if makes life pretty simple. In theory on(release) is the same as onRelease() but I always go with what works in practice rather than theory. ;-)© 2009 Created by Rob Saunders on Ning. Create Your Own Social Network