-
1. Re: Flash Photogallery with preloader PLEASE HELP!!!
kglad Jan 2, 2010 7:21 AM (in response to nwickliff)you want a preloader for the gallery swf or a preloader for the images that the gallery loads?
-
2. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 9:10 AM (in response to kglad)I want the preloader for swf I think. Not each individual image because the swf itself loads all the images before showing the gallery. There is no load time after the gallery loads. If you go to my site www.nakean.com and click the "Blank" page it will load the gallery I'm talking about. Once loaded the images all work without load time. All the preloaders I've tried work by themselves or if I put a photo in the next frame but not if I put the gallery in the next frame which consists of action script that pulls movies from my library and no actual image on the stage. Hope this explains what I'm trying to achieve. Thanks for taking the time to look.
-
3. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 9:12 AM (in response to kglad)I want the preloader for swf I think. Not each individual image because the
swf itself loads all the images before showing the gallery. There is no
load time after the gallery loads. If you go to my site www.nakean.com and
click the "Blank" page it will load the gallery I'm talking about. Once
loaded the images all work without load time. All the preloaders I've tried
work by themselves or if I put a photo in the next frame but not if I put
the gallery in the next frame which consists of action script that pulls
movies from my library and no actual image on the stage. Hope this explains
what I'm trying to achieve. Thanks for taking the time to look.
-
4. Re: Flash Photogallery with preloader PLEASE HELP!!!
kglad Jan 2, 2010 10:22 AM (in response to nwickliff)creating a preloader for that swf probably isn't going to work the way you want but, you can give it a try and see the results.
copy and paste the mouse handler code for you "blank" button.
-
5. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 11:43 AM (in response to kglad)what code are you speaking of?
-
6. Re: Flash Photogallery with preloader PLEASE HELP!!!
kglad Jan 2, 2010 11:45 AM (in response to nwickliff)when you click your "blank" button code executes that loads your gallery. what's that code?
-
7. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 11:48 AM (in response to kglad)not sure..this is probably where I'm gonna run into problems. It's an Iweb
site. I input an html snippet that grabs my swf file from mobile me
account. When I click on the button I presume it loads everything that I
have inserted into the page ie. the swf I inserted.
-
8. Re: Flash Photogallery with preloader PLEASE HELP!!!
kglad Jan 2, 2010 12:14 PM (in response to nwickliff)1 person found this helpfulrename your gallery to something other than galleryinprogress.swf, say gallery.swf.
in flash create a new fla named galleryinprogress.fla with the same stage size and background color as your previous galleryinprogress.swf and attached to frame one of your new galleryinprogress.fla add:
var tf:TextField = this.createTextField("tf",1,0,0,100,40);
tf.autoSize = "center";
tf._x = Stage.width/2;
tf._y = Stage.height/2;
this.createEmptyMovieClip("mc",1);
mc.loadMovie("http://homepage.mac.com/nakean/.Public/swf/gallery.swf");
preloadI=setInterval(preloadF,100);
function preloadF(){
tf.text=mc.getBytesLoaded() +" bytes loaded out of "+mc.getBytesTotal()+" bytes total.";
if(mc.getBytesLoaded()>0&&mc.getBytesLoaded()>=mc.getBytesTotal()){
clearInterval(preloadI);
tf.removeTextField();
}
}
publish your new galleryinprogress.swf and upload to the same directory as your previous (but now renamed) galleryinprogress.swf.
-
9. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 12:51 PM (in response to kglad)Ok...but if I'm getting rid of my old gallery do i need to put the old
gallery in the second frame or something. This code looks as though it's
calling itself, which has a preloader for itself in which my gallery is not
posted...Sorry...I'm a total noob.
-
10. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 1:51 PM (in response to kglad)Ok so now I understand. The email I got was different than what was posted on the forum. I changed the old file to gallery.swf so that the galleryinprogress.swf (the AS2 you gave me) calls the gallery.swf Now it does nothing while it loads and when it loads it appears to fine, however when I click on any of the pictures it just freezes the movie and says transferring data from homepage....... on the bottom.
-
11. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 1:53 PM (in response to nwickliff)I get a bunch of these repeated errors when I run the movie in flash
** Security Sandbox Violation ***
SecurityDomain 'http://homepage.mac.com/nakean/.Public/swf/gallery.swf' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/Nakean%20W/My%20Documents/galleryinprogress.swf'
*** Security Sandbox Violation *** -
12. Re: Flash Photogallery with preloader PLEASE HELP!!!
nwickliff Jan 2, 2010 3:03 PM (in response to nwickliff)Here is the html snippet that gets the swf file.....
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,40,0" border="0" width="800" height="600"><param name="movie" value="http://homepage.mac.com/nakean/.Public/swf/galleryinprogress.swf"><param name="quality" value="High"><embed src="http://homepage.mac.com/nakean/.Public/swf/galleryinprogress.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="800" height="600"></object>