dcsimg
A Flash Developer Resource Site

Results 1 to 20 of 24

Thread: Links and thumbnails - how do I target these?

Threaded View

  1. #21
    Junior Member
    Join Date
    Apr 2011
    Posts
    14
    I made a function like this:

    Code:
    function cleanStage():void{
    	if(container_mc != null){
    		while (container_mc.numChildren > 0){
    		  container_mc.removeChildAt(0);
    	}
    		while (container_thumbs.numChildren > 0){
    		  container_thumbs.removeChildAt(0);
    	}
    	}
    }
    And then use it in the function that changes the frame like this:
    Code:
    function goHome (e:MouseEvent):void{
    	cleanStage();
    	gotoAndStop("Home");
    }
    It seems to run without error. This is probably a horrible way to solve these things from a professional point of view, but I can only do what seems the most natural to me since I dont have any real training in flash
    Last edited by IceDiver; 04-26-2011 at 02:39 PM.

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