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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:14:03+00:00 2026-05-17T19:14:03+00:00

Having some issues accessing my param tags from within actionscript. Essentially I have the

  • 0

Having some issues accessing my param tags from within actionscript. Essentially I have the following tag:

<param name="config" value="config" />

But I am unable to access it. There are two issues that I have, and I’ve been searching the internet high and low for the answers.

1) How do I even access the parameter? I have some people saying use _root.config, LoaderInfo(this.root.loaderInfo).parameters[“config”], and just config. None work, and searching for this stuff is so hard because it’s so generic.

2) I assume that once I do find out how to access the param that is being passed, I’m going to have issues with accessing it from another file because I read somewhere during my searching that other files do not have access to global variables. If this is the case, how do I do that? I have seen _globals thrown around a couple of times and some people say it works, some don’t.

Sorry if these are very basic questions, but I’m a php/.NET coder that had to update an actionscript file, and it’s nothing like what I expected.

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-17T19:14:04+00:00Added an answer on May 17, 2026 at 7:14 pm

    It seems there is a confusion between Flashvars & Flash parameters. You can access Flashvars within your code by using loaderInfo.parameters, but you won’t be able to access the Flash parameters( why would you want to? )

    Have a look at the following example to see the difference between the two
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000272.html

    Flash parameters will set a bunch of properties to embed your movie in an HTML page, whilst Flashvars are values that you wish to use within your application.

    After loading your flashvars, there are several ways to access them across your application, a simple solution ( probably not the best ) would be to create an Asset class with public static variables.

    public class Asset
    {
         public static var config:String;
         public static var amount:int;
    }
    
    public class Main extends Sprite
    {
        public function Main
        {
            var params:Object = this.loaderInfo.parameters;
    
            //set your Asset variables
            Asset.config = params.config;
            Asset.amount = params.amount;
    
            //now that the values are set , you can use them 
            //across your app. See below...
    
        }
    }
    
    public class Whatever
    {
           public function Whatever()
           {
               var amount:int = Asset.amount;
           }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been having some issues with LINQ-To-SQL around memory usage. I'm using it
I'm trying to designing a class and I'm having issues with accessing some of
We've been having some issues with a SharePoint instance in a test environment. Thankfully
I'm having some issues with producing an int matrix without creating memory leaks. I
We are having some issues getting SharePoint to work as we want it to.
I am having some issues with using the OrderBy extension method on a LINQ
I am using Fluent NHibernate and having some issues getting a many to many
I'm having some inheritance issues as I've got a group of inter-related abstract classes
We are having some performance issues with a page and I wanted to ask
I'm having some weird issues with Xcode, and this is pretty much impossible to

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.