A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Adding things to swfs

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    3
    Hello, everybody. Sorry to cut in.

    I'm writing a CGI that's output is a swf file. Can I put the MIME type (application/x-shockwave-flash) at the top of the output? (This is the only way I know to make the browser recognize that it's flash, since the filename will have .cgi at the end of it.) Will that screw something up? Also, I'm with a free host (yeah, I know, it sucks, but I'm cheap) that requires an ad banner in all CGI output. Is there any way of commenting the banner out?

    Thanks for any help you can give me. Sorry again to intrude on your message board.

    -QwertyD

  2. #2
    Junior Member
    Join Date
    Jul 2000
    Posts
    5
    If you use Apache as your Web Server, you
    can solve this problem by writting a apache module.

    This module should redirect a request like
    http://yourhost/path/special_path/not-exist.swf
    to
    http://yourhost/path/your-cgi-program.

    Because this redirecting happend in internal of
    Apache server, so the client still believe it
    recieved a swf file.



    Originally posted by qwertyd
    Hello, everybody. Sorry to cut in.

    I'm writing a CGI that's output is a swf file. Can I put the MIME type (application/x-shockwave-flash) at the top of the output? (This is the only way I know to make the browser recognize that it's flash, since the filename will have .cgi at the end of it.) Will that screw something up?
    -QwertyD

  3. #3
    Junior Member
    Join Date
    Apr 2000
    Posts
    3
    You're a genius! Thank you!However, is there any way of doing this from a .htaccess file? I'm using a good free host, so I can run my own CGIs and use .htaccess files in my site, but I can't change the server software directly.

    Also, will the MIME type of the file actually be sent as "application/x-shockwave-flash"? I know IE will ignore MIME types and proccess files based on their extensions, but Netscape looks at MIME types.

    And one other thing, there's still the matter of ad banner code, which has to be somewhere in the cgi output. Does anybody out there, in some corner of the web, know of a way of commenting it out in a swf?

    Thanks for all your help, everybody.

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