A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need help deleting guest book entries

  1. #1

    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);
    // 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


  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001

    delete _root.entries_so.data[pictureID].title.text;


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center