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
_______________________________________________
[email protected]
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