Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash as2 cross domain issue to access the swf file from another server

Guest
Jun 09, 2013 Jun 09, 2013

I have cross domain issue, How can I access the .swf file from another swf without using System.Security.allowdomain() in the swf which we are called.

I'm using 2 domains and I have 2 swf files one is from a.com(a.swf) and another one is from b.com(b.swf) I want to access the frames of the b.swf file from the a.swf, If I'm using the System.Security.allowdomain() in the b.swf file I can access the frames. But without using this How can I access the file from another domain.

Because I have a risk to change the b.swf file so I vant to access without changing the b.swf file Is any other wey to access the frames of b.swf file from a.swf file. Please someone help me to solve this issue.

TOPICS
ActionScript
573
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 10, 2013 Jun 10, 2013

use a local executable (like php) to load the b.swf and return it to a.swf.  for example:

loadSWF.php:

<?

$fh = fopen("www.b.com/b.swf","r");

header("Content-type: application/x-shockwave-flash");

fpassthru($fh);

?>

a.fla:

var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());

target_mc.loadMovie("loadSWF.php");

Translate
Community Expert ,
Jun 10, 2013 Jun 10, 2013
LATEST

use a local executable (like php) to load the b.swf and return it to a.swf.  for example:

loadSWF.php:

<?

$fh = fopen("www.b.com/b.swf","r");

header("Content-type: application/x-shockwave-flash");

fpassthru($fh);

?>

a.fla:

var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());

target_mc.loadMovie("loadSWF.php");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines