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

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6

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.