Jump to content
Search Community

danno

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by danno

  1. I have an input TextField inside of a MovieClip and when the .swf loads, that movie clip is scaled ( using tweenmax ) to 50%. When i click a button, it makes the movieclip scale back to 100% ( again, using TweenMax ) , and when i place my cursor inside the TextField the cursor is sometimes off by over a character.

     

    any idea as to why this is happening?

     

    thanks!

  2. in trying to apply the new matrix, it is giving me the following error:

    1119: Access of possibly undefined property a through a reference with static type Number.

     

    Here's what i have:

     

    
    var testA:Number = .75;
    var testB:Number = 0;
    var testC:Number = 0;
    var testD:Number = .75;
    var testX:Number = 0;
    var testY:Number = 0;
    
    myObject.transform.matrix = new Matrix(testA.a, testB.b, testC.c, testD.d, testX.tx, testY.ty);
    
    

     

    help!!

  3. i'm loading in a previously resized image from a previous session and wanting to know the correct way / order of channging my TransformItem's size to reflect it's previously scaled size.

     

    so for my example, i originally loaded in a 200x200 pixel image and assigned it as a TransformItem. After i did my resizing, it was now at 100x100.

    upon reloading of that image, i want to load in that 200x200 image again, but then set it to its previous scaled size of 100x100.

     

    how would i go about doing that?

    thanks!

  4. ok so a quick question. i've got the cloudMC on the stage, i've assigned it to a TransformManager and to added it as a new TransformItem.

     

    if i'm to duplicate this MC so that one can have a scrollRect applied to it to sit on top of the TransformItem, should i duplicate the contents inside of the cloudMC or create a cloudMC_color and cloudMC_notColor.

     

    i hope i'm making sense, thanks!

  5. Try the scrollRect first.

     

    Indeed, but also to note, scrollRect only allows for a 4 sided shape with 90 degree angles. So if every you needed a different shape, you would need to use a mask... for whatever that's worth.

     

    I'll give scrollRect a shot first then.

     

    Thanks for the heads up about the restrictions. Thankfully, the shape is a square, like the attached example above.

     

    I'll let ya know how it goes after i get back from lunch.

  6. thanks for the responses guys.

     

    the cloudMC in the example above will be a TransformItem , using greensock's TransformManager class. which of the proposed solutions would be appropriate for when the TransformItem is being clicked and dragged around?

     

    Thanks again, i really do appreciate it!

  7. I'm wondering if there's a way to apply TweenMax Saturation to only part of an image, or to the non-masked portion of a MC on the stage.

    I've attached an example of what i'm talking about. The stage is white, with an image of a cloud in it's own MC. There is a 'masked' ( or non-masked , depending on how you look at it ) that is in color while the remaining parts of the cloudMC is being affected by the TweenMax saturation change.

     

    Any help or direction on this would be extremely appreciated.

     

    Thank you so much!!

  8. is there a way to add a custom delete symbol by a TransformItem, maybe a red X in the upper right/left corner ( something styled like this : T_dead.jpg ) , that would replicate the same functionality as hitting the "delete" key? i've seen similar functionality somewhere else, can't recall where right now...

     

    in the format that i'm using and displaying TransformItems inside my application, it would be asking too much of the end user to know to hit the "delete" key on their keyboard. plus , the delete key might end up already be taken up in other parts of the application, rendering it not able to be used to delete TransformItems anyways!

     

    any thoughts on this would be much appreciated, thanks!

  9. Sure. Althought it's usually a good idea to take advantage of strict data typing by doing this:

     

    var manager:TransformManager = managers[0];
    manager.addItem(myObject);
    manager.removeObject(myObject);

     

    It performs faster and helps debug because the compiler understands the types of objects it's dealing with. When you reference an object in an Array like managers[0] it has no idea what type of data to expect.

     

    ahh ok cool. thanks again for all the help, i appreciate it!

  10. here's an example ( wrong of course ), but still an example of what i'm meaning:

     

    for (a=0; a <= 10; a++){
    var thisManagersName:String = String("manager"+a);
    var thisManagersName:TransformManger = new TransformManager();
    thisManagersName.addItem(myObject);
    }
    

    so that at the end, there would be managers with items added to them, named:

    manager0, manager1, manager2, manager3, etc.

     

    hope that helps clear it up a little more. thanks!

×
×
  • Create New...