WEB Flash Crew: I has question

Discussion in 'OT Technology' started by nubian, Mar 22, 2008.

  1. nubian

    nubian Active Member

    Aug 11, 2003
    Likes Received:
    i'm been spending hours and hours trying to figure this issue out but i cannot seem to solve it for the life of me.

    i has questions:

    1: i've been able to duplicate my buttons but only one of buttons has a mouse over effect. how do i get my other buttons to have their own unique mouse over?

    2: now that i figured out a way to get my buttons to go down 5 rows, how do i get to also go across ten rows?

    3: lastly, how can i dynamically create text fields inside each of those buttons and how would i access them individually once the buttons have been created?

    import flash.filters.DropShadowFilter;
    var mc:MovieClip = createDropShadowRectangle ("DropShadowAlpha");
    var container:MovieClip = setUpContainer ();
    var ln:Number = 5;
    var spacer:Number = 5;
    var duplicate:MovieClip;
    for (var i:Number = 1; i < ln; i++) {
    	var newY:Number = i * (container._height + spacer);
    	duplicate = container.duplicateMovieClip ("clip-" + i, i, {_y:newY});
    	trace (duplicate);// _level0.clip-[number]
    function setUpContainer ():MovieClip {
    	var mc:MovieClip = this.createEmptyMovieClip ("container", this.getNextHighestDepth ());
    	var w:Number = 50;
    	var h:Number = 50;
    	mc.beginFill (0xf0f0f0);
    	mc.lineTo (w,0);
    	mc.lineTo (w,h);
    	mc.lineTo (0,h);
    	mc.lineTo (0,0);
    	mc.endFill ();
    	mc.onRelease = function () {
    		//...will use tween effect here
    	var filter:DropShadowFilter = new DropShadowFilter (2, 45, 0x000000, 0.8, 16, 16, 1, 3, false, false, false);
    	var filterArray:Array = new Array ();
    	filterArray.push (filter);
    	mc.filters = filterArray;
    	return mc;
    any help on how to achieve these results will greatly be appreciated. :love:
  2. BoostedBoogie

    BoostedBoogie New Member

    Oct 31, 2003
    Likes Received:
    [email protected] d13g0
    I know in AS2 you could treat a movieclip as a button with a textfield in it, but in AS3 i've had so many problems with calling movieclips as buttons and the eventlisteners don't play very well with calling movieclips within movieclips sometimes. same goes for textfields or buttons within a movieclip. can't wait for the next update :hs:

Share This Page