I read somewhere that assets on the stage can't be larger then 2880
pixels in either direction. Maybe you should split up that button of
yours. (I don't wanna know why you'd need such a big button)

2006/6/19, Dhiraj Girdhar <[EMAIL PROTECTED]>:
Hi All,

        Please check following code... I am trying to make a button
whose size is greater than stage size then in that case button is not
created.

Please help.

Thanks in advance.


Stage.scaleMode = "showAll";
_root.createEmptyMovieClip("rootButton", 100);

var rootBtn = _root.rootButton;
rootBtn.onPress = function() {trace("Mouse Pressed");};

with (rootBtn) {
                        var topLeft = -5000;
                        var bottomRight = 10000;

                        beginFill("#FF000", 100);
                        moveTo(topLeft, topLeft);
                        lineTo(topLeft, bottomRight);
                        lineTo( bottomRight, bottomRight);
                        lineTo(bottomRight, topLeft);
                        lineTo(topLeft,topLeft);
                        endFill();
}

Regards:
Gaurav
_______________________________________________
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