Jump to content

[SOLVED] HTML/PHP/Actionscript/Textfile


bochez

Recommended Posts

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.

 

::confused::

 

Hopefully help is out there...

Thanks in advance.

 

Bill.

 

 

 

 

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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....

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.