Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
Papa Rabbit webforumsuser@macromedia.com #1
load image/object order?
Hi, I'm working on a site now that uses Flash shockwave to display images, actually there are a mix of shocwave files (18) and gif/jpeg (7).
My question is: How can I make a load order function that will work for both the shockwaves and the others?
I haven't tested it yet but I thought this JS might work... But if I do, will changing the "NAME" in the shockwave object tag work for the load order?
<script language="JavaScript">
var imgArray = new Array("b2","c2","c1","b1","a1","a2","a3","b3","c3" );
var len = imgArray.length
var imgDir = "";
var num = 0;
for (i = 0; i < len; i++) {
imageObj1 = imgArray + "";
temp = eval(imageObj1 + " = new Image()");
temp.src = imgDir + imageObj1 + ".jpg";
}
function StartCycle() {
eval("document."+imgArray+".src = "+imgArray+".src");
num = num + 1;
if (num < len) {
setTimeout("StartCycle()", 1000);
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#000099" onLoad="StartCycle()">
<table cellspacing=3 cellpadding=3 border=2>
<tr>
<td><img src="blank.gif" name="a1" width=199 height=140></td>
<td><img src="blank.gif" name="a2" width=199 height=140></td>
<td><img src="blank.gif" name="a3" width=199 height=140></td>
</tr>
<tr>
<td><img src="blank.gif" name="b1" width=199 height=140></td>
<td><img src="blank.gif" name="b2" width=199 height=140></td>
<td><img src="blank.gif" name="b3" width=199 height=140></td>
</tr>
<tr>
<td><img src="blank.gif" name="c1" width=199 height=140></td>
<td><img src="blank.gif" name="c2" width=199 height=140></td>
<td><img src="blank.gif" name="c3" width=199 height=140></td>
</tr>
</table>
Anyone worked with this problem before? Any thoughts or suggestion?
Thanks in advance!
Papa Rabbit webforumsuser@macromedia.com Guest
-
remote shared object doesn't want to load!
Hiya, I have created my persistent remote shared object, I can see the fso file created in my the server, and my string is on it. But for some... -
Component Load Order Confusion
I seem to have some confusion on the loading order of components. Take the following code for example: <mx:Accordion... -
Image Object and Image Member speed
Hello everyone! I'm trying to use the overlay camera with a computed bitmap with lingo/javascript. What is fastest system between image object... -
Load order
Whenever I create a flash movie and put it up on my website, it sits there and loads the whole thing before the movie will start playing. Does... -
Slideshow Image Order
Rudolf, the slideshow records the images in the order in which they appear in the folder on your hard drive. And the order in the folder is a...



Reply With Quote

