Jump to content
GreenSock

ynicos

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ynicos

  1. Hi j_rock ;)

     

    Check this .fla ;)

    If you don't understand something, just ask.

     

    // When you use getNextHighestDepth(), you have to refer it to an object where the next highest depth will be evaluate

    // like this.getNextHighestDepth() or home.getNextHighestDepth()

    // getNextHighestDepth() alone will not work i think ;)

     

    // When you do

    // var transformManager_obj = new TransformManager({forceSelectionToFront:false, allowDelete:true});

    // var transformManager_obj = new TransformManager({targetObjects:[t], bounds:{xMin:0, xMax:900, yMin:0, yMax:900}, forceSelectionToFront:true, eventHandler:onAnyEvent});

     

    // the next var applied to "transformManager_obj" will overwrite all previous property you set in the first instantiation

    // Declar your vars at one in a function like

    // var transformManager_obj = new TransformManager({forceSelectionToFront:false, allowDelete:true});

    // transformManager_obj = new TransformManager({targetObjects:[t], bounds:{xMin:0, xMax:900, yMin:0, yMax:900}, forceSelectionToFront:true, eventHandler:onAnyEvent});

     

     

    Hope it help you :)

  2. Everybody are abble to use TweenMax, cause it's really easy :)

     

    If you don't understand how you can use something just ask your question ;)

     

    It's simple to manage color with TweenMax, trust me :) .

    Change the tint of a MovieClip like that.

    if a have a MovieClip called "myObject" and his color is black, i can tint it to white like this :

     

    
    TweenMax.to(myObject,1,{tint:0xFFFFFF});
    
    

     

    If you want to remove the tint of a tinted object like "myObject", just do:

     

    
    TweenMax.to(myObject,1,{removeTint:true});
    
    

     

    it will set the tint at "myObject" to his original : black ;)

     

     

     

     

    Say me what you whant to do exacly and simply ;)

  3. Hi j_rock ;)

     

    I think the problem is that you don't use the good tool to transfom the color of a MovieClip ;)

    Why did you don't use TweenMax :mrgreen: ? It's easier ;)

     

    Here is a sample and simple code that show you how to do it ;)

    http://www.ynicos.com/examples/colorChange.swf

     

    The .fla

    http://www.ynicos.com/examples/colorChange.fla

     

     

    If you really don't want to use one of the multiple way to change color with TweenMax, use the flash.geom.ColorTransform class,

    Adobe : "The Color class has been deprecated in favor of the flash.geom.ColorTransform class".

     

    See

    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/00000919.html#202260

     

    Hope i help you ;)

×