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

  • SEARCH
  • Home
  • 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 608251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:26:34+00:00 2026-05-13T17:26:34+00:00

We’ve got a flash file that takes a URL parameter for redirecting on click.

  • 0

We’ve got a flash file that takes a URL parameter for redirecting on click. When it’s hosted from the primary domain, and the SWF is included in HTML from the primary domain, the redirect works properly.

However, when it’s hosted on the secondary domain, and the SWF is included in HTML from the primary domain, the redirect doesn’t work. I’ve added a crossdomain.xml file to both the primary and secondary domain, thinking that might help. The contents of both crossdomain.xml files are included below.

What is it that I’m missing?

crossdomain.xml

<cross-domain-policy>
    <allow-access-from domain="*"/>
</cross-domain-policy>

EDIT: Here’s the actionscript used for the “redirect”.

actionscript

on (release) {
    getURL(clickTag);
}

clickTag is a parameter we’re passing in through the querystring.

EDIT: After adding allowScriptAccess="always" to the embed code, and <param name="allowScriptAccess" value="always" /> to the object tag, the window opens, and the location goes to /undefined. Thoughts?

EDIT: As requested, here’s the actual object/embed code we’re using:

<object type="application/x-shockwave-flash" data="/files/2348.swc" width="300" height="250" class="ad" onclick="ad_click(169);">
<param name="movie" value="/files/2348.swc?clickTAG=http://www.google.com"/> 
<param value="high" name="quality"> 
<param value="#FFFFFF" name="bgcolor"> 
<param value="always" name="allowScriptAccess"> 
<param value="transparent" name="wmode">
</object> 
  • 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-13T17:26:35+00:00Added an answer on May 13, 2026 at 5:26 pm

    Try setting allowScriptAccess to always in the object and embed tags of the including HTML.

    The default value is “sameDomain” for recent versions of Flash Player, which explains your current behavior.


    For your edit, it may help to have more information, but you likely need to access your parameters using _root or _level0, rather than directly as above. See Adobe’s docs on this problem and description of _root.


    Based on your embed code, I still think it may be worth your while to look into _root.

    Your object tag is a bit nonstandard, so there may be some issues:

    1. You seem to have the case issues suggested by Josh here: clickTag vs clickTAG
    2. Does it help to add the parameter to the data attribute URL?
    3. Perhaps trying the Adobe suggested tags would help?
    4. Also, what’s the significance of packaging your file as a SWC rather than a SWF?

    If you have control over the SWF, you might consider going directly to FlashVars.

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

Sidebar

Ask A Question

Stats

  • Questions 314k
  • Answers 314k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If myFunc1() starts, but never finishes, then it's most likely… May 13, 2026 at 11:07 pm
  • Editorial Team
    Editorial Team added an answer It is sort-of possible, but the usage won't look very… May 13, 2026 at 11:07 pm
  • Editorial Team
    Editorial Team added an answer You can save data to Session or ViewState objects. Also… May 13, 2026 at 11:07 pm

Related Questions

We are developing a little application that given a directory with PDF files creates
We have been using CruiseControl for quite a while with NUnit and NAnt. For
We have a requirement in project to store all the revisions(Change History) for the
We have a remoting singleton server running in a separate windows service (let's call
We have an SVN repository running on a Windows server, and I want to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.