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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:45:46+00:00 2026-05-20T10:45:46+00:00

Not my code, trying to fix it at the 11th hour. Trying to access

  • 0

Not my code, trying to fix it at the 11th hour.

Trying to access flashvars from a legacy AS2 movie loaded inside an AS3 movie

The AS3 movie uses com.gskinner.utils.SWFBridgeAS3 for AS2 compatibility.

The flashvars defined in the html file are not accessible in the AS2 movie. Not as “just variables” (old AS2 flashvars method) nor as the

stage.loaderinfo.parameters 

which AS3 would provide.

Nothing seems to work, even accessing any variable defined in the parent AS3 movie.

So, in the AS3 movie:

var myvar = 5;

in the AS2 movie:

trace(myvar); => undefined
trace(parent.myvar); => undefined

How can I work around this?

Thank you!

  • 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-20T10:45:47+00:00Added an answer on May 20, 2026 at 10:45 am

    Using the information available on the SWFBridge site, you should do the following:

    // in the AS2 SWF:
    var myBridge:SWFBridgeAS2 = new SWFBridgeAS2("123456", clientObj);
    
    
    // in the AS3 SWF:
    var myBridge:SWFBridgeAS3 = new SWFBridgeAS3("123456", clientObj);
    

    The ID 123456 can be any unique ID you would like to use.

    Then, in the AS3 version:

    var myvar = 5;
    myBridge.send("updateVar", myvar);
    

    In the AS2 version, have the following method:

    function updateVar(var) {
        trace(var); // will output 5
    }
    

    Reference: http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html

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

Sidebar

Related Questions

so I'm looking at another person's code trying to fix it, and I'm not
I'm trying to fix a problem with some code (not written by me) lnkbtnPageNumber.ID
After trying to understand why client code is not rendered in a page (injected
Hey all i am trying to figiure out why my code is not triggering
I've inherited a ASP/VB6 code base (not my forte... yet) and I'm trying tease
I'm trying to use TestDriven.Net not only to test my code, but to call
I'm trying to test code around a web service that is not available yet.
I'm trying the following code to execute a search and it's not working. On
I am trying to use the following code, which I have not been able
I'm trying to get the exact equivalent (not functional) of this vb.net code in

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.