PDA

View Full Version : Can't get flash to load to my webpage?


Ediese
01-29-2009, 02:15 AM
Hello Everyone!

First off, I just want to start off saying that I am truly a beginner. I purchased a flash custom template for an e-Portfolio assignment for a class assignment.

I've tried to upload the files to godaddy, but it's not working. I uploaded the index.html, .swf, and .js files. My home page page pops up, but flash doesnt' load. I contacted godaddy, and they said there is a problem with the flash code. It's really weird because the flash file has no errors, and it plays fine. My index.html file is working fine in IE browser, and even when I try to view it on the ftp client. Can someone please tell me what I'm doing wrong. I'm pulling out my hair over here.

This is the site.
Olivebrudy.com (http://www.olivebrudy.com)

Thanks!!

RefreshGFX
01-29-2009, 02:43 AM
Well, I can see your little flower loading animation (Safari and FireFox on a MAC). So, its not your server or html file. It is the Flash .swf file.

1. Open your .FLA
2. Look in the code to see what happens at the end of your pre-loader script.
3. I'm almost positive that's where your issue is going to be.

Because it's a purchased template - you probably shouldn't post your .FLA to these forums. But, you probably could just copy and paste in the preloader actionscript - so, we can take a look at what it's doing.

Ediese
01-29-2009, 02:49 AM
Hi,

Is this what you're referring to?

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = "Loaded "+percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}

RefreshGFX
01-30-2009, 12:46 AM
Yep. Add the following to the "if" statement right before the line _root.gotoAndPlay(2); ...

trace("the site is loaded");

Then go to Control > Test Movie and look at the output window and make sure it's saying "the site is loaded"

If it is... Then look at Frame 2 of your main timeline and see if anything in there may be keeping your movie from advancing.