iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Visual Design > Flash and ActionScript

Reply
 
LinkBack Thread Tools
Old September 9th, 2007, 04:48 PM   #1
New Member
 

Join Date: Sep 2007
Location: Oregon
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 HallmanBilly is on a distinguished road
Error on Browser refresh

I am having trouble loading a random image in flash.
My images don't load on browser refresh.

Here is my code, let me know if I am doing something wrong
Code:
 var ranNum;    
_root.onLoad = function() {
pics = ["/images/products/imagename.png", "/images/products/imagename.png", "/images/products/imagename.png", "/images/products/imagename.png", "/images/products/imagename.png","/images/products/imagename.png","/images/products/imagename.png"];
theURL = ["http://www.google.com", "http://www.skylabusa.com", "http://www.microsoft.com","http://www.pacsun.com","http://www.adobe.com","http://www.mac.com", "http://www.sun.com"];
 
 ranNum = Math.floor(Math.random()*pics.length);
 holder_mc.loadMovie(pics[ranNum]);
 holder_mc._url = theURL[ranNum]
}
* I replaced my image name with "imagename.png"
HallmanBilly is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
loading , problems , refresh


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop the browser refresh on clicking the webbrowser's refresh button ? camarun20 JavaScript 3 March 18th, 2008 09:04 PM
When Refresh go 1 again gncreditcards HTML, XHTML and CSS 2 January 30th, 2008 03:24 PM
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 August 7th, 2007 09:00 AM
Force refresh of browser Lchad HTML, XHTML and CSS 15 February 6th, 2007 03:49 PM
Logo changes on refresh Ross HTML, XHTML and CSS 10 December 13th, 2006 06:48 AM


Search Engine Optimization by vBSEO 3.2.0 RC8