Помогни ни да направим Uroci.net по - богат! Добави урок

Flash 3D XML Gallery - Flash CS4

d0brin   трудност:    видян: 17573

 

II. Изготвяне на .xml файла за галерията

 

1. Задължително картинките ни трябва да са точно 25 (не повече, не по-малко иначе се разваля 3D формата)

 

2.  Създайте на компютъра си нов .xml файл и го преименувайте на: thumbnail_list_2

 

3. Ето и какво трябва да е съдържанието му:

 

<?xml version="1.0" encoding="utf-8"?>
<thumbnails>
 <thumbnail filename="interface.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Interface Screen"
  description="AISNSim New Design Interface Screen." />
  
 <thumbnail filename="gate.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Gate Screen"
  description="This the AISNSim gate control screen. This particular screen obtain diffarent functions." />
  
 <thumbnail filename="database.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Planetary Database Screen"
  description="This is the AISNSim Planetary Database screen. From here you can dial any planet which is in the database. " />
  
 <thumbnail filename="biosensors.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Bio Sensors Screen"
  description="This is the Bio Sensors Screen of AISNSim. IN it you can run infection diganostics and view detiled map of the city nad much more funtions." />
  
 <thumbnail filename="AtmosphereVanting.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Bio Sensors Screen - ATM Funtion"
  description="This is the Atmosphere vantion scenario of the Bio Sensors Screen." />
  
 <thumbnail filename="Galaxy Map.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Galaxy Map Screen" 
  description="This is the Galaxy Map Screen. FOr the moment it is just a design view with no functions in it. " />
  
 <thumbnail filename="Grounding Stations.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Grounding Stations [Out of Date]"
  description="This screen is no longer support since version 1.2.0. This is why it has so bad design." />
  
 <thumbnail filename="incoming.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Gate Screen Incoming"
  description="This is feture of the gate screen. It shows an incoming wormhole." />
  
 <thumbnail filename="Incoming Hives.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Long Range Sensonrs - Hive SHip Incoming"
  description="This is an Incoming Hive Ships scenario which is part of the Long Range Sensors Screen." />
  
 <thumbnail filename="loading address.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Databse Screen - Loading Address"
  description="This is how the databse screen loads an address for dialing into the gate screen." />
  
 <thumbnail filename="lockdwon.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Lockdown Screen"
  description="This is the Lockdown screen of AISNSim. From here you can iniciate the lockdown in exchange of password." />
  
 <thumbnail filename="lockdwon2.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Lockdown Screen - Active"
  description="This is how the Lockdown screen looks like when it is Activated." />
  
 <thumbnail filename="LongRange.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Long Range Sensors"
  description="This is the Long Range Sensors Screen. It is one of the most interesting screens in the sim." />
  
 <thumbnail filename="Mainframebreach.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="MainFrame Breach Screen" 
  description="This is the MainFrame Breach Scenario of the Sim. It activates when you detect intruder into the sistem." />
  
 <thumbnail filename="mEDICAL.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Medical Screen [Incomplete]"
  description="This is going ot be part of the AINSim as a new feature. The Medical Scanner feature." />
  
 <thumbnail filename="PowerControl.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Power Control Screen [Out of Date]"
  description="This screen hasn't been updated since version 1.3.5 that is why the design of it is so bad." />
  
 <thumbnail filename="satrdrive.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Stardrive Screen"
  description="This is the Stardrive screen. There are many functions so download the sim and explore them." />
  
 <thumbnail filename="sd1.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Slef-Destruct Screen"
  description="This is the SD screen. This is in AT Preparation Mode waiting for activation." />
  
 <thumbnail filename="SD2.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Self-Destruct Screen - Active"
  description="This is how the screen looks when it is ARMED." />
  
 <thumbnail filename="sd3.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Self-Destruct Screen - Aborted"
  description="This is how the Self-Destruct Screen looks like when it is Aborted." />
  
 <thumbnail filename="singal.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Incoming Sginal"
  description="This is part of the gate screen. In this moment of the Sim we recieve an Offworld Signal and the system is trying to recognize it." />
 
 <thumbnail filename="sublight.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Sublight Engines - Activated"
  description="FThis is part of the Stardrive Screen. In this screen you see the Sublight Engines activated." />
  
 <thumbnail filename="SubmergeProtocols.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Submerge Protocols Screen"
  description="From this screen you cna Rise and Submerge the City of Atlantis." />
  
 <thumbnail filename="transporters.jpg" url="http://dpproductions.110mb.com/aisnscreenshots/" target="_self"
  title="Surveillance Cameras"
  description="In this screen from the Survvailance Cameras you can observe the transporter." />
 
</thumbnails>

 

Обяснения по кода:

 

thumbnail filename - Името на картинката ви. (В случая имате места за 25 картинки), примерно: azsymtuk.jpg

 

url - Това е линка към който ще се отива като се натисне картинката и линка който ще се показва на .swf файла на галерията.

 

target= - Това е как искате да се отваяр линка (в нов прозорец: _blank  и в същият: _self )

 

title - Тука напишете заглавието на картинката.

 

description - Тук напишете описанието за картинката. 

 

 

III. Изготвяне на картинките и тяхната директория 

 

 

1. Направете нова папка с името: thumbnails

 

Тази папка е там, където ви е и .swf файла и също по същият начин трябва да се качи в интернет директорията на уебсайта ви.

 

2. Всяко еднa картинка задължително трябва да бъде оразмерена от оригиналният си размер на размер: 140x105 px

 

Това е всичко после Upload - .swf file, .xml file и папката thimbnails с директорията на уебсайта ви и така получавате 3D Галерия. 

 

Урок: By d0brin

 

Свали работните файлове: ТУК


Страници: «1 2

Коментари (6)

d0brin на 22.04 2009 в 14:59ч.
ТУка можете да видите как изглежда галерията като е интегрирана във УебСайт:

http://dpproductions.110mb.com/aisndownloads/
dainov на 17.07 2009 в 15:53ч.
Всичко е супер, но не мога да го подкарам... изкарва ми 18 грешки, пробвах и AS 2 и 3... все същото... липсват ми добавки най-вероятно... Ето и списък на грешките
The class or interface 'flash.display.Sprite' could not be loaded.
The class or interface 'Scene3D' could not be loaded.
The class or interface 'Camera3D' could not be loaded.
The class or interface 'Dictionary' could not be loaded.
The class or interface 'Plane' could not be loaded.
The class or interface 'URLLoader' could not be loaded.
The class or interface 'Event' could not be loaded.
Expected a field name after '.' operator.
1172: Definition org.papervision3d.scenes could not be found.
1046: Type was not found or was not a compile-time constant: Scene3D.
1180: Call to a possibly undefined method BitmapFileMaterial.
ilstmo на 27.08 2009 в 13:46ч.
dainov успя ли да решиш проблема и как? Че и при мен се получава така :(
d0brin на 06.01 2010 в 20:09ч.
свали файловете и виж там :)
eduard19916766 на 12.05 2010 в 21:58ч.
За човек който не е работил с тази програма е невъзможно да изпълни задачата.Аз лично се опитах и стигнах до " Под него направете още едно Dynamic Field".
grep на 21.07 2010 в 00:29ч.
Добавеният код посмъртно няма да тръгне, освен ако не си изтеглите готовите библиотеки от http://code.google.com/p/papervision3d/downloads/list и после ги добавите към настройките на Флаш. Обаче и там Ви чака изненада - последните версии са за екшънскрипт 3, а авторът(d0brin) ползва класове, който са стари и премахнати от последните версии(MovieScene3D). Ако изтеглите версиите за 2 (от т.нар. svn repository), ще видите, че авторът(d0brin) използва в кода си класове от 3 - URLLoader. Според мен кодът е пълна каша между екшънскрипт 2 и 3, освен ако няма някоя настройка на Флаш да публикува в съвместим режим.

Регистрирайте се, за да добавите коментар


Калдейта ЕООД - © 2003-2010. Всички права запазени.
Препоръчваме: IT Новини