movieclip

adding ui to movieclip

Page 1 of 1

0 Replies - 479 Views - Last Post: 04 December 2008 - 01:23 PM

#1 ceyesuma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 16-December 07

movieclip

Posted 04 December 2008 - 01:23 PM

I can not figure this out. this code seems to add the uiThumbs3rd to the whole stage but I

am trying to put it on a movieclip shown here.There is no code in the timeline and I have

the movieclip McContent drawn on the stage with the instance name mcContent. I think I

have the whole thing out of context since I am adding this stuff from an external class.

Can some one explain how to put a movieclip on the stage and add a uicomponent to it?
Thanks

private function selectedName(evt:Event):void {
			var mcContent:MovieClip=new MovieClip();
			addChild(mcContent);
			evtIndex=evt.target.selectedIndex;
			key=majorArray[evtIndex];
			uiThumbs3rdComponent=new UIThumbs3rdComponent(fileName,key);
			mcContent.addChild(uiThumbs3rdComponent.uiThumbs3rd);
		}



Is This A Good Question/Topic? 0
  • +

Page 1 of 1