Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: need help with flashvars as3
02-25-2009, 12:47 AM #1
- Join Date
- Feb 2009
- 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)
// Claim valueStr variable as a 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]);
Last edited by maroccano1; 02-25-2009 at 12:50 AM.
02-25-2009, 10:37 AM #2
- Join Date
- Sep 2007
- 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.