Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-30-2003, 01:47 AM   PM User | #1
cloudwoven
New Coder

 
Join Date: Jul 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
cloudwoven is an unknown quantity at this point
Flash problem

I'm having a problem with the flash "movie" on my website... The "loading" screen appears and then once it's finished, the page is blank.

Can someone take a look for me? I'd appreciate. :}

http://www.drugfreemonroe.com

Thank ya.
cloudwoven is offline   Reply With Quote
Old 03-30-2003, 02:56 AM   PM User | #2
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
clo...
/me noticed some differences in your 'flash' coding...just a vs® the coding /me uses for hers...lol...
OURS...
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="700" HEIGHT="525" id="index" ALIGN="">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=scale VALUE=exactfit>
<PARAM NAME=bgcolor VALUE=#000099>
<EMBED src="index.swf" loop=false quality=high scale=exactfit bgcolor=#000099
WIDTH="700" HEIGHT="525" NAME="index" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>


yours doesnt have the id="index" in it...
n' you seem to use 'percentages' vs pixel for width/height
n' ummm...ohhh ya.../me thinks ya were missing the 'loop' value tooo???

just a goodluck® n' try comparing the two ...aka yours n' /mes...:O)))
justame is offline   Reply With Quote
Old 03-30-2003, 10:31 AM   PM User | #3
ionsurge
Senior Coder

 
Join Date: Aug 2002
Location: A 4D universe
Posts: 1,337
Thanks: 0
Thanked 0 Times in 0 Posts
ionsurge is an unknown quantity at this point
The ID is not very important, what is important is the way you have done the ActionScripting, and how your movie has been made.


When you are making the preloader and movie, you need to make sure that they are part of the same flash movie.

Secondly, when you code, you should make sure that once the page has been loaded, you add the actionscript:

Code:
loadPercent = (Math.floor (_root.getBytesLoaded() / _root.getBytesTotal() * 100)  + "%");
loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " KB of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " KB");

if (_root.getBytesLoaded() == _root.getBytesTotal()){	//Check for finished loading
	//If loaded, final update to fields
	loadPercent = "100%";
	//loadBytes = (Math.round((_root.getBytesLoaded() / 1024) * 1000) / 1000 + " KB of " + Math.round((_root.getBytesTotal() / 1024) * 1000) / 1000 + " KB");
	loadBytes = ("Completed");
	gotoAndPlay("Loaded");	//Where to go once your movie is loaded
}
That is my code for loading.

Where it says:

Code:
	loadBytes = ("Completed");
	gotoAndPlay("Loaded");	//Where to go once your movie
You want that bit to take you to the scene, or frame that you are loading.
__________________
http://www.mudsplat.com - Web design, print, and marketing solutions.
ionsurge is offline   Reply With Quote
Old 04-03-2003, 07:25 AM   PM User | #4
cloudwoven
New Coder

 
Join Date: Jul 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
cloudwoven is an unknown quantity at this point
Heya ~

Guys, thanks for your replies; I really and truly appreciate them. :} The thing is that I'm actually trying to give my dad a hand with his D.A.R.E. program website - Neither one of us made the Flash movie or wrote the code, and to be honest, my specialty isn't Flash. In other words, it's pretty foreign to me.

edit: I had asked another question, but it seems that I've fixed the problem. It had to do with an accompanying text file that hadn't been uploaded correctly..? Very strange, but then again, as I said, this particular coding element is completely new to me. hehe.

Thanks again, so much, for your help!

~ Melissa

Last edited by cloudwoven; 04-03-2003 at 07:34 AM..
cloudwoven is offline   Reply With Quote
Old 04-03-2003, 08:40 AM   PM User | #5
ionsurge
Senior Coder

 
Join Date: Aug 2002
Location: A 4D universe
Posts: 1,337
Thanks: 0
Thanked 0 Times in 0 Posts
ionsurge is an unknown quantity at this point
Hrm, so do you have Macromedia Flash, or even the .fla file for the swf file you used?


Maybe we can start from that and take it from there.
__________________
http://www.mudsplat.com - Web design, print, and marketing solutions.
ionsurge is offline   Reply With Quote
Old 04-03-2003, 04:08 PM   PM User | #6
cloudwoven
New Coder

 
Join Date: Jul 2002
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
cloudwoven is an unknown quantity at this point
I know my new question had probably been emailed before I edited it, so I'll repost this. Again, thank you so much for your willingness to help me out.

Quote:
Heya ~

Guys, thanks for your replies; I really and truly appreciate them. :} The thing is that I'm actually trying to give my dad a hand with his D.A.R.E. program website - Neither one of us made the Flash movie or wrote the code, and to be honest, my specialty isn't Flash. In other words, it's pretty foreign to me.

edit: I had asked another question, but it seems that I've fixed the problem. It had to do with an accompanying text file that hadn't been uploaded correctly..? Very strange, but then again, as I said, this particular coding element is completely new to me. hehe.

Thanks again, so much, for your help!

~ Melissa
cloudwoven is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:34 PM.


Advertisement
Log in to turn off these ads.