Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    22
    Thanks
    5
    Thanked 0 Times in 0 Posts

    need help with flashvars as3

    I am creating a website for my 3rd year university project, i have created a profile page that displays information for each member, however i would also like to include a flash player the streams the music they have uploaded.
    i have also created an xml file embedded with php that sorts the tracks title and location, i have called this playlist.php. i have tested this using members usernames and it seems to work, however when i try to use flashvars to generate a username it always seems to go wrong??

    (not the complete code)

    var keyStr:String;
    // Claim valueStr variable as a string
    var valueStr:String;
    // Create the paramObj Object and set it to load parameters
    // from the root level being sent in by FlashVars externally

    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;

    valueStr = String(paramObj[keyStr]);

    loader.load(new URLRequest("http://localhost/playlist.php?"+keyStr+valueStr));
    Last edited by maroccano1; 02-25-2009 at 01:50 AM.

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I could be wrong, but I think you are basically redeclaring the variable, which would erase the flashvar version. Have you tried without declaring it? Its a string by default.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •