Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Поиск рулит! Сообщения за день Все разделы прочитаны
 

Вернуться   Форум Flasher.ru > Flash > Общие вопросы о Flash (не затрагивающие ActionScript)

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему Ответ
Старый 13.11.2012, 11:50
Andru1988 вне форума Посмотреть профиль Отправить личное сообщение для Andru1988 Найти все сообщения от Andru1988
  № 1  
Ответить с цитированием
Andru1988

Регистрация: Feb 2012
Сообщений: 11
По умолчанию Вопрос по xml

Добрый день форумчане. Не знал в какую тему засунуть этот вопрос поэтому написал сюда. Есть флеш анимация, текстовую информацию она берёт из xml файла, кнопки в этом xml файле на англиском языке, мне их нужно перевести на русский, как только я это делаю, анимация перестаёт работать и выдаёт ошибку.

Вот пример xml:
PHP код:
<Nbnk>
    <
English>
        <
Txt>NBG/NKG END-SUCTION PUMPS</Txt>
        <
Idleloop Url="media/intro.swf">
        </
Idleloop>
        <
Page Url="media/main.swf">
            <
Page Url="media/highlights.swf">
                <
Menu>HIGHLIGHTS</Menu>
                <
Txt>
                    <
Head>HIGHLIGHTS</Head>
                    <
Copy>The Grundfos NB/NK/NBG/NKG end-suction pump programme has been specifically designed and built for moving large volumes of water and other liquids in industrial applicationsBenefits include:</Copy>
                    <
Bullit>Unmatched reliability and efficiency.</Bullit>
                    <
Bullit>Reduced life cycle costs.</Bullit>
                    <
Bullit>Full range in cast iron as well as stainless steel with flow ranges up to 1,500 m3/h.</Bullit>
                    <
Bullit>Handling of even the most demanding liquids.</Bullit>
                </
Txt>
                <
But>
                    <
Head>FLANGES</Head>
                    <
Copy>Loose flanges are standard on the bigger pumps and optional on the smaller variantsThe loose flangesfacilitating installationare available in DINISO and ANSIAvailable in Ductile Casting flange and Stainless steel casting flange.</Copy>
                </
But>
                <
But>
                    <
Head>SHAFT SEALS</Head>
                    <
Copy>Dedicated shaft seal solutions (single and doubleare available to handle most kind of liquids encountered in industries.</Copy>
                </
But>
                <
But>
                    <
Head>IMPELLERS</Head>
                    <
Copy>NB/NK/NBG/NKG pumps can be fitted with different impellers in cast ironbronze or stainless steel to accommodate the viscosity and nature of any pumped liquid.</Copy>
                </
But>
                <
But>
                    <
Head>PUMP HOUSING</Head>
                    <
Copy>NB/NK/NBG/NKG pump housings are available in three materialsCast iron and two stainless steel grades (EN 1.4401EN 1.4517), covering everything from clean water to demanding chemicals.</Copy>
                </
But>
                <
But>
                    <
Head>MOTOR</Head>
                    <
Copy>NB/NK/NBG/NKG pumps can be equipped with motors in a variety of configurations to meet the specific demands of various applications.</Copy>
                </
But>
                <
But>
                    <
Head>BEARING BRACKETS</Head>
                    <
Copy>The NKG pump comes with a choice of three bearing bracketsThe standard bracketthe heavy-duty oil bracket and the heavy-duty grease bracketoffering long life.</Copy>
                </
But>
                <
But>
                    <
Head>COUPLINGS</Head>
                    <
Copy>The NK pump comes with a choice of two couplingsThe standard coupling and the spacer couplingoffering supreme serviceability.</Copy>
                </
But>
            </
Page>
            <
Page Url="media/apps.swf">
                <
Menu>APPLICATIONS</Menu>
                <
Txt>
                    <
Head>APPLICATIONS</Head>
                    <
Copy>Grundfos’ complete range of single-stage end-suction pumps offers reliable solutions for every conceivable industrial applicationincluding:</Copy>    
                    <
Bullit>Processfoodbeveragepharmabiofuelchemicals.</Bullit>
                    <
Bullit>Utilitycoolingheatingcleaningfire fightingwater treatment.</Bullit>
                </
Txt>
                <
But>Chemicals</But>
                <
But>Cooling</But>
                <
But>Heating</But>
                <
But>Water treatment</But>
                <
But>Cleaning</But>
                <
But>Fire fighting</But>
            </
Page>
            <
Page Url="media/seals.swf">
                <
Menu>SHAFT SEALS</Menu>
                <
Txt>
                    <
Head>SHAFT SEALS</Head>
                    <
Copy>Whatever the temperature and nature of the liquid running through your systemGrundfos offers a dedicated shaft seal to ensure efficient operation and peace of mind:</Copy>
                    <
Bullit>Aggressive or corrosive liquids.</Bullit>
                    <
Bullit>Abrasive liquids.</Bullit>
                    <
Bullit>Poisonous and flammable liquids.</Bullit>
                    <
Bullit>High-viscosity and sticky liquids.</Bullit>
                    <
Bullit>High pressure.</Bullit>
                    <
Bullit>High or low temperature.</Bullit>
                </
Txt>
                <
But>
                    <
Head>SINGLE</Head>
                    <
Copy>The single shaft seal meets all basic requirements of circulating water.</Copy>
                </
But>
                <
But>
                    <
Head>TANDEM</Head>
                    <
Copy>The tandem shaft seal is ideal when liquid temperature exceeds 140°C and external cooling of the shaft seal is requiredThe solution is also suitable if there is a high risk of crystallisation.</Copy>
                </
But>
                <
But>
                    <
Head>BACK-TO-BACK</Head>
                    <
Copy>The-back-to back shaft seals offer perfectly safe pumping of aggressivehazardous and toxic mediaChoose a back-to-back solution for dangerousflammable or very abrasive media.</Copy>
                </
But>
            </
Page>
            <
Page Url="media/brackets.swf">
                <
Menu>BRACKETS</Menu>
                <
Txt>
                    <
Head>BEARING BRACKETS</Head>
                    <
Copy>The long-coupled pump range is available with three different versions of bearing brackets suited for a wide range of applications.</Copy>
                </
Txt>
                <
But>
                    <
Head>STANDARD (NK/NKG)</Head>
                    <
Copy>Standard brackets feature deep-groove ball bearings that are virtually greased for lifeThe minimum life is 17,500 operating hours.</Copy>
                </
But>
                <
But>
                    <
Head>HEAVY DUTY GREASE (NKG)</Head>
                    <
Copy>The angular contact/roller bearings are equipped with a dispenser system for re-greasing of the bearingsThe solution offers a minimum life of 100,000 operating hours.</Copy>
                </
But>
                <
But>
                    <
Head>HEAVY DUTY OIL (NKG)</Head>
                    <
Copy>Designed for high temperature applications the angular contact/roller bearings are oil-lubricated to ensure reliable operation at all timesThe solution offers a minimum life of 100,000 operating hours. </Copy>
                </
But>
            </
Page>
            <
Page Url="media/blueflux.swf">
                <
Menu>BLUEFLUX®</Menu>
                <
Txt>
                    <
Head>BLUEFLUX®</Head>
                    <
Copy>Blueflux is Grundfos’ own label for high efficiency motor technologyIt has been designed specifically for pumps and represents the very best from Grundfos within energy-efficient motor and frequency drive operation.</Copy>
                    <
Copy>When a motor carries the Blueflux® label you are guaranteed that the solution either meets or exceeds international legislative requirementsincluding the EuP IE3 grade.</Copy>    
                </
Txt>    
            </
Page>
            <
Page Url="media/maintenance.swf">
                <
Menu>SERVICE</Menu>
                <
Txt>
                    <
Head>MAINTENANCE AND SERVICE</Head>
                    <
Copy>Maintenance and service of NB/NK/NBG/NKG pumps have been made simple and cost-effective with a “back pull-out” system.</Copy>
                    <
Copy>This allows the impeller to be removed without dismantling the pump housing or the pipes.</Copy>
                    <
Bullit>Heavy-duty bearing brackets.</Bullit>
                    <
Bullit>More than 600 service partners in 56 countries.</Bullit>
                </
Txt>
                <
But>
                    <
Head>CLOSE-COUPLED NB/NBG</Head>
                    <
Copy>The close-coupled NB/NBG is a space-saving solution that is easy to install and requires no alignment.</Copy>
                </
But>
                <
But>
                    <
Head>LONG-COUPLED NK/NKG</Head>
                    <
Copy>Impeller and shaft section are removed while the motor remains in place to eliminate the need for subsequent realigning.</Copy>
                </
But>
            </
Page>
            <
Page Url="media/range.swf">
                <
Menu>FULL RANGE</Menu>
                <
Txt>
                    <
Head>FULL RANGE</Head>
                    <
Copy>The comprehensive range of NBG/NKG end-suction pumps handles flow rates up to 1,200 m3/and liquid temperatures from -25°C to 160°C.</Copy>
                    <
Copy>Variants are available in cast iron as well as in stainless steel to accommodate every industrial requirement.</Copy>
                    <
Copy>Material options are EN 1.4408 and EN 1.4517 (Duplex). All pumps are certified according to ISO2858.</Copy>
                </
Txt>
            </
Page>
        </
Page>
    </
English>
</
Nbnk

Старый 13.11.2012, 12:24
lexa2000lexa вне форума Посмотреть профиль Отправить личное сообщение для lexa2000lexa Найти все сообщения от lexa2000lexa
  № 2  
Ответить с цитированием
lexa2000lexa

Регистрация: Sep 2005
Сообщений: 950
В какой кодировке вы сохраняете xml? и какую ошибку выдает. Сохранять нужно в UTF-8.

Старый 13.11.2012, 12:33
Andru1988 вне форума Посмотреть профиль Отправить личное сообщение для Andru1988 Найти все сообщения от Andru1988
  № 3  
Ответить с цитированием
Andru1988

Регистрация: Feb 2012
Сообщений: 11
ошибку не выдаёт(выдаёт её если удалить <English>), сохраняю в кодировке в UTF-8. Когда меняю кнопку с ангийского на русский (например кнопку <Menu>HIGHLIGHTS</Menu> ) то она просто не отображается в анимации ни на английском ни на русском - её просто нет.
Анимацию делал не я, мне её дали и сказали изменить с англ на русский всё. Вот думаю, может анимация не может проиграть русский текст......

Добавлено через 23 минуты
По ход начал разбираться.......в анимацию загружен шрифт который не содержит русскую кириллицу......над подгрузить русский шрифт

Добавлено через 22 часа 52 минуты
Чёт у меня ничего не получается, разкомпелирую флешку с помощью Flash Decompiler Trillix. Но она потом не собирвается, слетают Экшн Скрипт. Может я не так что то делаю.....
Очень прошу знающих людей помочь, так как я в этом не рублю а на работе напрягли сделать и уже пинают по голоыве, времени просто нет......вот ссылочка на анимацию:
http://narod.ru/disk/63680438001.7f6.../anim.rar.html
Кто поможет буду очень благодарен......

Добавлено через 23 часа 5 минут
помогите плиз!(


Последний раз редактировалось Andru1988; 13.11.2012 в 12:56.
Создать новую тему Ответ Часовой пояс GMT +4, время: 19:45.
Быстрый переход
  « Предыдущая тема | Следующая тема »  
Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


Часовой пояс GMT +4, время: 19:45.


Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.