ok let me see if I get this right then:
class MyForm extends MovieClip{
// ok so now I can call a movieclip.MyForm and it will execute the code
that is inside this ( add a function to the button onPress ), the button
should be created here or it can be an symbol in the lybrary that I will
put on the stage with a normal attachMovie ? this is the part that I
don't get...
private var btClose_mc:Button;
// just declared a variable that is only accessed inside this class, so
If I use btClose_mc anywhere else it will be undefined right ?
private function onLoad(){
bt.Close_mc.onPress = Delegate.create(this, this.myFunction);
}
// same thing as before, this function is only visible inside of the
class, and it only be avaible when the button is created, it will assign
myFunction to it's onPress event handler.
private function myFunction(){
doSomething
}
// the function that will be called when you have the onPress event fired.
Marcelo
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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