-
Need help deleting guest book entries
I am having problems with the following code. I don't think I am deleting the shared objects properly. If anyone can look at my code and give me some pointers it would be greatly appreciate.
// Delete Guestbook Items
function itemClicked(pictureID){
// used to show what info is in pictureID
_root.mytext.text = pictureID;
userStreamName = pictureID;
// check to see if we are working with a stream
info = pictureID.length;
if (userStreamName != null) {
if (info > 4){
// send call to server to delete stream
_root.main_nc.call("delStream", null, userStreamName);
}else{
// the layout of the shared object
//title:userTitle, date:userDateTime, text:userText, AVType:"AV", streamName:userStreamName
// null each entry
_root.entries_so.data[pictureID].text.text = null;
_root.entries_so.data[pictureID].date.text = null;
_root.entries_so.data[pictureID].title.text = null;
_root.entries_so.data[pictureID].AVType.text = null;
}
}
// refresh the scrollbox
doRefresh();
}
-
try:
delete _root.entries_so.data[pictureID].title.text;
Psx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|