Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / September 2008



Tip: Looking for answers? Try searching our database.

gotoAndPlay HUGE flash BUG with chinese characters, please please help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
UnKnoW82 - 29 Sep 2008 23:55 GMT
Hi everyone,

I discovered a huge bug in flash/actionscript that is caused by Chinese
characters. Prepare yourself to see some weird things. So here is the bug:

I have a simple file that contains 3 "section" in the timeline. Each has a
language assigned to it. That means for example from frame 1 to 31 it's the
language ENGLISH, from frame 32 to 61 it's CHINESE, from frame 62 to the end
it's KOREAN.

I only have 5 layers with 1 images and the rest is just a few text (30
characters max).

The only actionscript I have is in the frame 1 and it goes like this:
this.lang = "kr";

if (this.lang == "cn") {
    this.gotoAndPlay(32);
}

if (this.lang == "kr") {
    this.gotoAndPlay(62);
}

So the actionscript would be suppose to go to the frame #62 when I run the
flash. When I publish the .swf from flash and it's previews it with Flash
Player, everything works fine. The bug happens when I view it within a browser.
Instead of going to frame #62 it goes to the frame where there is Chinese
characters. If I take out the chinese characters, the bug disappears. Also if
you try to remove some layers, the bug aslo disappears.

Please someone help me with this! Would it be possible to report this bug to
Adobe support?

Here is the .fla that I was talking to you about:
http://www.dompelletier.com/_TEMP/_Copy2_splash_banner.fla

Thank you very much!

Dominic
Rothrock - 30 Sep 2008 05:09 GMT
My guess is that you have embedded the chinese font character sets?

If that is the case then the problem is most likely that when you test it on
line that Frame 62 has loaded by the time you are trying to tell the playhead
to go there.

To test this you could use the test environment bandwidth profiler and see
where the bottle neck is in loading.

Also you should add some code to an empty frame at the front or something like:

stop();
this.onEnterFrame=function(){
if(this.getBytesLoaded()==this.getBytesTotal() && this.getBytesLoaded >16){
delete this.onEnterFrame;
// code to go to language sections;
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.