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 6889197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:07:30+00:00 2026-05-27T06:07:30+00:00

Im stuck I got this flash that need’s to be configured in a certain

  • 0

Im stuck

I got this flash that need’s to be configured in a certain way

My code looks like this

HTML

<object type="application/x-shockwave-flash" data="banner.swf" width="896" height="240">
    <param name="movie" value="banner.swf" />
    <param name="flashvars" value="hrefUrl=http://stackoverflow.com&popup=true" /> 
</object>

Actionscript

import flash.display.Sprite;
import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.display.LoaderInfo;

//var paramList:Object = root.loaderInfo.parameters;
//var flashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;

// Url to page, default to google
var hrefUrl:String = (root.loaderInfo.parameters.hrefUrl) ? root.loaderInfo.parameters.hrefUrl : "http://www.google.com";

// Popup or not, default to _self
var popup:String = (root.loaderInfo.parameters.popup == "true") ? "_blank" : "_self";

// Fire the event
btn.addEventListener(MouseEvent.CLICK, onClick);

function onClick(evt:MouseEvent):void {
    var req:URLRequest = new URLRequest();
    navigateToURL(new URLRequest(hrefUrl), popup);
}

For some reason this doesn’t work but if I for some reason put the flashvars in the data parameter it works

Example

<object type="application/x-shockwave-flash" data="banner.swf?hrefUrl=http://stackoverflow.com&popup=true" width="896" height="240">

What could be wrong here? I’ve starred myself blind on this one

Thanks

  • 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-27T06:07:32+00:00Added an answer on May 27, 2026 at 6:07 am

    May be root is not targeting [object MainTimeline]. So go with stage.

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

Sidebar

Related Questions

Really got stuck on this simple regex. Need it to validate a string, that
I'm stuck with this pretty silly thing; I got a textfile like this; Hello::140.0::Bye
I'm porting some code from lisp, but I got stuck at this part (apparently
I was reading the C++0x FAQ by Stroustrup and got stuck with this code.
I have to keep the formatting the exact same way that I got this
In my way of learning drupal, I got stuck in this issue. I have
so im still stuck on this that i can create remote shared object but
I got stuck in this problem for an hour. I am thinking this is
I'm working on a site and got stuck. The problem is that my drop
Preparing for exam and got stuck at this question: Allowed operators are <<,+,& no

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.