Well, the easiest way to shut off all hotspots (and it's kind of a hack,
but a pretty useful one) is to throw a big, invisible button with
property useHandCursor set to false over everything.

That won't work for motion, though. For motion the most elegant solution
is probably to use a singleton EventDispatcher to control everything:

// MotionDispatcher class
import mx.events.EventDispatcher;
[Event("start")]
[Event("stop")]
function mypackage.MotionController extends EventDispatcher {
        private function MotionDispatcher() {
                super();
        }
        public static function get instance():MotionController {
                if (_instance == undefined) {
                        _instance = new MotionController();
                }
                return _instance;
        }
        public function get stopped():Boolean {
                return _stopped;
        }
        public function set stopped(value:Boolean):Void {
                if (_stopped != Boolean(value)) {
                        _stopped = Boolean(value);
                        dispatchEvent({type: _stopped ? "stop" :
"start", target: this});
                }
        }
        private static var _instance:MotionController;
        private var _stopped:Boolean = false;
}

// In a motion-controlled movieclip with a timeline animation:
import mx.utils.Delegate;
MotionController.instance.addEventListener("start",
Delegate.create(this, play));
MotionController.instance.addEventListener("stop", Delegate.create(this,
stop));

// To stop all controlled animations:
MotionController.instance.stopped = true; 

// To restart all controlled animations:
MotionController.instance.stopped = false;

―
Mike Keesey

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of :: joshua
> Sent: Thursday, November 02, 2006 4:27 PM
> To: Flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] terminating hotspots etc
> 
> hey everyone.
> 
> ok heres the situation:
> 
> i have a flash site that I would like to terminate all functionality
> to when a "help" panel comes up.
> essentially shutting off all hotspots and motion mc's.
> 
> would there happen to be an "easy" way to make this happen...
> 
> im afraid i know the answer to this[hoping i'm wrong]...but that's
> why i'm turning to you all...
> 
> 
> cheers.
> 
> joshua
> 
> _______________________________________________
> 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

_______________________________________________
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

Reply via email to