Current location: Hot Scripts Forums » Programming Languages » PHP » crossdomain w/rssReader and Flash


crossdomain w/rssReader and Flash

Reply
  #1 (permalink)  
Old 09-03-08, 04:35 PM
luminousarizona luminousarizona is offline
Newbie Coder
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
crossdomain w/rssReader and Flash

Hi to whom ever can help us, I purchased an rssReader and I uploaded it to our web server. The files included “retrieve_pure_XML_viaSocket.php” and “navig.xml” files to support the swf to allow data to pass cross domains. I also edited the AS as per the tutorial:

http://presswordthemes.com/preview/tutorial.html

Obviously it works fine on my local host server but not so on the web server. The only changes I did was to the GUI of the swf and the links in the xml to fit the site. I think the seller of the interface has abandoned it ‘cause there is no reply since April and the same for his personal website feeds.

I really need some help w/this so we can move on to the next phase of the development of the site. We are a non-profit trying to get this site up and going our selves to save $$ and are learning as we go. The site is http://www.smammalranch.com so U can see where the reader is. I can give U a FTP login to down load the files via e-Mail if you think U can help.

I greatly appreciate your time and efforts, thnx in advance, Jason & Kristi
Reply With Quote
  #2 (permalink)  
Old 09-03-08, 04:42 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Check the firewall.

If you don't have access to the server's firewall, or its logs, request help from your hosting company.

Good luck.

crispnewengland
Reply With Quote
  #3 (permalink)  
Old 09-03-08, 05:14 PM
daveganley daveganley is offline
Newbie Coder
 
Join Date: Jun 2003
Location: London UK
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Not sure but this might help

Do you have a crossdomain.xml in the root directory?

If not create one with

PHP Code:

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*" />
</cross-domain-policy>
The * is a wildcard to allow any domain. Change it to yours once you have tested it

Dave
Reply With Quote
  #4 (permalink)  
Old 09-03-08, 05:21 PM
luminousarizona luminousarizona is offline
Newbie Coder
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Wrong direction - Idont wont to allow data to go out; I am needing it to come in frome another. The "retrieve_pure_xml_viaSocket.php" is for this and something is wrong please see the Tutorial link above that contains the file and take a looksy. thnx
Reply With Quote
  #5 (permalink)  
Old 09-03-08, 05:24 PM
daveganley daveganley is offline
Newbie Coder
 
Join Date: Jun 2003
Location: London UK
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
So you tried it?

From adobe site:
This applies to any ActionScript command or object that sends or receives data, including loadVariables, the XMLSocket object methods, and the XML object send andsendAndLoad commands.
Reply With Quote
  #6 (permalink)  
Old 09-03-08, 05:34 PM
luminousarizona luminousarizona is offline
Newbie Coder
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thnx, Like I said we are on a sharp learning curve. From what I under stand from the Adobe Tech Notes that is not true???? there is a seperate php file needed to keep data from going out and allows only data to come in - otherwise it is a security risk - please correct me if I am miss-understanding this. If you can please expand on this before I try this and how do I implement it in the AS - via global.* ???

I greatly appreciate any help, thnx

Last edited by luminousarizona; 09-03-08 at 05:37 PM.
Reply With Quote
  #7 (permalink)  
Old 09-03-08, 05:43 PM
daveganley daveganley is offline
Newbie Coder
 
Join Date: Jun 2003
Location: London UK
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
The retrieve_pure_xml_viaSocket.php is a proxy script. So flash can talk locally and then the proxy talks externally.

Try the crossdomain.xml with the * wildcard. This allows flash to talk to the proxy script.

Then once working change the * wildcard to your domain, it test again to lock it down.
Reply With Quote
  #8 (permalink)  
Old 09-03-08, 05:52 PM
luminousarizona luminousarizona is offline
Newbie Coder
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Dave, I sent U an e_mail..

still no dice. I am goin to upload the original files(the same that U used) -- AGAIN but with the crossdomain file.

I loaded the "untouched" files w/the crossdomain.xml and it is not working.........??????

I discovered that there is a php error: HttpRequest::DownloadToString()
Ill see if I can figure this one out - I deleated the file and sent up a clean one but still not working - cant under stand to why it works for everyone else - I also sent a ticket into my provider - maybe it is on there end??

Last edited by Nico; 09-04-08 at 02:36 AM. Reason: Merged, and added [noparse] wrappers.
Reply With Quote
  #9 (permalink)  
Old 09-04-08, 12:34 PM
luminousarizona luminousarizona is offline
Newbie Coder
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
It turns out that the new 5.2.5v of php on the web server that was installed this weekend was corrupt; now everything is working - THNX for the help - Having U put the files on your server proved to the provider it was on there end!!
Reply With Quote
  #10 (permalink)  
Old 09-25-08, 05:17 AM
qlikworld qlikworld is offline
New Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi LUMINOUISARIZONA,

Really like the rssreader on your site, and i went over to the source you mentioned, but i dont seem to be able to find the 'buy this' link or button anywhere. On the page you mentioned is a download link but it doesnt include the .fla file. Can you either send me the right link to buy it or send me the rssReader.fla file perhaps?

grtz
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash: Unable to load Images from other subdomain Robd75 Flash & ActionScript 1 08-05-08 01:49 PM
does dynamic flash image display consume bandwidth? janicefernandes Flash & ActionScript 1 12-29-07 08:38 AM
Flash 8 to Flash 2004 MX? 12345421 Flash & ActionScript 2 04-05-07 11:29 PM
Flash Programmer wanted - Romania valheru Job Offers & Assistance 1 07-13-06 09:04 AM
Php with flash or without tables ? EraseR PHP 0 06-26-04 07:36 AM


All times are GMT -5. The time now is 07:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.