Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloader- dynamic images .. arrgghh 1

Status
Not open for further replies.

dzr

Programmer
Nov 20, 2001
109
0
0
US
First of all, I promise I have been trying to read old posts and figure this out before I post but...

I am make a resume cd for some photography of mine and used this photo gallery tutorial: I have made some changes and am happy with how it works.

Problem is, the images are loaded dynamically so it goes back to the cd everytime I hit "next."

The code gives sets the path to pics, loads the image names into an array and then displays them with:

MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
};


I'm a programmer (php) so I can think of some logical ways to do this but I have a lack of understanding of Flash so I'm making a bit of a mess.

What I'm thinking is - preload the array of images into a temp file (?) and then instead of the line p.loadMovie(...) put in some code that load the images from the temp file.

Does this make sense?? Will it work?? Any help appreciated!
 
I have 2 suggestions.

1. Have an invisible movie clip that you load all of the pictures into, and mabey they will stay in the memory, and won't have to read off the CD

or...

2. Probably the best alternative. Flash cannot write files locally without a SSS (Server Side Script) because of macromedia's security sandbox. But, you can override this by getting some third party software, SWF2EXE Software. This will allow you to copy the images from the CD to a temp. directory on the computer. Here are a few suggestions for software:

. LPFlashEx, great program, FREE!
. Flash Studio Pro. Shareware


Thats about it
Until Next Time
FLASHfreak :)
 
Thank you SO much! I posted this same post in 2 forums and you are the only one to reply. I feel like giving you a hug. This is really good to know.


I can't get the link to lbflashex to work - 404 - I wonder if it's still available. Can't find much on google.
 
There is also another one called SWF Studio, but your projectors only last about three days if you don't buy it.
 
Ok - another stupid question.

The "easy slideshow component" -- doesn't that do what i need to do?

I don't want to use that but -- in theory...
 
It came with Flash MX -- it's under components. It seems to pre-load the pictures but I'm not sure ... the code is still confusing to me.

if only it was in php.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top