[Flashcoders] Scoping Issue with a Function - Help, please

2006-05-22 Thread Loren R. Elks
Hi: Can someone help me with a scoping issue? SWF A is being loaded into SWF B. Currently, there's a function located in SWF A that is triggered by a user clicking on a movieclip in SWF A. Basically, I am trying to make it trigger from a button in SWF B, instead of triggering by a button in

Re: [Flashcoders] Scoping Issue with a Function - Help, please

2006-05-22 Thread eka
Hello :) use mx.utils.Delegate class :) [code] myButton.onPress = Delegate.create(_root, _root.action) ; [/code] With Delegate.create method you can create a virtual method with your scope and your method. EKA+ :) 2006/5/22, Loren R. Elks [EMAIL PROTECTED]: Hi: Can someone help me with a