Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
September 02, 2010, 08:33:31 AM

Pages: [1]   Go Down
  Print  
Author Topic: Flash file swf doesnt load. Security sandbox violation???  (Read 667 times)
trying2learn
Newbie
*
Offline Offline

Posts: 5


« on: January 18, 2010, 06:29:24 AM »

I get this error when i try and run a swf file:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/header.swf cannot load data from http://www.mysite.com/folder1/checkuserlog.php.
   at header_fla::MainTimeline/frame1()

It seems to activate the header.swf file, but doesn't go through the checkuserlog.php

checkuserlog.php:
<?php
session_start();
if ($_POST['post_code'] == "check_log") {
     if (!isset($_SESSION['id'])) {
          print "return_msg=not_logged_in";
        exit();    
     } else {
          $id = $_SESSION['id'];
          $firstname = $_SESSION['firstname'];
          print "member_id=$id&member_name=$firstname";
          exit();
     }
}
?>
Logged
scanman20
Master Jedi
*****
Offline Offline

Posts: 1449



WWW
« Reply #1 on: January 18, 2010, 08:34:52 AM »

Two things to try. Try adding a crossdomain.xml file to your root folder (Google it if you don't know what it is) and also make sure the addresses are the same (i.e. make sure they both have or don't have www). In your example above, the error points to http://mysite.com and then says it's tried to load from http://www.mysite.com
Logged

Even a broken clock is right twice a day.
NotOneBit.com
MCSE - MCSA - MCP
Pages: [1]   Go Up
  Print  
 
Jump to: