PDA

View Full Version : preloading flash files


g00fy
02-03-2003, 03:46 AM
hi all,

i already have a preload script, that i grabbed off the net and i want to add my flash files to it (5 @ ~70K), i thought the below code would work but it didnt.

all i can find on the net is using the flash preloading :(

can any1 give me some direction ?



flash1 = new Image()
flash1.src /xx.swf"
flash2 = new Image()
flash2.src /y.swf"

var preImages = new Array ("imageURL", "image URL", flash1, flash2)




thanx

g00fy

arnyinc
02-03-2003, 05:14 PM
I don't know if the same thing can be done with shockwave files as with preloading images. There were some syntax errors in the code you pasted, but I still don't think this will work for flash animations.


flash1 = new Image()
flash1.src = "/xx.swf" //add an equals sign and quote
flash2 = new Image()
flash2.src = "/y.swf" //add an equals sign and quote

var preImages = new Array ("imageURL", "image URL", flash1, flash2)