![]() |
Почему не работает в браузере?
Подскажите, пожалуйста, почему swf-ка работает правильно,
а когда вмонтируеш ее в html не видет фотки! portfolioInfo = new XML(); portfolioInfo.ignoreWhite = true; timeline = this; baseurl = _url.substr(0,_url.lastIndexOf("/")+1); portfolioInfo.load(baseurl + "xmlportfoliowithimageandtext.xml"); portfolioInfo.onLoad = function(){ portfolioTag = this.firstChild; trace( count = portfolioTag.childNodes.length); for (child = 0; child < count; child++){ currentPicture = portfolioTag.childNodes[child]; currentThumb = menu_mc.createEmptyMovieClip("thumbnail"+child,child); currentThumb._x = child * 50; image = currentThumb.createEmptyMovieClip("thumbnail_image",0); image.loadMovie(baseurl + currentPicture.attributes.THUMB); currentThumb.NAME = currentPicture.attributes.NAME; currentThumb.IMAGE = currentPicture.attributes.IMAGE; currentThumb.TEXT = currentPicture.attributes.TEXT; currentThumb.onRollOver = currentThumb.onDragOver = function(){ showName_txt.text = this.NAME; } currentThumb.onRollOut = currentThumb.onDragOut = function(){ showName_txt.text = ""; } currentThumb.onPress = currentThumb.onDragOver = function(){ image_mc.loadMovie(baseurl + this.IMAGE); info_txt.text = "Loading..."; timeline.loadVariables(baseurl + this.TEXT); } } } Заранее благодарен! |
предположение:
попробуй portfolioInfo.load(baseurl+"xmlportfoliowithimageandtext.xml"); поставить после portfolioInfo.onLoad = function(){..} |
Пробовал....
Тоже самое! |
| Часовой пояс GMT +4, время: 11:34. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.