I've been linking Flash applications to Moodle by adding them as resources to students, and it's working pretty well for my case. But I'm missing something important: I need to pass two parameters to my applications that are not available in the standard list, which are: 1) resource ID, and 2) the "role" of the user accessing the resource (student, teacher, or creator). I've been looking into the code for it and so far I was not successful in finding a way to do it.
Any tips or solutions? Any help is appreciated. Thanks in advance.