A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Problem embeding swf in index.php

Threaded View

  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    38

    Problem embeding swf in index.php

    I'm trying to embed an swf file in a .php file.
    When both files (php & swf) are in the same directory (mysite.com/), works perfectly.
    Here is the code I put in php file (mysite.com/my.php)(some is replaced by 'blah blah' or erased, for short):
    Code:
    <object classid=blah blah...codebase=blah blah...>
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="my.swf" />
    <embed src="my.swf"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    But when I move 'my.swf' in 'mysite.com/mydir' it doesn't work (even though I change the path in the code):
    Code:
    <object classid=blah blah...codebase=blah blah...>
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="mydir/my.swf" />
    <embed src="mydir/my.swf"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    I also tried:
    '/mydir/my.swf'
    './mydir/my.swf'
    'mysite.com/mydir/my.swf'.
    Nothing. Worked only when in 'mysite.com/'.
    Last edited by panoss; 05-16-2012 at 11:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center