Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1084037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:30:40+00:00 2026-05-16T22:30:40+00:00

If I load an SWF with a query string at the end, like: object.swf?this=that

  • 0

If I load an SWF with a query string at the end, like:

object.swf?this=that

… then “this” is properly recognized as a flashvar within the flash object.

But, if I set “this” via mod_rewrite, as in:

RewriteRule ^object$ lib/object.swf?this=that [QSA,NC,L]

… then “this” is undefined.

I even wrote a little PHP script to dump the contents of $_GET (changed the rewrite target temporarily), and I’m positive that the rewrite rule is working.

Any help greatly appreciated.

mod_rewrite clarification:

To demonstrate the strangeness of the problem, let me temporarily change the rewrite target to “object.php”, so the rule now reads:

RewriteRule ^object$ lib/object.php?this=that [QSA,NC,L]

I created object.php in the /lib/ directory with the following line:

<?php echo '<pre>'.print_r($_GET, true).'</pre>'; ?>

Then, when I navigate to /object, I get the following output:

Array
(
    [this] => that
)

This demonstrates that the rewrite rule is working as expected.

Still, when I change the rewrite target back to the SWF, “this” is not recognized as a flashvar.

(I’d definitely check the rewrite log to make sure, but I don’t think I have access to it on the Media Temple server I’m using.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T22:30:40+00:00Added an answer on May 16, 2026 at 10:30 pm

    I believe that it’s working exactly as it’s meant to. When you’re rewriting the URL, you’re performing the transformation on the server, and the process is entirely transparent to the client. While this isn’t a problem for your PHP script, which runs on the server, it is problematic for your Flash content, which runs on the client.

    I suspect that the reason that adding a query string works is that the Flash player is able to parse out the relevant information from the request when it loads the movie object. However, when you use mod_rewrite, the modified request is not available to the player, so it is not able to extract the information that you need.

    If you wanted to have the URL without the query string, it is possible to examine the request path of the loaded file inside of the SWF, so you could simply redirect to the Flash file without a query string on the server, and then inside of the SWF parse out the information that you’re currently getting with mod_rewrite to determine what content to load internally. I’d have to brush up on my ActionScript to give you a code sample, but if you’re interested I’ll see what I can do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to load multiple swf in a list like control so that I
I load an SWF with SWFLoader. Within the loaded .SWF, this.parentApplication is returning NULL.
I'm developing a web application that load a swf object; I'm asking how can
It seems that in Flash, you can load an SWF (CS-built) with Loader .
how to load a movie[.swf] at the end of another movie[.swf] in AS3? thanks
I have two swfs: application swf p2p client swf that allows to load data
I am trying to load a swf into an Ogre3d/Hikari application and that swf
I want to load an SWF object from a Memory Stream or a byte
i'm making an swf file that will load another swf file var myLoader:Loader =
Hii, I'm tring to load swf file to my flash application from a different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.