flash - what am I doing wrong?
- Started
- Last post
- 8 Responses
- drzoom
on the left side of http://www.martinrees.com/indexn… there should be another flash movie (similar to the one on the right). It runs fine offline from my machine, but as soon as I upload it turns to blank boxes?
Does anyone know what I have done wrong?
- ********0
something is worng with that file maybe?
- sandesign0
yeah could be the file it happend to me once. nothing works on my machine os x
- drzoom0
shouldn't think so ... I uploaded it I don't know how many times - and as I said it runs fine from my HD
- drzoom0
I know now what it is ... its a problem when preloading from a textfile (so it gets stuck on the preloader.
but what is wrong with this preloader?
Scene 1, frame1:
loadVariablesNum("images/project... 0);
Scene 2, frame2:
if (_root.loaded == "yes") {
gotoAndPlay("projects", 1);
} else {
gotoAndPlay(1);
}(..._root.loaded is the last variable in the txtfile)
- autonoma0
If you HAVE to use scenes (which you shouldn't) don't ever target them. So, instead of:
gotoAndPlay("projects", 1);
use:
gotoAndPlay("projects");
and you should be fine.
- drzoom0
...that didn't work / preload
by the way, this is the first time I heard that you shouldn't use scenes ... why?
- cphunk0
ok well are you using device fonts?
and also - agree on scenes. the whole beauty of flash is that programming-wise it's non-linear..... or object oriented. when you use scenes and scatter everything, your programming becomes procedural...or linear. it's actually best to keep EVERYTHING on one single keyframe on the main timeline. if course it's not always possible. but this way you can call everything from anywhere. whereas you can't with scenes. if you catch me.
- autonoma0
From Macromedia: