I'm not entirely sure about AS3, but couldn't you use FlashVars to override the stage.scaleMode = StageScaleMode.NO_SCALE; ? If so, then you would just wrap it in SWFObject for display and use flashvars in your setting with that parameter added. I think that would be the easiest.
I could be corrected though.

HTH,
Best,
Karl


On Nov 30, 2011, at 12:13 PM, Patricia Britt wrote:

I have some compiled captivate files I am troubleshooting. They have a widget. The widget does not allow scale. My authors do not have time to re-do all the captivate sims - hundreds.

I know the widget contains code to over-ride scale
public function StaticWidget(param1:Number = NaN, param2:Number = NaN, param3:ICaptivateWidgetData = null)
        {
            var onStageLoad:Function;
            var propertiesDialogWidth:* = param1;
            var propertiesDialogHeight:* = param2;
            var propertiesObject:* = param3;
            onStageLoad = function (event:Event) : void
            {
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, onResizeDispatchEnterPropertiesWindow);
                return;
            }// end function

and has some external callback functions
 private function init() : void
        {
            try
            {
                if (ExternalInterface.available == true)
                {
ExternalInterface.addCallback("isStatic", this.isStatic); ExternalInterface.addCallback("getInspectorParameters", this.getInspectorParameters); ExternalInterface.addCallback("setInspectorParameters", this.setInspectorParameters); ExternalInterface.addCallback("setParameters", this.setParameters); ExternalInterface.addCallback("cpSetValue", this.cpSetValue); ExternalInterface.addCallback("getEditModeWidth", this.getEditModeWidth); ExternalInterface.addCallback("getEditModeHeight", this.getEditModeHeight); ExternalInterface.addCallback("IsReadyForSnapShot", this.IsReadyForSnapShot);
                }
            }
            catch (e:Error)
            {
            }
            return;
        }// end function
        function isStatic() : Boolean
        {
            return true;
        }// end function


can i use the above external calls in a js file to over-ride the no scale option? or will i be fighting with scale the entire length of the animation?
Thanks
Patty
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to