![]() |
|
||||||||||
|
|||||
|
сорри вообще, за мой ненужный вздор... Спасибо что поправляете
![]() итак прелоадер - [SWF (width="500",height="500",frameRate="100",backgroundColor="0x000000")] public class mySiteFlowersPreloader extends Sprite { /* loader */ private var loader:Loader; public function mySiteFlowersPreloader() { addEventListener(Event.ADDED_TO_STAGE, init); } /** * Inits */ private function init(event:Event = null):void { *** loadSWF(); } private function loadSWF():void { var FilePath:String = "site/mySite.swf"; loader = new Loader(); loader.load(new URLRequest(FilePath)); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, initSWF); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); } private function initSWF(event:Event):void { var mySWF:Object = event.currentTarget.content; addChild(mySWF as Sprite); } } } [SWF (width="1220",height="700",frameRate="31",backgroundColor="0x000000")] public class mySiteFlowers extends Sprite { /* Flower Sprite*/ private var aboutFlower:Flower; private var galleryFlower:Flower; private var contactFlower:Flower; public function mySiteFlowers() { trace("My Site @Flowers@"); debugger = new MonsterDebugger(this); addEventListener(Event.ADDED_TO_STAGE, init); } /** * Inits */ private function init(event:Event):void { removeEventListener(Event.ADDED_TO_STAGE, init); stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; initObjects(); initListeners(); loadXMLs(); } /** * Objects */ private function initObjects():void { aboutFlower = new Flower(); aboutFlower.init(videoAboutFlower, RATE, "imageAboutFlower", this); galleryFlower = new Flower(); galleryFlower.init(videoGalleryFlower, RATE, "imageGalleryFlower", this); contactFlower = new Flower(); contactFlower.init(videoContactFlower, RATE, "imageContactFlower", this); } ************ public class Flower extends Sprite { /* Video FLV in MovieClip with Animation*/ private var video:MovieClip; /* Rate for make Vector Animations*/ private var RATE:uint = 0; /* For Images button Control*/ private var _parent:Sprite; private var _image:String; public function Flower():void { } /** * Init * */ public function init(video:MovieClip, RATE:uint, _image:String, _parent:Sprite):void { this.video = video; this.RATE = RATE; this._parent = _parent; this._image = _image; initObjects(); initListeners(); } ****************** вот как то так спасибо за ваше внимание Добавлено через 5 минут
__________________
мира и гармонии Последний раз редактировалось 3p.station; 09.10.2010 в 03:46. |
![]() |
Часовой пояс GMT +4, время: 14:04. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|