View Full Version : Image Slideshow...
CyanBlue
06-07-2004, 05:52 PM
Howdy... :)
Just made a dumb version of sequential image player at work to plug it into some module that we are making...
Can somebody check to see if this one works on your computer and tell me what your operating system, web browser, Flash Player plugin version are???
http://cyanblue.flashvacuum.com/AWS/SlideShow/lapseTest07.html
Thank you very much... :)
petefs
06-07-2004, 06:28 PM
WinXP Professional v2002 SP1
IE 6.0.2800.1106.xpsp2.030422-1633
Flash Player 7,0,19,0
loading very slowly -- on 76/651 after a few minutes... 0/0KB listed for every frame. Nothing playing -- does every frame have to load first?
petefs
06-07-2004, 07:01 PM
well, it finished loading and wouldn't play -- then my browser crashed ^_^ not sure if it was actionscript.org or your movie that caused it : ) (that's all that was open). I hope that's the answer you were looking for! :D
CyanBlue
06-07-2004, 08:46 PM
Hm... It was working perfectly when I tested it from the work, and now I don't see any image at all...
I guess the test server at work is probably down or something... Hm...
Thanks for checking on it, petefs... I'll check it out again later to see if the server is up or not and let you know so that you can test it again...
Just to make sure... You don't get any images at all, right???
petefs
06-07-2004, 08:56 PM
nope, none at all -- I bet they're 'loading' so slow because you've implemented a timeout on the loads, eh? or you're using the com.qlod loader class? (my favourite!) looks like the images were moved or somethin :D
let me know when it works ^_^
CyanBlue
06-07-2004, 09:02 PM
Yeah... I'll let you know WHEN it works... I guess it will have to be tomorrow when I get to the work... Come to think of it, I think I've got an email this morning saying that there is going to be some sort of maintenance on the server or similar... Bad timing... :(
Basically a time out in onEnterFrame loop... Just checking to see if the image is loading or not for 2.5 second(it is supposed to be at least) and go to the next image file name in array to start another loading and so on...
com.qlod.loader class... Hm... I think I've heard of it some time ago, but I have not actually used it... As I was saying, I am very clumsy at keeping things around, so I probably try to remember what I used earlier on another project and start writing it again and again unless I know what project I have used the same/similar routine... :D
petefs
06-07-2004, 09:12 PM
the com.qlod.loader class is awesome. do a google search and it'll come up. it's similar to the MovieClipLoader class in mx2004, in fact I believe the mx2004 class was based on it. Colin Moock wrote a petition to macromedia asking for a better movieclip loading class, and the com.qlod loading class was written for player 6 in response to that. It'll really simplify what you're doing. you can set timeout for either the whole class or each instance of the class, you can set a minimum step-count for local testing (very useful, not implemented in the mx2004 class :/), it features a queue for loading, and all sorts of useful event broadcasts (onStart, onInit, onLoadProgress, onLoadComplete, etc...). On top of that it features load queuing, so you could just do
myLoader = new com.qlod.loader;
for(var i = 0; i<my_array.length; i++)
{
myLoader.load(target_mc, my_array[i]);
}
and it'll queue it all up for you. for the 0/0kb you just make a listener and that listener's onLoadProgress is sent an object with percent loaded, bytes loaded, bytes total, etc... very smooth ^_^ I like it better than the mx2004 class in fact : (
CyanBlue
06-08-2004, 08:47 AM
That's very interesting... :)
Thanks for the infor... I'll check it out later... But I think you already know me that I am sort of a person who gets to take a couple of aspirin as soon as I hear the word 'class'... :(
As for the slideshow stuff... That was me who was dumb... I posted all the image files into the internal server which I am not able to connect from outside... Dumb... Plain dumb... :(
Please try it again and let me know if it works... :)
http://cyanblue.flashvacuum.com/AWS/SlideShow/lapseTest07.html
CyanBlue
06-08-2004, 09:38 AM
Okay... Abit of change... (Not much... Just to make things copy & paste...)
Please check this page...
http://cyanblue.flashvacuum.com/AWS/SlideShow/lapseTest.php
and copy and paste the text string at the bottom of the page and let me know how the slideshow reacts... :)
acidbaby
06-08-2004, 11:12 AM
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85.7 (KHTML, like Gecko) Safari/85.7
Operating System = Mac OS 10.2.8
Flash Player Version = MAC 7,0,14,0
Way faster than the first one. It starts to hang up a little after it gets half way through. Weird thing too. After it went through once, I pressed the |<< button, then play, it hung up on frame 37 for a while. Pressed play again and it started back up later in the movie around frame 230 like it was still in sync, just stuck on that frame. I reloaded the movie and it and didn't do it again.
project-09
06-08-2004, 02:44 PM
Hey Cyanblue,
Its working pretty well on my computer. Loads quick looks like the time lapse stuff they do on TV news. I'm using WIndows XP and IE 6.0.2
Its real creative, I like mucho.
petefs
06-08-2004, 02:47 PM
I'll check it out when I hit the office, cyan
I'm also going to make you a little sample file for that class, because it'll help you get over your fear of OOP faster ; )
petefs
06-08-2004, 04:49 PM
allrighty cyan, I made a quick little thumbnail loader just for you using the com.qlod.LoaderClass : ) It's REALLY easy, I added some extra stuff because I can't stand for things to look ENTIRELY ugly -- but the meat and bones of it is so simple. There's great documentation at http://www.helpqlodhelp.com/stuff/loaderclass/LoaderClass.doc.html as well : )
and of course if you have any questions you always have me! I've used this thing a ton ^_^
it's even a flash mx file just for you ^_^
petefs
06-08-2004, 04:55 PM
ah, and it seems to work fine now, the timelapse ^_^ copy and paste works as well
CyanBlue
06-08-2004, 05:06 PM
Thanks for letting me know that, acidbaby... :)
I did found out about that playback problem, but didn't have time to fix it today... I'll have it fixed... :)
CyanBlue
06-08-2004, 05:11 PM
Hey, petefs... Thank you very much... :)
WoW... The sample is really easy when I don't have to do it myself... :D
Um... My fear of the OOP goes with, um, me not knowing/understanding what's basically going on underneath the surface... It doesn't really matter whether I can program it in OOP way or procedural way...
If I remember correctly, it started all when I was first learning C++ where the concept of the pointer totally got me... Well... I sorta overcome that fear, but it's not really cleared out... It's just a fear that never goes away... :(
I've had some rough day today... (If I have lots of design job, that's tough day... :D)
I'll have a look at the class file tomorrow... Thanks... ;)
petefs
06-08-2004, 05:33 PM
if you ever get a few aspirins on hand here's a nice link : )
http://chattyfig.figleaf.com/flashcoders-wiki/index.php?Object%20Oriented%20ActionScript
CyanBlue
06-08-2004, 05:35 PM
Hehe... Thanks... I've gone through that list of sites before... (Obviously not well cuz I still have my fear...)
I did need something whole lot better than the aspirin to go through it...
Thanks... I'm pretty sure that I will need to go over the OOP one more time sooner or later... ;)
CyanBlue
06-09-2004, 10:53 AM
Okay... Back to qlod, if you don't mind... (Maybe I'll create a seperate thread if it gets long... :D)
I think I might be able to use the very same routine if I could be able to figure something out...
The only problem that I have is that it generates the loads of empty movieClips beforehand and that somehow causes problem if the length of the array is long...
I do have 652 images in the array and my computer is chocking in the beginning when the movieClips are made... But if I reduce the array to 300, it works fine... Obviously it is computer dependant.... I am sure my AMD 700 at home will probably die around 200 or something... :(
I tried to do it in the onLoadComplete, but somehow I can't get it to work... :(
Well... The place where I am stuck at is where I was trying to find what is the name of the object/movieClip/loader that is just finished loading... getTarget() or other getter functions doesn't cut it... Any idea???
Well... To make a long stroy short, I want to create just one empty movieClip before the for loop, and as soon as the image is loaded, I want to create the next empty movieClip and load next one into that movieClip... and remove the previous movieClip if there are more than three movieClip holders... I think that's the only way to accomodate this class file to fit my need... What do you think, petefs??? :)
Thanks... ;)
petefs
06-09-2004, 03:51 PM
I'm not at work, but this doesn't work?
myLoader = new com.qlod.LoaderClass();
myListener = new Object();
myListener.onLoadComplete = function (pSuccess, pLoaderObj)
{
trace("success: " + pSuccess + ", target: " + pLoaderObj.getTarget());
}
myLoader.addListener( myListener );
myLoader.load(target_mc, "myImage.jpg");
with that you should be able to do something like
var n = Number(pLoaderObj.getTarget()._name.substr(1,1));
_root["h"+(n-2)].removeMovieclip();
right?
I'll take a look at your file when I get into work, I just have to wait until my laundry is done ^_^
CyanBlue
06-09-2004, 10:23 PM
A laundry??? Me doing the laundry as well...
Um... Let me take that back... The laundry machine is doing it... :)
Hm... I think I've tried that this morning, but somehow it didn't work on me... :(
petefs
06-09-2004, 10:35 PM
hmph..well, yours works, that's what matters -- no need to use a new class for that project :D I'll still try and figure out what's wrong with my thinking, but it'll have to wait for tommorow because the Reno 911 season premiere is on ; )
CyanBlue
06-09-2004, 11:21 PM
Hm... You do all that computer and have time to watch the TV series??? WoW...
I didn't have time to investigate further but I do know that there is problem with the play back after one loop on my code... I was going to fix it today at work, but I had to take care of some other stuff... It will have to wait for a day or so until the urgent thing has to be taken care of...
But, I would be grateful if you could take a look at my qlod stuff... ;)
TV... Hm... Come to think of it, I think I've spent no more than 10 hours in front of the TV last month... :(
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.