bochez Posted June 4, 2009 Share Posted June 4, 2009 I am not completely sure where I should be posting this question, since it applies to multiple topics.. but seeing as it is probably an embed issue, I figure HTML would cover it. Me and a few friends have run a webcomic for a few years now... I just started transferring the site over from bad HTML coding to a little better (and much easier to use/edit) php coding... To get an idea as to what I am getting at check out the site here: http://www.bochez.com/LittlePunksComic/view.php?comic=61 Now... You'll notice the navbar on the right side... For some of you, this navbar may be working, for others it might not... The navbar pulls the comic number and names from a local text file. The problem is... When I transferred the navbar from the old HTML layout to the new PHP layout, the navbar stopped working all the time... I know this is not an actionscript issue seeing as that EXACT same navbar STILL works with the old layout... you can see that here: http://www.bochez.com/LittlePunksComic/New (the comics wont actually load seeing as I changed the directory) Is there anything anyone knows of that might cause PHP to occasionally not allow an SWF file to load variables from a text file? (Ive cleared cache, cookies and checked all paths pointing to the text file) I'm baffled. :: Hopefully help is out there... Thanks in advance. Bill. Quote Link to comment Share on other sites More sharing options...
DarkSuperHero Posted June 4, 2009 Share Posted June 4, 2009 I don't believe its a php problem at all, theres no way the 2 interact, php outputs text(html ect.) That being said, its your Actionscript code. Flash has what it calls a security sandbox, your SWF's are throwing an error, Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://bochez.com/LittlePunksComic/flashnav2.swf cannot load data from http://www.bochez.com/LittlePunksComic/comic.txt. at flashnav2_fla::MainTimeline/frame2() a simple fix would be to use relative paths if your not....so you would specify the URL to be comic.txt, instead of the entire URL. Flash might be seeing it as an external request....Just a thought.... Quote Link to comment Share on other sites More sharing options...
bochez Posted June 4, 2009 Author Share Posted June 4, 2009 Alright, I will give that a try, Thanks! The only thing that made me think that it wasn't actionscript was the fact that it worked on the site that didn't have any PHP in it... It's just so weird that it works on one site, and not the other. Quote Link to comment Share on other sites More sharing options...
bochez Posted June 8, 2009 Author Share Posted June 8, 2009 That actually did the trick! Thanks. Quote Link to comment Share on other sites More sharing options...
DarkSuperHero Posted June 8, 2009 Share Posted June 8, 2009 theres still some issues going on with it... SecurityError: Error #2137: Security sandbox violation: http://bochez.com/LittlePunksComic/flashnav.swf cannot navigate window _self within http://www.bochez.com/LittlePunksComic/view.php?comic=62 (allowScriptAccess is sameDomain). Attempted URL was http://bochez.com/LittlePunksComic/view.php?comic=60. at global/flash.net::navigateToURL() at item/pressIt() Theres something along the same lines, but I'm not too sure what to suggest without looking at some code...just a heads up.... Quote Link to comment Share on other sites More sharing options...
bochez Posted June 8, 2009 Author Share Posted June 8, 2009 Ugh. Yeah, theres another problem now... Now the flash is loading at all times, but for some reason the nav still doesnt work when the website is "www.bochez.com/blah blah blah" It works fine when its "bochez.com/blah blah blah".... I know I can fix this with a .htaccess file, but I unfortunately registered this website with Yahoo, and they didn't tell me I can't use .htaccess files... Any ideas as to how I might combat this new problem? Quote Link to comment Share on other sites More sharing options...
bochez Posted June 10, 2009 Author Share Posted June 10, 2009 Okay, this problem has been fixed too... A simple AllowAccesss="Always" fixed this one... I had it set to "SameDomain" But apparently that doesn't work between www.bochez.com and just regular bochez.com. Ugh, The internet is confusing sometimes... But thanks for all the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.