Hi everyone I have experienced a problem with some database driven sites in flash. I am using php, my sql and flash player 7. The problem is that sometimes the data from the databse does not load. Everthing else in the flash movie is fine, just the dynamic data is missing. I am using the usual loadVars to get the data into flash and its all quite simple. This occurs on both PC and Mac and I cant figure out why, so I want to know if anyone else is experiencing this? thanks Michael
I've seen more posts on this topic and in most cases (but I'm not saying in your case too) the code tries to use the loaded data before it is loaded. In some cases this does not lead to errors or problems because the data loads fast. But as soon as the data comes in a little slower... (the data is there) but you don't see the expected text and images.
That was my first thought but I have tried and tested and thats not the problem.
It is all dynamic text data which is affected, here is a typical example of the loadVars code I use on my sites. Thanks for your interest in the problem ;) any thoughts? var getNames:LoadVars = new LoadVars(); getNames.onLoad = function () { for(var i:Number = 1; i < this.n; i++) { name_holder.attachMovie("case_name", "case_name" + i, name_holder.getNextHighestDepth()); name_holder["case_name" +i].case_name_txt.text = this["case_name" + i]; name_holder["case_name" +i]._x = i * 20 + 5; name_holder["case_name" +i]._y = 320; name_holder["case_name" +i]._rotation = -90; }; } getNames.load("http://localhost/~mxc/engel/load_names.php");
Sometimes not showing thats whats strange about it.
If it occurs sometimes then it's not a scope problem of course (we were answering at the same time). Check Flash Player versions on a cpu with and without the problem please. Changed your code a little bit so it's easier to read. var getNames:LoadVars = new LoadVars(); getNames.onLoad = function () { for(var i = 1; i < this.n; i++) { var name = "case_name" + i; name_holder.attachMovie("case_name", name, name_holder.getNextHighestDepth()); name_holder[name].case_name_txt.text = this[name]; name_holder[name]._x = i * 20 + 5; name_holder[name]._y = 320; name_holder[name]._rotation = -90; } }; getNames.load("http://localhost/~mxc/engel/load_names.php");
The problem is so rare that I dont have access to a computer with the problem but I tjust got an error report from someone with this problem and they are sending me the error report from safari. So far it looks like it could be a cross domain problem. Although I think it is weird that it occurs so rarely and on specific computers. I will post again when I know more.
One more thing to check. One of my clients complained about not beeing able to use a php backend for a site administration. I advised him to shut down his Norton Firewall or set a rule for the backend. And that worked for him.
Don't see what you're looking for? Try a search.
|