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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:10:00+00:00 2026-05-24T14:10:00+00:00

I have a Flash Professional CS5 movie which I’m trying to pass a parameter

  • 0

I have a Flash Professional CS5 movie which I’m trying to pass a parameter with swfobject. The problem is that movieclip’s flashvar variables (under loaderInfo.parameters) is null.

Here is the swfobject code:

function loadSetupBar(connectId) 
{
  // add the setup bar to the DOM using swfobject
  swfobject.embedSWF("{{setupBarSwf}}",
    "swf-setup-bar",
    {{gameWidth}}, $("#top-bar").height(),
    "10.0.0", "{{installSwf}}",
    {connectionId : connectId },
    {
      allowFullScreen : true,
      wmode : 'opaque',
      allowscriptaccess: "always"
    },
    {name:"swf-setup-bar"}
  );
}

According to the swfobject documentation, everything seems to be ok.

Here’s the corresponding code inside the FLA (A MovieClip with its own AS3 class):

var params : Object = root.loaderInfo.parameters;
var connectionId : String = params.connectionId;

if ( !params.hasOwnProperty('connectionId') )
   // this line is always printed.
   trace("[SetupBar-Error] loaderInfo parameters missing property 'connectionId'")

I’m not sure about what else to do.

Thanks.

EDIT: Here is a list of things I’ve tried that have failed:

  • casted root.loaderInfo to class LoaderInfo ( i.e. LoaderInfo(this.root.loaderInfo) )
  • passing a String literal in swfobject.embedSWF instead of param connectId
    (i.e. {connectionID : ‘myTestValue’})
  • 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-24T14:10:01+00:00Added an answer on May 24, 2026 at 2:10 pm

    There’s a problem with the TLF TEXT control, when you add it to the stage the flashvars begins not working . just don’t use it and your flashvars will work fine . i’ve faced the same problem and i got it solved by not using TLF TEXT control.

    I hope i helped .

    Best Regards

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

Sidebar

Related Questions

Greeting, I have a problem with flash media live encoder CS5 that when I
I have some class that I created visually in Flash Professional CS5 by transferring
I have a Flash Professional CS5 project with ActionScript 3. I have a movieclip
i'm making window component on Flash Professional CS4 and now i have 1 problem.
I have a flash program that loads movie clips dynamically and sometimes they want
I have a flash movie that loads images dynamically from an xml file. I
I have a flash movie that runs fine in FF, Opera, Safari but not
I have a project with Flash Professional CS5 and ActionScript 3. I need to
Maybe it is a bad habit which I still have since Flash Professional, but
Using Flash CS5 Professional I have created a symbol, dragged it onto the stage,

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.