all groups > macromedia flash flash remoting > may 2005 >
You're in the

macromedia flash flash remoting

group:

Dynamic Textbox Hyperlinks?



Dynamic Textbox Hyperlinks? ashlyAtWork
5/26/2005 12:00:00 AM
macromedia flash flash remoting: I am creating a faculty profile that pulls every faculty member's info from my
query and then I pass it to flash. I have a dynamic textbox where I output the
names and departments, and for each listing I want to load another flash movie
into a new browser window where that member's information will be displayed. I
think I know how to pass the faculty member's ID onto the next movie, but how
do I link each listing? Right now I have it set up in a for loop that prints
each member's info, but I am unsure of how to write the actionscript to
complete the next step. Here's what I have so far:

function getFacultyList_Result(resultRecordset) {
for (var i = 0; i <= resultRecordset.length; ++i) {
var fullname = resultRecordset.items.fullname;
var faculty_id = resultRecordset.items.faculty_id;
var dept = resultRecordset.items.dept_name;
nameList.text += fullname+"<br>";
deptList.text += dept+"<br>";
}
}

Any suggestions?


Re: Dynamic Textbox Hyperlinks? tutsamewasa
6/9/2005 7:22:00 AM
Hi,

Make links like this
<A href= \"asfunction:yourAScriptFunction, ID\">+ Name+ "</A>
yourAScriptFunction is your Action Script function that will be called when
someone clicks that link,
and ID is an argument that will be passed to the function.

Please tell us if you need more light on this.

Hope this helps

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com




AddThis Social Bookmark Button