I have my drupal site up and running and designed a very nice panels setup for user profiles. Our site is for live streaming media and I have written a flash app to use for that which will be on the panel profile pages. For the flash to work properly it needs to grab the drupal UID of the users profile. I have my app setup to use flashvars to set the instance string i just need to be sure i have the right code so it pulls the uid correctly to make the flash player a unique name on each profile page so they do not all play 1 users stream on all profiles. The other question I have is how would i insert the html/php for the player code in the pane so that it works properly there is a lot of included files with the flash app and i know i cant just copy/paste the html code for the player as code into a pane and have it work. where would drupal try to find included files by default so i can place them in the proper directory structure.

Right now I have this code that was given to me from the drupal stackexchange pages

flashvars.instance = escape(' $global $user; $drupaluserid = $user->uid');

but i am not sure if that would be the proper way to grab the uid of the profile being viewed. If i am going about this all wrong please let me know. We ran out of startup cash and I had to resort to completing all the programming myself and I am not an expert programmer.