Groups | Blog | Home
all groups > macromedia flash flash remoting > may 2004 >

macromedia flash flash remoting : Remoting and list component problem


hAndyMan03
5/10/2004 11:26:08 PM
I'm using ColdFusion MX, Flash Mx 2004 Professional and Access for a project
where we're building an online showcase...

I have a list component which displays all persons registered in the database
and now I want Flash to recognise which person the user clicks on (I need to
pass that data (id) back to my ColdFusion component to retrieve needed data
from the database). But it doesn't work.

Flash register when the user clicks and calls the right function which in
turns sends result from the server...so I know that's all right.

My code goes something like this:

function displayDesc(){
var mySelection:Number = (this.memberList.selectedItem.data());
myService.doDisplayDesc({usrID:mySelection});
}

(i've also tried without strickt typing the variable)

The problem is that the variable mySelection is undefined....and I don't know
why!!!!

Can anyone help me out?

Thanks:)


[h]Text[/h][h]Text[/h][b]Text[/b]
hAndyMan03
5/11/2004 7:48:05 AM
Yes I do. I've placed the action on the list component. The code is:

on(change){
_root.displayDesc();
}


Paul Whitham TMM
5/11/2004 3:38:07 PM
Do you have an event that is firing this function?



--
Regards

Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Ultradev/Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia

[quoted text, click to view]

AddThis Social Bookmark Button