473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Flash w/ Xml

I have been trying to grasp XML and i cant quite wrap my mind around it. I want to create an image gallery through flash w/ dynamic images. All of the tutorials implement XML, but why? is there no way to simply load each image that is in a folder. Thus to add images one simply adds images to the folder. With XML it looks like you must write out all of the image names with appropriate tags, as well as write code to comb through your xml. To then add an image you would have to place this image in the folder and then write the new elements into the XML doc.

I have not seen how XML is useful, unless this is the only way to load the list of images. It seems very time consuming, also are XML docs usually hand written or can they be automatically generated?

anyways, it seems like its usefulness is just a little over my head.
Aug 21 '07 #1
2 1949
yes, you could just add all the images you wanted and tell flash where to find the images and that would be that. if you wanted to update, or add more pics, you would have to update the flash. which sucks. i dont think flash can reaad from folders like that very well. it can get data passed to it like that, but it would be very advanced to implement. people use xml because flash has built in connectors for it. that means that to update your site or gallery all you avhe to do is change the external xml, and if you are clever with actionscript then you will always have a working, dynamic gallery that you can easily update by adding a few lines to the xml, like
<library>
<image>
<title>cat pic</title>
<url>/images/cat.jig</url>
</image>
</library>

few things to know, xml can only have one "top level" aka you can only have one "library", not two. however, if you want categories, just add a field to the image tag and use actionscript to generate them dynamically.

Basically, if you want to update your gallery at all take the time to develop and connect the XML and you will love it later. If you have one gallery that is never going to change, then yea sure hard-code the image locations inside flash and never move them

crabpot8





I have been trying to grasp XML and i cant quite wrap my mind around it. I want to create an image gallery through flash w/ dynamic images. All of the tutorials implement XML, but why? is there no way to simply load each image that is in a folder. Thus to add images one simply adds images to the folder. With XML it looks like you must write out all of the image names with appropriate tags, as well as write code to comb through your xml. To then add an image you would have to place this image in the folder and then write the new elements into the XML doc.

I have not seen how XML is useful, unless this is the only way to load the list of images. It seems very time consuming, also are XML docs usually hand written or can they be automatically generated?

anyways, it seems like its usefulness is just a little over my head.
Aug 22 '07 #2
that was helpful, thanks
Aug 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
8
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
4
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact...
1
by: dscriv | last post by:
Hello, I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0. I also have IE and Firefox installed. If I go to this page, which contains a Flash detection movie:...
115
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough...
10
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.