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

The Archive Base Latest Questions

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

var myStr:String = root.loaderInfo.parameters.benny; //this code will recieve single value from flashVars. I want

  • 0
var myStr:String = root.loaderInfo.parameters.benny;
//this code will recieve single value from flashVars.

I want to know how to use LoaderInfo.parameters for handle more number of data?

  • 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-22T14:44:11+00:00Added an answer on May 22, 2026 at 2:44 pm

    The loader variables are captured by flash either by get variables inside the URL or by flashvars. You’ve got it exactly right, its key/value pairs. So basically if you had a URL like this:

    http://somewhere.com/movie.swf?test1=10&test2=20&benny=benny
    

    Inside flash you access these just like you’ve already been doing:

    var numberString:String = root.loaderInfo.parameters.test1 as String;
    var number:Number = root.loaderInfo.parameters.test2 as Number;
    var uName:String = root.loaderInfo.parameters.benny as String;
    

    If you were to trace out the above values, it will show:

    trace(numberString); //10
    trace(number); //20
    trace(uName); //benny
    

    Heres a link that describes doing the same thing using flashvars:

    http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html

    Note I use the statement “as String” or “as Number” because by default the values are properties of an Object called “parameters.” Doing what I’m doing above explicitly casts these values as the desired type, which is prudent for both optimal VM performance and just plain good coding practice.

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

Sidebar

Related Questions

var q = from child in doc.Descendants(level) where (int)child.Attribute(id) == 55 select (string)child.Element(Points).**Value.ToString()**; I
if I have a string e.g. var myStr="AAAAAAA BBBBB CCCCC DDDDD..." , this string
var i : integer; i := 1234567; Given the above, I want the string
var auditAgencyRecords = (from ag in db.Agencies join ara in db.AuditRuleAccounts on ag.Agency_Id equals
var list = (from i in _dataContext.aspnet_Users.Include(aspnet_Membership) where i.UserName.Contains(userName) select i ).ToList(); if userName=
var img=new Image(); img.src='xxxxx'; Will the browser wait for the image to load then
var CoreGroups = new function(){ this.name = function(){return 'name test'}; var functionName = function(){
var query = from d in testPersons.person where d.Name == txtbox select d; txtbox
var value; $(#Grid1).click(function(e) { var row = jQuery(e.target).parent(); value= row.attr(id); }); var onrowclick =
var flashvars = { client.allow.cross.domain : 0, client.notify.cross.domain : 1, }; For some strange

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.