Created
July 18, 2011 12:55
-
-
Save vectart/1089432 to your computer and use it in GitHub Desktop.
Баннер «перетяжка» на проектах Рамблера; Ramblers's advertisment flash banner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.security.allowDomain("images.rambler.ru","ad.rambler.ru", "ad2.rambler.ru", "ad3.rambler.ru", "www.rambler.ru"); | |
Stage.scaleMode = "noScale"; | |
Stage.align = "L"; | |
resizeListener = {}; | |
resizeListener.parent = this; | |
resizeListener.onResize = function(){ | |
this.parent.fon_mc._width = Stage.width; | |
this.parent.front_mc._x = (Stage.width - this.parent.front_mc._width)/2; | |
}; | |
Stage.addListener(resizeListener); | |
resizeListener.onResize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment