473,382 Members | 1,646 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,382 software developers and data experts.

XML gallery help

nomad
664 Expert 512MB
Hello everyone:

I need a little help here in adding a two other text fields for an xml Gallery.

Here is the flash action Script
Expand|Select|Wrap|Line Numbers
  1. var myGalleryXML = new XML();
  2. myGalleryXML.ignoreWhite = true;
  3.  
  4. myGalleryXML.load("fine_arts.xml");
  5.  
  6. myGalleryXML.onLoad = function() {
  7.  
  8. //I removed the function section area if you need it please contact me.
  9.  
  10.  
  11. fullPreloader.onLoadStart = function(target) {
  12. target.createTextField("my_txt",target.getNextHighestDepth(),0,0,200,20);
  13. target.my_txt.selectable = false;
  14. };
  15.  
  16. preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
  17. target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
  18. };
  19.  
  20. preloader.onLoadComplete=function(target){
  21. new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
  22. target.my_txt.removeTextField();
  23. target.onRelease=function(){
  24. callFullImage(this._name);
  25. }
  26.  
  27. target.onRollOver=function(){
  28. this._alpha=50;
  29. };
  30.  
  31. target.onRollOut=function(){
  32. this._alpha=100;
  33. };
  34. }
  35.  
  36. }
  37.  
  38. }
  39.  
  40. function callFullImage(myNumber) {
  41.  
  42. myURL = myImages[myNumber].attributes.full_url;
  43. myTitle = myImages[myNumber].attributes.title;
  44.  
  45. _root.createEmptyMovieClip("fullImage_mc",_root.getNextHighestDepth());
  46. fullImage_mc._x = _root.full_x;
  47. fullImage_mc._y = _root.full_y;
  48.  
  49. var fullClipLoader = new MovieClipLoader();
  50. var fullPreloader = new Object();
  51. fullClipLoader.addListener(fullPreloader);
  52.  
  53. fullPreloader.onLoadStart = function(target) {
  54. target.createTextField("my_txt",target.getNextHighestDepth(),0,295,200,20);
  55. target.my_txt.selectable = false;
  56. };
  57.  
  58. fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
  59. target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
  60. };
  61.  
  62. fullPreloader.onLoadComplete = function(target) {
  63. new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);    
  64. target.my_txt.text = myTitle;
  65. };
  66.  
  67. fullClipLoader.loadClip("buildings/"+myURL,fullImage_mc);
  68.  
  69. }
  70.  
  71. function createMask() {
  72.  
  73. _root.createEmptyMovieClip("mask_mc",_root.getNextHighestDepth());
  74.  
  75. mask_mc._x = _root.gallery_x;
  76. mask_mc._y = _root.gallery_y;
  77.  
  78. mask_mc.beginFill(0x000000,100);
  79. mask_mc.lineTo(_root.gallery_width,0);
  80. mask_mc.lineTo(_root.gallery_width,_root.gallery_height);
  81. mask_mc.lineTo(0,_root.gallery_height);
  82. mask_mc.lineTo(0,0);
  83.  
  84. container_mc.setMask(mask_mc);
  85. }
  86.  
  87. function scrolling() { 
  88. _root.onEnterFrame = function() {
  89. if (mask_mc._ymouse<(mask_mc._height*(1/3)) || mask_mc._ymouse>(mask_mc._height*(2/3))) {
  90. container_mc._y += Math.cos(((mask_mc._ymouse)/mask_mc._height)*Math.PI)*15;
  91.  
  92. if (container_mc._y>mask_mc._y) {
  93. container_mc._y = mask_mc._y;
  94. }
  95.  
  96. if (container_mc._y<(mask_mc._y-(container_mc._height-mask_mc._height))) {
  97. container_mc._y = mask_mc._y-(container_mc._height-mask_mc._height);
  98. }
  99. }
  100. };
  101. }
  102.  
  103. import mx.transitions.Tween;
  104. import mx.transitions.easing.*;
  105.  
  106.  
Here is the XML code
Expand|Select|Wrap|Line Numbers
  1. <gallery thumb_width="120" thumb_height="120" gallery_width="120" gallery_height="400" gallery_x="50" gallery_y="125" full_x="220" full_y="125">
  2. <image thumb_url="balboa_sm.jpg" full_url="balboa.jpg" title="balboa.jpg" subtitle2="Mansonite" subtitle3="$400.00"/>
  3. <image thumb_url="surf_sm.jpg" full_url="surf.jpg" title="balboa.jpg" subtitle2="Mansonite" subtitle3="$400.00"/>
  4. </gallery>
  5.  
What I want is the photo then the title below it then the subtitle below that and then the subtitle below that.

Any Help would be great
thanks
damon
Aug 3 '10 #1
0 1037

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

Similar topics

1
by: dddddd | last post by:
i need do create simple dinamic site - built mainly of pictures(they are the only dinamic part). pictuers differ by the -Location- and by -Time- (in which they were taken)... so on the index...
13
by: matt | last post by:
I have this bit of code, that isn't valid, and I need some help getting it to work... Currently, I get an error because I am calling the next() function within a foreach loop. I am opening a flat...
3
by: peterf | last post by:
Posted in alt.comp.lang.php before I saw how much more active this group is... Hope someone can help. I am new to this group and needing a little bit of guidance. First off I need to say that...
11
by: ste | last post by:
Hi there, Further to my recent posts where I've received excellent help from Rik and Jerry, I've ended up with an image gallery on my website that displays images in a table, 3 images per row. ...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
1
nritchie124
by: nritchie124 | last post by:
Hi there.... I know some one out there will be able to figure this out....it just isn't me. I'm a graphics guy and my java coding is very limited. I'm trying to have a gallery with thumbs on the...
11
by: shror | last post by:
hi every body I need help please i have designed an image gallery of about 20 pictures and they are shown in thumb nail views and for viewing the largeer version of the images i have added a...
0
by: sriframes | last post by:
one help please I have a tempat with flip book. in that the pages are loaded as _global object. thats mean pages are not in time line. pages are in library only so these pages are loding from...
0
nomad
by: nomad | last post by:
Hello Everyone. I founded an Flash and xml photo gallery. It works but I took it to another step What I want is to have six different galleries in one Flash file. I figure out how to do that but ...
3
by: jwidener117 | last post by:
i am well virsed in html and CSS but I am making a new portfolio site for myself and I would like to implement some java for a simple way to display my images, using my links to the left when the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.