I am creating a UI fro a video player, included in this UI is a rating system. I am having a lot of problems with my radio buttons, I have trace that is generated when you click a rating, it tells me what button is clicked, and the movie that is playing. That works fine, but I actually what this to happen on the submit button instead. When you click the submit button you go to a thank you screen. I have tried every which way and there is something simple I am missing. It is driving me crazy...
Here is my code:
//Create listener object.
var rbListener:Object = new Object();
rbListener.click = function(evt_obj:Object)
{
trace("The selected radio instance is "+evt_obj.target.selection);
var curItem = getCurrentPlaylistObject();
trace(curItem["description"]);
trace(curItem["title"]);
trace(curItem["location"]);
};
//Add listener.
radioGroup.addEventListener("click",rbListener);
Here is the code in the button:
on(release) {
if(_parent.radioGroup.selection==_parent.R1) _parent.gotoAndStop(13);
if(_parent.radioGroup.selection==_parent.R2) _parent.gotoAndStop(13);
if(_parent.radioGroup.selection==_parent.R3) _parent.gotoAndStop(13);
if(_parent.radioGroup.selection==_parent.R4) _parent.gotoAndStop(13);
if(_parent.radioGroup.selection==_parent.R5) _parent.gotoAndStop(13);
}
I have been trying to solve this for several week and I just can't do it. Please help!!!!
Bookmarks