A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [CS3] problems removing the selected question

  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    33

    [CS3] problems removing the selected question

    hihi...i have created a random quiz.....when click on next button, the selected qn is supposed to be removed and to make way for the next selected qn.

    i tried all sorts of target path to remove the selected qn but it dun work.

    anyone can help?
    Last edited by sleeky; 05-07-2009 at 04:17 AM.

  2. #2
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831

    [Solved]

    Hello there,

    I just checked ur FLA and teh probs seems to be solved.

    Issue was with removeMovieClip method. The parameter passed to removeMovieClip code i.e.

    PHP Code:
    removeMovieClip("q"+(i-1)); 
    . Parameter passed here did not hold the object/reference ofmovieclip which is to be removed. Instead better method is to accept the return value of attachMovieClip method in a variable and use that variable to remove the same movie clip. attachMovieClip() method returns an object/reference to teh newly created movieclip which u can use for your later references......

    Check the attached FLA to know more......appropriate comments are put!!!

    Hope this helps!
    Last edited by vinayak.kadam; 02-26-2009 at 03:17 AM.
    As ever,
    Vinayak Kadam

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