all groups > flash (macromedia) > december 2006 >
You're in the

flash (macromedia)

group:

Why won't it work in 8 but will in 6?


Why won't it work in 8 but will in 6? ekora
12/10/2006 9:00:22 PM
flash (macromedia): I have an older flash site that I created and I've always published it as Flash
Player 6 until recently. I wanted to add one of the FLV components and to do
so I need to pubkish as Flash Player 8. Since I've done this, the site won't
load correctly. I have a preloader in the first frame and it won't load at
all. When I change it back to 6, it loads fine.

Any ideas?

take a look-see - www.cootiebrown.net (this one is published as 6)

B

Re: Why won't it work in 8 but will in 6? urami_
12/11/2006 12:00:00 AM


[quoted text, click to view]

There are changes in action script starting with Flash MX 2004 to Flash 8,
making some of the older scrips incompatible. First, beside the Case Sensitive issue
there were changes in actions itself. You will need to rewrite your code from scratch.


--
Best Regards

Urami


--


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
Re: Why won't it work in 8 but will in 6? Walter Elias
12/11/2006 1:00:33 AM
First thing to check is case sensitivity. For example: onRelease() Before
Flash MX2004, you could get away with either onRelease() or onrelease(), even
though the R was in lower case. Unfortunately a lot of us (myself included)
became sloppy coders as a result. You need to first go through all your scripts
and look for such errors.

But, as Urami said, there have also been some changes in ActionScript,
including some of the preloader functionality. So that part may have to be
redone completely.
Re: Why won't it work in 8 but will in 6? ekora
12/11/2006 6:03:29 PM
Ok, thanks...although....I'm sure it's not the preloader script because I've used it several other sites I've published in 8. Any other ideas as to where this script case sensitivity could be?

Re: Why won't it work in 8 but will in 6? ekora
12/11/2006 6:06:07 PM
Could it be this?

fscommand("showmenu", "false");
fscommand("allowscale", "false");
stop();

B
Re: Why won't it work in 8 but will in 6? Walter Elias
12/11/2006 8:26:10 PM
I don't totally get your script. But it seems to me that you never defined the
variable "percent" anywhere. You defined "loading", "total", "per" and
"percentage", but not "percent".

This might be the problem. Also, this is Flash 4 Action Script. Functions like
"int" have been deprecated since Flash 5! If you want to define "per" as an
integer, better to do it this way:

var int:Number = Math.round(percent);

(But you still have to define what "percent" is!)
AddThis Social Bookmark Button