-
if/else statement works locally, but not online
This is in CS3 exported to player 8. I've got an external swf inside a container, and inside that contained swf is another external swf in a container. Like so: root/container/humanHolder.
So this code is inside "container" timeline and should make the swf in "humanHolder" go to a specifically named frame if the swf is on a frame less than 339.
The code works on my drive, but not after uploaded to my site. Any idea why?
PHP Code:
if (_root.container.humanHolder._currentframe <= "339") { _root.container.humanHolder.gotoAndPlay("beamOut01"); } else { _root.container.humanHolder.gotoAndPlay("beamOut02"); }
-
_currentframe is supposed to return a Number, not a String:
<= 339 would be better
Not sure if this will solve the problem, but it won't hurt
gparis
-
Still not working. One thing that I forgot to mention is that the script half works. If the humanHolder swf is less than 339 it doesn't react. If the frame is greater than 339 it does what it should. Again, it works perfectly when played from my local drive.
-
the difference between local and online would be the time it gets to load the swf.
You should make sure the external swf has completely loaded before sending this command. Methods would differ depending on how you load (loadMovie or MovieClipLoader)
gparis
-
my god, you're absolutely right. The loaded swf is REALLY big. that part of the movie is probably not loaded yet. Thanks, man! Should be easy enough to fix.
-
Your footer image is a bit big too
You should resize it according to FK rules.
gparis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|