Prayer to the God of AS
- Started
- Last post
- 62 Responses
- unknown0
so far:
http://www.yuccazucci.com/Newsto…
But I guess it can be more efficient and flexible for more pics...best would be if each mc could load a specified jpg:
such as
mc1 loads 001.jpg
mc2 loads 002.jpgso I just put the swf's (diff.sections) in different directories....with diff. images ..but all with this numbering..
hmm...
- k9kuma0
3cy so you want the flash to detect the amount of photos?
you could use a external xml file to link the files into the flash , and then when needed you could modify the xml.
is this what you mean?
i will try to help you, but i am unsure if i totally understand.
- unknown0
damn! yes I was thinking of that...
so imagine
dir. gallery one:
001.jpg
002.jpg
003.jpg
images.xml
gallery.swfdir. gallery two:
001.jpg
002.jpg
003.jpg
images.xml
gallery.swfetc...
- k9kuma0
yes.
though it will not detect the amount of images, though it is easily updateable.
JPEG is loaded dynamically with the loadMovie action
you can also add descriptions or content if you want to each image.
is this what you are looking for?
- unknown0
exactly!
thinking something like this:
- [images directory="images"]
[imageNode jpegURL="img_0.jpg"]Comments on Image 0[/imageNode]
[imageNode jpegURL="img_1.jpg"]Comments on Image 1[/imageNode]
[imageNode jpegURL="img_2.jpg"]Comments on Image 2[/imageNode]
[imageNode jpegURL="img_3.jpg"]Comments on Image 3[/imageNode]
- unknown0
sorry...might look a bit f#cked up here...
- unknown0
Hey k9kuma!
Maybe you can add it to the code(or modify) in the fla you'll find here:
http://www.yuccazucci.com/Newsto…
thanks man!
- k9kuma0
photo 1
photo 2
photo 3
photo 4ya dig?
- unknown0
yea
- k9kuma0
photosXML = new XML();
photosXML.load("path_to_xml/data...photosXML.onLoad = photosLoadHandler;
photosLoadHandler = function(loaded) {
if (loaded == true) {
// The XML document loaded without error, continue processing.
} else {
// The XML document could not be loaded, stop processing.
}
}photos_xml = new XML();
photos_xml.load("photos.xml");
photos_xml.onLoad = startSlideShow;
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);}
}
- k9kuma0
sorry i would add it for you though i am on a shit ass old laptop, and no flash on here.
sorry , if i were at home i could do it for ya....
any questions ask away, i will try my best to explain
- unknown0
hmmm...would have to see how it would load in the images...in one mc? or .....hmm..
geezz... good work tho, k9kuma.
Wish I was as talented as you in scripting..
- k9kuma0
do you need more help ?
ask and i will try to help you.
or if you want to copy your 'AS'
and send it to me i might be better able to help.you can send to :
- unknown0
it is so damn late..
I think I will only fix one gallery as an
example...without the imageloading efficiency...will add that later...this is just a comp anyways...thanks so far..
I will bump this thread when I get to that part some other day..
- k9kuma0
ok cool.... well if you need any help let me know... you can email me too.
hope it all goes well with comps.
- neeko0
you get this all figured out?
- unknown0
3cY,
here's the code in action. I just managed to finish it since I had a lot of work to do. Hope you'll still be able to use it.
http://www.uniquent.com/3cY/3cYF…
Cheers.
- unknown0
Oh I forgot, tell me if this is ok for you so I can send you the FLA...
Merry Christmas.
- Ctrl_Z0
Boz, I am your humble servant.
you = rock
- unknown0
keepin' it on top.
Cheers 3cY.